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
Incoming search terms:
- c objective questions and answers
- c multiple choice questions
- c multiple choice questions and answers
- c mcqs
- c mcq questions with answers
- c mcq questions
- c multiple choice questions with answers
- multiple choice questions in c
- mcq of c
- objective questions in c
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
sir i m pursuing BE am i eligible for this ?
hi,
question number 9 i think is not correct … toLower() is string function…so it should be available in string.h header file.but you answered ctype.c.. is it ???
I think, the answer of Q2 is wrong it should be B(10,16).
Answers of mcq questions
its realy very good question.
gd questions
please upload pdf format of mcq of c and others
c++,java programming
Answer for the question 2 is wrong
#include
#include
main()
{
int x=10, y=15;
x=++x;
y=++y;
printf(“%d, %d \n”, x, y);
}
The answer is
11, 16
Sorry our question is as follows:
#include
#include
main()
{
int x=10, y=15;
x=x++;
y=++y;
printf(“%d, %d \n”, x, y);
}
The answer is :
10, 16 (Option B)
How can excel coding can select only 7 passed subjects from 10 subjects and finding the grading and divisions
No Kamal try and run the program you will get the output as 11 16