C Language – 1 – 4

16. Which operator in C is called a ternary operator ?

(a) if-then
(b) ++
(c) ?
(d) ( )

ANSWER

EXPLANATION

17. Which of the following is not a key word in C language ?

(a) for
(b) if
(c) pop
(d) union

ANSWER

EXPLANATION

18. Which of the following is not a valid real constant in C language ?

(a) 426
(b) 321.121
(c) -621.231
(d) 201.2314

ANSWER

EXPLANATION

19. Which of the following is not a valid integer constant in C ?

(a) 321
(b) -162
(c) -621.231
(d) 1

ANSWER

EXPLANATION

20. Which of the following is not correct in C ?

(a) 6/4 =1
(b) 2/5=0
(c) 2.0/5=0
(d) 2.0/5.0=0.4

ANSWER

EXPLANATION

1 2 3 4

Be a Part of The New & Next

MCQs fb  MCQs G+

Share the Knowledge

Shares
Copy Protected by Chetan's WP-Copyprotect.