adplus-dvertising

Welcome to the Programming in C MCQs Page

Dive deep into the fascinating world of Programming in C with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Programming in C, a crucial aspect of UGC CBSE NET Exam. In this section, you will encounter a diverse range of MCQs that cover various aspects of Programming in C, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within UGC CBSE NET Exam.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Programming in C. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of UGC CBSE NET Exam.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Programming in C. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Programming in C MCQs | Page 13 of 16

Q121.
Find the output of the following “C” code:

Main ( )
{ int x = 20, y = 35;
x = y++ + x++;
y = ++y + ++x;
printf (“%d, %d\n”, x, y);
}
Discuss
Answer: (d).57, 94
Q122.
The data hiding is taken care by:
Discuss
Answer: (a).Abstraction
Q123.
If a data-item is declared as a protected access specifier then it can be accessed:
Discuss
Answer: (b).By the base and derived classes
Q124.
Main()
{ char *str=”abcde”;
printf(“%c”, *str);
printf(“%c”, *str++);
printf(“%c”, *(str++));
printf(“%s”, str);}

The output of the above ‘C’ code will be:
Discuss
Answer: (c).a a b c d e
Q125.
Consider the following statements,

int i=4, j=3, k=0;
k=++i - --j + i++ - --j +j++;

What will be the values of i, j and k after the statement.
Discuss
Answer: (c).6, 2, 8
Q126.
What is the value of the arithmetic expression (Written in C)

2*3/4-3/4* 2
Discuss
Answer: (b).1
Discuss
Answer: (a).is an instance of a class for which operator () is a member function
Discuss
Answer: (b).Runtime type identification within a class hierarchy
Discuss
Answer: (b).Static members in the class
Q130.
A ternary operator in C++
Discuss
Answer: (a).?:

Suggested Topics

Are you eager to expand your knowledge beyond Programming in C? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!