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 : 22
Which one of the following is not a fundamental data type in C++

float
string
int
wchar_t

Question No : 23
Which of the following is a valid destructor of the class name "Country"

int ~Country()
void Country()
int ~Country(Country obj)
void ~Country()

Question No : 24
Which of the following correctly describes C++ language?

Statically typed language
Dynamically typed language
Both Statically and dynamically typed language
Type-less language

Question No : 25
Which of the following keyword supports dynamic method resolution?

abstract
Virtual
Dynamic
Typeid

Question No : 26
Which of the following is the most preferred way of throwing and handling exceptions?

Throw by value and catch by reference.
Throw by reference and catch by reference.
Throw by value and catch by value
Throw the pointer value and provide catch for teh pointer type.

Question No : 27
Which of the following is not true about preprocessor directives

They begin with a hash symbol
They are processed by a preprocessor
They form an integral part of the code
They have to end with a semi colon

Question No : 28
What's wrong? while( (i < 10) && (i > 24))

the logical operator && cannot be used in a test condition
the while loop is an exit-condition loop
the test condition is always true
the test condition is always false