C++ MCQ Questions and Answers
Practice ModeShowing 10 of 93 questions
Q1
C+++
C++
Answer: Option C
Explanation: Explanation
Q2
What is the correct value to return to the operating system upon the successful completion of a program?
Answer: Option C
Q3
What is the only function all C++ programs must contain?
Answer: Option C
Q4
What punctuation is used to signal the beginning and end of code blocks?
Answer: Option A
Q5
What punctuation ends most lines of C++ code?
Answer: Option B
Q6
Which of the following is a correct comment?
Answer: Option B
Explanation: Parenthesis
Q7
Which of the following is a correct comment?
Answer: Option C
Q8
Which of the following is not a correct variable type?
Answer: Option B
Q9
Which of the following is the correct operator to compare two variables?
Answer: Option D
Q10
Which of the following is true?
Answer: Option