CPP Syntax MCQ

Cpp MCQ
  1. Home
  2. Tutorials
  3. Cpp
  4. Syntax
  5. Multiple Choice Question

(1) In C++ statement termination symbol is:

A) .
B) ,
C) ;
D) ?

(2) In C++ programs format string is always written within:

A) Single Quotes
B) Double Quotes
C) Angle Brackets
D) Parentheses

(3) Which of the following operator is used with cout object ?

A) !!
B) #
C) >>
D) <<

(4) A well defined function must have

A) Return Type
B) Function Name
C) Parameter
D) All of these

(5) How many parts of main() function in C++ program

A) One
B) Two
C) Three
D) Four

(6) What is meant by 0 return from main() function in C++ program

A) Successful Completion
B) Unsuccessful Completion
C) Code Conversion
D) Exception

(7) Preprocessor directives are always start with __________ symbol.

A) $
B) @
C) #
D) !

(8) How many main functions does a C++ program may have?

A) One
B) Two
C) Three
D) Four

(9) The execution of actual program starts from:

A) return type
B) main function
C) header files
D) none of these
Comments
Login to TRACK of Comments.