MCQ Bank
We cannot declare a function as a friend of ________ classes
- A)
- B)
- C)
- D)
Automatic variable are created constantly and destroyed
- A)
- B)
- C)
- D)
________ are a conditional compilation process that is used to replace a piece of code by its definition in a program
- A)
- B)
- C)
- D)
calloc() function allocates multiple blocks of memory and each block have ________ ?
- A)
- B)
- C)
- D)
in C++ sizeof operator is used to determine ________
- A)
- B)
- C)
- D)
which of the following header file deals with stream extraction?
- A)
- B)
- C)
- D)
Type to use getch() function without including #include<conio.h> header file in the program is a ________ error
- A)
- B)
- C)
- D)
in C++ the default constructor takes ________
- A)
- B)
- C)
- D)
in C++ the name of the ________ is the same as that of a class with a preceding tilde (~) sign.
- A)
- B)
- C)
- D)
which of the following option returns the state of end file?
- A)
- B)
- C)
- D)
If the memory in the free store is not sufficient enough to fulfill the request, malloc() function return ________
- A)
- B)
- C)
- D)
in C/C++ language, memory at runtime is allocated from ________
- A)
- B)
- C)
- D)
When overloading assignment (=) operator, which of the following syntax is correct?
- A)
- B)
- C)
- D)
which of the following code:
- A)
- B)
- C)
- D)
For overloading minus (-) operator, which member operator function will be correct?
- A)
- B)
- C)
- D)
In C++ which operator is used for memory allocated?
- A)
- B)
- C)
- D)
The Statement char array[10]; is an example of a type of ________ memory allocation
- A)
- B)
- C)
- D)
which of the following option not a source of the output stream?
- A)
- B)
- C)
- D)
A square matrix has ________
- A)
- B)
- C)
- D)
The statement double** elements; says that elements is a / an ________ to double.
- A)
- B)
- C)
- D)