C Programming Multiple Choice Questions (MCQ) | IT Developer <?php echo $page_title; ?>
IT Developer

C Programming Multiple Choice Questions (MCQ)

C Programming Multiple Choice Questions (MCQ) - Set 9



Share with a Friend

Multiple Choice Questions


C Programming - Multiple Choice Questions (MCQ) - Set 9

41. What will be the value of variable b?
 int a; 
 int b; 
 a = 1;  
 b = a++;
A). 1
B). 2
C). 3
D). unknown/undefined
View Answer
Correct: A




42. What will be the value of variable b?
 int a; 
 int b; 
 a = 1; 
 b = ++a;  
A). 1
B). 2
C). 3
D). unknown/undefined
View Answer
Correct: B




43. What will be the value of variable z?
 int x = 3, y = 4; 
 z = ++x * y++;  
A). 9
B). 12
C). 16
D). 20
View Answer
Correct: C




44. What will be the output?
 void main()
 { 
    int a = 9, b = 9;     a = b++;     printf("%d %d", a, b); }
A). 9,9
B). 10,10
C). 9,10
D). 10,9
View Answer
Correct: C




45. Choose the correct statement about Left Shift Operator <<
A). Left shift operator shifts individual bits on the left side
B). When shifting left side, overflow bits are ignored
C). Zeroes are filled on the right side
D). All of these
View Answer
Correct: D