C Programming MCQ Questions Answers PDF Download Objective Test
If you have prepared for C Programming MCQ then you have come to the right place. We provide all the materials for c programming questions & C Programming quiz here.
For those of you who are waiting for c programming questions and answers PDF, we have uploaded the c programming PDF Download here. In addition, you will get c programming question with answer and c programming question bank with answers for competitive exam only on our website jobsandhan.com.
1) If an integer needs two bytes of storage then maximum value of a signed interger is
a) 216 – 1
b) 215 – 1
c) 216
d) 215
2) The maximum number of temporary variables needed to swap the contents of the variables is
a) 1
b) 2
c) 3
d) 0
3) x – = y + 1 ; does the same as
a) x = x – y + 1
b) x = x – y – 1
c) x = – x + y + 1
d) x = x – y – 1
4) The default parameter passing mechanism is
a) call by value
b) call by reference
c) call by value result
d) none of the above
5) The expression 4 + 6 / 3* 2 -2 + 7 % 3 evaluates to
a) 3
b) 4
c) 6
d) 7
6) Let x be an array. Which of the following operation are illegal?
a) ++ x
b) x + 1
c) x++
d) x * 2
7) printf (‘’% d’’, p r I n t f (‘’ tim’’) ) ;
a) results in a syntax error
b) outputs t i m3
c)outputs garbage
d) prints t i m and terminates abruptly
8) The number of possible value of m, such that m & 0x3f equals 0x23 is
a) 1
b) 2
c) 3
d) 4
9) Which of the following operation produce an 1, If the input bits are 1 and 1?
a) or
b) and
c) exclusive or
d) exclusive nor
10) If the word size is 16 bit then ~0 x c5 will be
a) 0 x 3a
b) 0xff3a
c) 0x5c
d) none of the above