CPP Comments MCQ

CPP MCQ
  1. Home
  2. Tutorials
  3. CPP
  4. Comments
  5. Multiple Choice Question

(1) How many types of comments in C/C++

A) 1
B) 2
C) 3
D) 4

(2) Which of the following lines of code skipped by compiler while compilation

A) Sequential
B) Control
C) Comment
D) Preprocessor

(3) Comments can be added _______ in the source code.

A) Top
B) Bottom
C) Anywhere
D) None

(4) In C++ multi line comments are starts with.

A) //
B) \\
C) /*
D) */

(5) In C++ comments are ____________ statements.

A) Executable
B) Non-Executable
C) Output
D) Input

(6) In C++ single line comments are with.

A) \\
B) //
C) /*
D) None
Comments
Login to TRACK of Comments.