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

Q31.
Match the following with respect to the jump statements 

List-I                           List-II

a. return                   i.  The conditional test and increment portions

b. goto                     ii.  A value associated with it

c. break                  iii. Requires a label for

d. continue             iv. An exit from only the innermost

Codes:

a       b      c      d
Discuss
Answer: (a).ii       iii      iv      i
Discuss
Answer: (c).Format specifiers, White-space characters and Non-white space characters
Q33.
Match the following with respect to the jump statements 

List-I                           List-II

a. fopen()                       i.  returns end of file

b. fclose()                      ii.  return for any problem report

c. ferror()                       iii. returns 0

d. feof()                          iv. returns a file pointer

Codes:

a       b       c       d
Discuss
Answer: (a).iv       i       ii       iii
Q34.
Given i=0, j=1,k=-1 x=0.5, y=0.0
What is the output of the following expression in C language.
x*y

a.

-1

b.

0

c.

1

d.

2

Discuss
Answer: (c).1
Discuss
Answer: (a).a function returning a pointer to an array of integers
Discuss
Answer: (b).All member functions of the class granted friendship have unrestricted access to the members of the class granting the friendship
Q37.
What is the value returned by the function f given below when n=100 ?
int f (int n)
{ if (n==0) then return n;
else
return n + f(n-2);
}
Discuss
Answer: (a).2550
Q38.
Which of the following cannot be passed to a function in C++?
Discuss
Answer: (d).Header file
Discuss
Answer: (a).Compiler sets up a separate function for every definition of function
Q40.
Which of the following storage classes have global visibility in C/C++?
Discuss
Answer: (b).Extern
Page 4 of 16

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!