R4RIN
Articles
Java 8
MCQS
C/C MCQ Quiz Hub
C (CPP) MCQ Question with Answer
Choose a topic to test your knowledge and improve your C/C skills
1. Delaration a pointer more than once may cause ____
Error
Abort
Trap
Null
2. Which one is not a correct variable type in C++?
float
real
int
double
3. Which operation is used as Logical 'AND'
Operator-&
Operator-||
Operator-&&
Operator +
4. An expression A.B in C++ means ____
A is member of object B
B is member of Object A
Product of A and B
None of these
5. A C++ code line ends with ___
A Semicolon (;)
A Fullstop(.)
A Comma ()
A Slash (/)
6. ___ function is used to allocate space for array in memory.
malloc()
realloc()
alloc()
calloc
7. A ponter pointing to a variable that is not initialized is called ____
Void Pointer
Null Pointer
Empty Pointer
Wild Pointer
8. Default constructor has ____ arguments.
No argument
One Argument
Two Argument
None of these
9. A class whos objects can not be created is known as _____
Absurd Class
Dead Class
Super Class
Abstract Class
10. Which class allows only one object to be created.
Nuclear Family Class
Abstruct Class
Sigleton Class
Numero Uno Class
11. Reusability of code in C++ is achieved through ___
Polymorphism
Inheritance
Encapsulation
Both A and B
12. In CPP members of a class are ______ by default.
Public
Private
Protected
Static
13. In C++ Program inline fuctions are expanded during ____
Run Time
Compile Time
Debug Time
Coding Time
14. To perfor file input / output operation in C++ we must include which header file ?
<fiostream>
<ifstream>
<ofstream>
<fstream>
15. An exceptio in C++ can be generated using which keywords.
thrown
threw
throw
throws
Submit