Home

C++ Programming MCQ Question with Answer

C++ Programming MCQ with detailed explanation for interview, entrance and competitive exams. Explanation are given for understanding.

Download C++ Programming MCQ Question Answer PDF

Question No : 50
The string table in C++ holds the

string constants in your program
program statements in string form
variables whose type is of string
none of the above

Question No : 51
The declaration int **var1; shows that

var1 can not be accessed
var1 is a pointer to a pointer of type int
var1 is a protected data type of integer
this type declaration shows an error

Question No : 52
In C++, the keyword auto can be used for

Automatic assignment of data to object during instantiation
Automatic call of a function
To declare a local variable
It is not a keyword in C++

Question No : 53
By default, C++ uses the following method of passing arguments

Call-by-Reference
Call-by-Value
Call-by-Pointer
None of the above

Question No : 54
Pick out the most appropriate statement from the following

references are pointers
array of references can be created
you can not reference a reference variable
all of the above

Question No : 55
The ?: can be used to replace

if-else statement
wild cards
no meaning in C++
returns the value

Question No : 56
Dynamic memory can be allocated by the following declaration

new
volatile
static
==