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

Option – b)

2) The maximum number of temporary variables needed to swap the contents of the variables is

a) 1

b) 2

c) 3

d) 0

Option – d)

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

Option – d)

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

Option – a)

5) The expression 4 + 6 / 3* 2 -2 + 7 % 3 evaluates to

a) 3

b) 4

c)  6

d) 7

Option – d)

6) Let  x be an array. Which of the following operation are illegal?

a) ++ x

b) x + 1

c) x++

d) x * 2

Option – a,b,c)

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

Option – b)

8) The number of possible value of m, such that m & 0x3f equals 0x23 is

a) 1

b) 2

c) 3

d) 4

Option – d)

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

Option –a,b, c)

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

Option -b)

16) The following statement P r I n t f ( ‘’ % f’’, 9/5); Prints

a)1.8

b) 1. 0

c) 2.0

d) none of the above

Option – d)

12) The statement p r I n t f ( ‘’% d’’, sizeof (‘’ ‘’)); prints

a) an error message

b) 0

c) garbage

d) 1

Option – d)

13) The statement p r I n t f (‘’ % d’’, 10?0?5 : 11: 12); prints

a) 10

b) 0

c) 12

d) 11

Option – d)

14) Let x an array. Which of the following cannot be present in the left-hand side of an assignment statement?

a) x

b)  x + i

c)  * ( x + i)

d) & x [i]

Option –a,b, c)

15) A set names can be represented as a

a) two-dimensional array of characters

b) one- dimensional array of strings

c) one- dimensional array of pointers to character

d) none of these