C Plus Plus Programming questions
2,175 questionsPractice questions from C Plus Plus Programming.
Filter questions
mediummultiple choiceVariables And Data Types In C Plus Plus1 points
How do we represent a wide character of the form wchar_t?
Points: 1
mediummultiple choiceVariables And Data Types In C Plus Plus1 points
Which of these expressions will return true if the input integer v is a power of two?
Points: 1
mediummultiple choiceVariables And Data Types In C Plus Plus1 points
What is the value of the following 8-bit integer after all statements are executed? int x = 1; x = x > 7;
Points: 1
mediummultiple choiceClasses And Objects In C Plus Plus1 points
Pick out the correct statement.
Points: 1
Points: 1
mediummultiple choiceClasses And Objects In C Plus Plus1 points
Which access specifier allows members of a class to be accessed only by the derived classes in C++?
Points: 1
mediummultiple choiceClasses And Objects In C Plus Plus1 points
Which header file is used to declare the complex number?
Points: 1
mediummultiple choiceClasses And Objects In C Plus Plus1 points
What will be the output of the following C++ code? #include #include using namespace std; class Box { int capacity; Box(){} Box(double capacity){ this->capacity = capacity; } }; int main(int argc, char const *argv[]) { Box b1(10); Box b2 = Box(14); return 0; }
Points: 1
mediummultiple choiceClasses And Objects In C Plus Plus1 points
Pick out the correct statement.
Points: 1
mediummultiple choiceClasses And Objects In C Plus Plus1 points
How many types of user-defined data type are in c++?
Points: 1
Want to track your progress?
A free account saves your quiz results and shows how you are doing over time.