C++ MCQ Questions and Answers
Practice ModeShowing 10 of 93 questions
Q51
Which of the following is extraction operator in C++?
Answer: Option D
Q52
When requesting multiple datum, user must separate each by using
Answer: Option D
Q53
cin extraction stops execution as soon as it finds any blank space character
Answer: Option A
Q54
Observe the following statements and decide what do they do.
string mystring;
getline(cin, mystring);
Answer: Option A
Q55
Regarding stringstream identify the invalid statement
Answer: Option D
Q56
Which of the header file must be included to use stringstream?
Answer: Option D
Q57
Which of the following header file does not exist?
Answer: Option C
Q58
If you use same variable for two getline statements
Answer: Option B
Q59
The "return 0;" statement in main function indicates
Answer: Option B
Q60
Which of the following is not a reserve keyword in C++?
Answer: Option C