C MCQ
C MCQ
56.) Maximum number of elements in the array declaration “ int arr[5][8]; ” is ________.
a.) 28 b.) 32 c.) 35 d.) 40
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
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
83.) Which of the following symbol is use for single line comment?
a.) // c.) \\
b.) /* …… */ d.) ;
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
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.) <, >