MCQ of C/C++ Programming Language – Set 7
This is another set of MCQ Question on the topic MCQ of C/CPP Programming. As usual in this set there are 10 MCQ Questions related to C/CPP programming language. Correct answer of this MCQ questions are given below of this question set.

Multiple Choice Questions of C, C++ Programming Language
7-1 Which of the following is/are storage class
A. Automatic
B. Static
C. Allocated
D. All of Above
7-2 What will the output of following code
{
int x = 10, y = 15;
x = x++;
y = ++y;
printf(“%d, %d \n”, x, y);
}
A. 10, 15
B. 10, 16
C. 11, 16
D. 11, 15
7-3 NULL Pointer can be used as
A. To stop indirection in a recursive data structure
B. As an error value
C. As a sentinel Value
D. All of Above
7-4 Which one of the following is not the advantages of functions?
A. Debugging is easier
B. Testing is easier
C. Recursive call is possible
D. It consumes low disk space
7-5 What is the result of the following statement?
x = y = z = 0;
A. x = 0, y = Null, z = Null
B. x = 0, y = 0, z = 0
C. x = 0, y = 1, z = 2
D. the statement is incorrect
7-6 What is the result of the following statement?
X = 10;
y = ++x;
A. x = 10, y = 10
B. x = 10, y = 11
C. x = 11, y = 10
D. x = 11, y = 11
7-7 Which of the following statement creates infinite loop?
A. for ( ; ; )
B. while ( ; ; )
C. when ( ; ; )
D. if( ; ; )
7-8 The use of “break” Statement
A. to terminate a case in the switch statement
B. to force immediate termination of a loop
C. Both A & B
D. Only A
7-9 to use the function tolower(), which of the following header file should include
A. string.h
B. conio.h
C. ctype.h
D. Don’t need any header file
7-10 What is the function overloading?
A. Calling a function from another function
B. Having more than one functions of same name
C. Calling a function from itself
D. There is no such term in C/C++
Click Here for Answers
1 – D / 2 – C / 3 – D / 4 – D / 5 – B / 6 – D / 7 – A / 8 – C / 9 – C / 10 – B
Incoming search terms:
- c objective questions and answers
- c multiple choice questions and answers
- c multiple choice questions with answers
- c mcq questions with answers
- multiple choice questions in c
- c multiple choice questions
- objective questions in c
- c mcqs
- mcq on c programming with answers
- c mcq questions
Related posts:



It is gud place to test u,r skill
test Your Brain
Yes this is for test the users brain.
Basics Test Rating : 4/10
It’s really very basic and good questions for test or interview…It helps me a lot…..Thanks..
Thanks for your comment and glad to know that this site is helping you.
Its better for me to test my knowledge And way to correct my mistakes.
thanks ganesh