Question 1: C++ Character Data Type
Which of the following data types is used to store a single character in C++?
Question 2: C++ Relational Operators
Which operator is used to check if two values are not equal in C++?
Question 3: C++ Address-of Operator
What does the & operator do in the context of pointers?
Question 4: C++ If-Else Statement
Which keyword is used in C++ to specify an alternative block of code if the if condition is false?
Question 5: C++ While Loop
Which of the following statements about the while loop in C++ is true?
Question 6: C++ Guess the Output – Writing File
What will this program do?
Question 7: C++ Guess the Output – Function Return
What will be the output of the following C++ code?
Question 8: C++ Array Index
What will happen if you try to access arr[10] in an array declared as int arr[5];?
Question 9: C++ Access Specifiers
Which access specifier allows members to be accessed only inside the class?
Question 10: C++ String Length
Which function is used to get the length of a string in C++?
Question 11: C++ Guess the Output - ASCII Conversion
What will be the output of the following C++ code snippet?
Question 12: C++ Guess the Output – Pre vs Post Increment
What will be the output of the following C++ code snippet?
Question 13: C++ Guess the Output – Pointer and Variable
What will be the output of this program?
Question 14: C++ Guess the Output – If-Else
What will be the output of the following C++ code snippet?
Question 15: C++ Guess the Output – While Loop
What will be the output of the following C++ code snippet?
Question 16: C++ File Reading
Which class is used to read from a file in C++?
Question 17: C++ Function Overloading
Which of the following demonstrates valid function overloading in C++?
Question 18: C++ Guess the Output – Array Elements
What will be the output of the following code?
Question 19: C++ Guess the Output – Encapsulation
What will be the output of this program?
Question 20: C++ Guess the Output – String Concatenation
What will be the output of this code?