Programming for Problem Solving (3110003) MCQs

MCQs of Fundamentals of C

Showing 91 to 100 out of 107 Questions
91.
Choose the correct statement about Right Shift Operator >>
(a) Right shift operator shifts individual bits on to the right side
(b) When shifting bits right side, overflow bits on the right are ignored or truncated
(c) Zeroes are filled on the left side
(d) All of these
Answer:

Option (d)

92.
Which is bit toggling operator below?
(a) & Bitwise AND
(b) | Bitwise OR
(c) ^ Bitwise exclusive OR
(d) ~ Bitwise complement
Answer:

Option (d)

93.
Left Shift operation is equivalent to____
(a) Division by 2
(b) Multiplying by 2
(c) Adding 2
(d) Subtracting 2
Answer:

Option (b)

94.
Right Shift operation >> is equivalent to___
(a) Multiplying by 2
(b) Division by 2
(c) Adding 2
(d) Subtracting 2
Answer:

Option (b)

95.
What will be the value of variable c?
int c = 2 ^ 3;
(a) 1
(b) 8
(c) 9
(d) 0
Answer:

Option (a)

96.
What will be the value of variable a?
int a = 6;
a = ~a;
(a) -6
(b) 9
(c) -7
(d) 6
Answer:

Option (c)

97.
An arithmetic expression without parenthesis will be evaluated from left to right
(a) True
(b) False
Answer:

Option (a)

98.
In C programming, the statement a=a+1 and a+=1 will produce same result
(a) True
(b) False
Answer:

Option (a)

99.
Within an expression, __________ precedence operators will be evaluated first
(a) Similar
(b) Higher
(c) Lower
(d) None of these
Answer:

Option (b)

100.
What will the value of variable a?
int a = 4 + 4/2*5 + 20;
(a) 40
(b) 4
(c) 34
(d) 54
Answer:

Option (c)

Showing 91 to 100 out of 107 Questions