C/C MCQ Quiz Hub

C (CPP) MCQ Question with Answer

Choose a topic to test your knowledge and improve your C/C skills

Delaration a pointer more than once may cause ____





✅ Correct Answer: 3

Which one is not a correct variable type in C++?





✅ Correct Answer: 2

Which operation is used as Logical 'AND'





✅ Correct Answer: 3

An expression A.B in C++ means ____





✅ Correct Answer: 2

A C++ code line ends with ___





✅ Correct Answer: 1

___ function is used to allocate space for array in memory.





✅ Correct Answer: 4

A ponter pointing to a variable that is not initialized is called ____





✅ Correct Answer: 2

Default constructor has ____ arguments.





✅ Correct Answer: 1

A class whos objects can not be created is known as _____





✅ Correct Answer: 4

Which class allows only one object to be created.





✅ Correct Answer: 3

Reusability of code in C++ is achieved through ___





✅ Correct Answer: 2

In CPP members of a class are ______ by default.





✅ Correct Answer: 2

In C++ Program inline fuctions are expanded during ____





✅ Correct Answer: 1

To perfor file input / output operation in C++ we must include which header file ?





✅ Correct Answer: 4

An exceptio in C++ can be generated using which keywords.





✅ Correct Answer: 3