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 10 of 16

Q91.
How many constructors can a class have ?
Discuss
Answer: (d).any number
Discuss
Answer: (d).It prints 1, 1, 1, 1, 1, and repeats forever
Q93.
Consider the following declaration in C:

char a[];
char *p;

Which of the following statement is not a valid statement?
Discuss
Answer: (c).a=p;
Q94.
Consider the following C code:

{ int a=5, b=9;
float r;
r=b/a; }

What is the value of r ?
Discuss
Answer: (b).1.0
Discuss
Answer: (c).a function provides common interface to the user to carry out possibly different functions in each call.
Discuss
Answer: (c).A “static” member of a class can be initialized before an object of that class is created.
Q97.
What cannot replace ‘?’ in the following C code to print all odd numbers less than 100?

for(i=1;?;i+2)
printf(“%d\n”,i);
Discuss
Answer: (b).i≤101
Discuss
Answer: (b).“Protected” elements of base class are not accessible by members of its derived class.
Discuss
Answer: (d).A constructor function is automatically invoked when an object is created.
Q100.
The following loop in ‘C’:

int i=0;
While(i++<0)i--;
Discuss
Answer: (b).will go into an infinite loop

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!