Example
Example
Page 2
25.) The bitwise AND is used for _______________.
a.) Masking c.) Division
b.) Comparison d.) Shifting bits
Page 3
37.) Which statement is correct?
a.) C Library functions provide I/O facilities
b.) C inherent I/O facilities
c.) C doesn’t have I/O facilities
d.) Both (a) and (c)
Page 4
a.) ctype.h c.) math.h
b.) string.h d.) conio.h
56.) Maximum number of elements in the array declaration “ int arr[5][8]; ” is ________.
a.) 28 b.) 32 c.) 35 d.) 40
Page 5
60.) What will be the value of the following:
1. floor(5.8)
2. floor(-5.8)
a.) -5,-6 c.) -5,6
b.) 5, -6 d.) 5,6
61.) What would be the value of X after execution of the following statements? int x,y=10;
char z=’a’;
x=y+z;
a.) Invalid c.) 107
b.) 17 d.) 10a
Page 6
a.) 7 b.) 5 c.) 2 d.) None of above
64.) A ________ operator applies to two operands, while a _______ operator applies to a
single operand.
a.) Binary, Unary c.) Unary, Ternary
b.) Ternary, Binary d.) None of these
65.) A ________ is a place where we can store values. Size of INT is ____________ bits.
a.) int, 2 c.) variable, 16
b.) variable, 2 d.) int, 16
66.) Variable consist of letters, numbers and _________________. You can’t use
___________.
a.) Underscore, keyword c.) Identifier, keyword
b.) Alphabets, underscore d.) Underscore, identifier
Page 7
++digit;
}
printf(“%d”,count);
}
What will be the output?
a.) 10 b.) 9 c.) 11 d.) 12
Page 8
printf(“%d %d”, i, *ptr);
}
a.) 12, 144 b.) 13, 144 c.) 13, 0 d.) None of these
Page 9
{
if(i%5==0)
{
X++;
}
++i;
} while (i <20);
}
What will be the output of this program?
a.) X=4 b.) X=20 c.) X=25 d.) X=10
75.) Study the following program:
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0, X=0;
while (i<20)
{
if(i%5==0) { X+=i; }
i++;
}
printf(“X=%d”, X);
}
What will be the output of above program?
a.) X=30 c.) X=25
b.) X=20 d.) X=10
n=n+2;
else
n=n-2;
}
}
What will be the output of this program?
Page 10
a.) 3 b.) 4 c.) 2 d.) None of these
a.) b.)
c.) d.) None of above
83.) Which of the following symbol is use for single line comment?
a.) // c.) \\
b.) /* …… */ d.) ;
Page 11
87.) ? : is ______________ operator.
a.) Logical c.) Assignment
b.) Bitwise d.) Conditional
91.) To check whether string is in upper case or not, which function is used?
a.) toupper () c.) isupper()
b.) upper () d.) None of above
92.) pow(), abs() & sqrt() are situated in ______________ header file.
a.) stdio.h, math.h, ctype.h c.) ctype.h
b.) string.h d.) math.h
Page 12
96.) 64 bits occupied by which data type?
a.) double c.) unsigned int
b.) long double d.) int
Page 13
105.) { } are used to group statements together as in a function, or in the body of a loop.
Such a grouping is known as _________________.
a.) Statement c.) Loop
b.) Block d.) Process
108.) _________ Symbol behaves as STYLE while using with one variable and as REMINDER
while using with two variable/values.
a.) & b.) % c.) * d.) #
109.) _____ and _____ are used to test more than one condition.
a.) &&, || b.) <=, >= c.) ==, != d.) <, >
Page 14