Vidyalelo
C++ Programming · all questions

C++ miscellaneous
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

1,008

Questions

1/51

Page

Pick an option on a question to see the right answer and solution.

What does the 'sizeof' operator return in C++?

Select an option to see the answer and solution.

Which of the following is not a fundamental data type in C++?

Select an option to see the answer and solution.

What is the purpose of the 'static' keyword in C++?

Select an option to see the answer and solution.

What is the difference between '++i' and 'i++' in C++?

Select an option to see the answer and solution.

What does the 'const' qualifier indicate in C++?

Select an option to see the answer and solution.

What is the purpose of the 'nullptr' keyword in C++?

Select an option to see the answer and solution.

What is the difference between 'delete' and 'delete[]' in C++?

Select an option to see the answer and solution.

What is the purpose of the 'inline' keyword in C++?

Select an option to see the answer and solution.

What is the purpose of the 'volatile' qualifier in C++?

Select an option to see the answer and solution.

Which of the following is a valid way to initialize a constant variable in C++?

Select an option to see the answer and solution.

What is the purpose of the 'using' directive in C++?

Select an option to see the answer and solution.

Which of the following is not a valid C++ data type?

Select an option to see the answer and solution.

What is the purpose of the typeid operator in C++?

Select an option to see the answer and solution.

What does the mutable keyword in C++ mean when applied to a class member function?

Select an option to see the answer and solution.

Which of the following correctly defines a lambda function in C++?

Select an option to see the answer and solution.

What is the purpose of the static_cast operator in C++?

Select an option to see the answer and solution.

Which of the following is not a valid way to initialize an array in C++?

Select an option to see the answer and solution.

What does the nullptr keyword represent in C++?

Select an option to see the answer and solution.

What is the purpose of the std::move function in C++?

Select an option to see the answer and solution.

What is the purpose of the std::initializer_list class in C++?

Select an option to see the answer and solution.