C/C++ MCQs

C programming language was developed by__:
A. James Gosling
B. Dennis Ritchie
C. Ray Boyce
D. Bjarne Stroustrup

C language was developed in the year____.
A. 1970
B. 1975
C. 1985
D. 1990

What is wrong? (x=4 && y=5) ? (a=5);(b=6);
A. The question mark should be an equal sign
B. The first semicolon should be a colon
C. There are too many variables in the statement
D. The conditional operator is only used with the apostrophe.

What is wrong? for(int k=2,k<=12;k++)
A. The increment should always be ++k
B. The variable must always be the letter i
C. There should be a semicolon at the end of the statement
D. The commas should be semicolon

A “continue” statement causes execution to skip to:
A. the return 0; statement
B. the first statement after the loop
C. the statement following the continue statement
D. the next iteration of the loop