Question 1: C++ Size of Data Types
Which operator in C++ is used to determine the size of a data type or variable?
Question 2: C++ Assignment Operators
Which of the following is the compound assignment operator in C++?
Question 3: C++ Pointer to Pointer
What is the correct way to declare a pointer to a pointer of an integer?
Question 4: C++ Switch Statement
Which of the following is NOT true about the switch statement in C++?
Question 5: C++ Break Statement in Loops
What does the break statement do in a C++ loop?
Question 6: C++ Guess the Output – Appending File
What will happen when this program runs?
Question 7: C++ Default Arguments
Which function declaration is valid with default arguments?
Question 8: C++ Multidimensional Array
How do you correctly declare a 2D array with 3 rows and 4 columns in C++?
Question 9: C++ Polymorphism – Virtual Function
Why do we use virtual functions in C++?
Question 10: C++ String Comparison
Which operator can be used to compare two strings in C++?
Question 11: C++ Guess the Output - Type Casting
What will be the output of the following C++ code snippet?
Question 12: C++ Guess the Output – Bitwise Operator
What will be the output of the following C++ code snippet?
Question 13: C++ Guess the Output – Double Pointer
What will the following program print?
Question 14: C++ Guess the Output – Switch Case
What will be the output of the following C++ code snippet?
Question 15: C++ Guess the Output – Break
What will be the output of the following C++ code snippet?
Question 16: C++ Binary File Mode
Which flag is used to open a file in binary mode?
Question 17: C++ Inline Functions
What is the purpose of an inline function in C++?
Question 18: C++ Guess the Output – Multidimensional Array
What will be the output of the following code?
Question 19: C++ Guess the Output – Virtual Function
What will be the output of this program?
Question 20: C++ Guess the Output – String Append
What will the output of the following code be?