C Programming MCQ Questions Answers Download PDF


11) 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

View Answer
Option – d)


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

a) an error message

b) 0

c) garbage

d) 1

View Answer
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

View Answer
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]

View Answer
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

View Answer
Option –a,b, c)

Best Of Luck!!