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

Discuss
Answer: (c).Which retains its value throughout the life of the program
Q112.
If the following loop is implemented

    {
int num=0;
do{--num; printf(“%d”, num); num++;}
while(num>=0)
}
Discuss
Answer: (c).there will be compilation error reported
Q113.
#define max(x,y) x=(x>y)?x:y

is a macro definition, which can find the maximum of two numbers x and y if:
Discuss
Answer: (d).x and y are both integers, float or double
Q114.
The function sprint() works like printf(), but operates on:
Discuss
Answer: (d).string
Q115.
What is the output of the following C program:

main()
{ printf(“%d%d%d”, sizeof(3.14f), sizeof(3.14), sizeof(3.141)); }
Discuss
Answer: (b).4 8 8
Q116.
The bitwise OR of 35 with 7 in C will be:
Discuss
Answer: (d).39
Q117.
Data members and member function of a class by default is respectively:
Discuss
Answer: (d).private
Discuss
Answer: (b).Compile time
Q119.
What will be the value of i for the following expression:

int f = 11, i = 3;
i+ = (f >3)?i & 2:5;
Discuss
Answer: (b).5
Q120.
After 3 calls of the c function bug() below, the values of i and j will be:

int j = 1;
bug()
{ Static int i = 0; int j = 0;
i++; j++;
return (i) ; }
Discuss
Answer: (d).i=3, j=1

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!