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

Q41.
Which of the following operators cannot be overloaded in C/C++?
Discuss
Answer: (d).Structure reference
Q42.
Given i= 0, j = 1, k = – 1, x = 0.5, y = 0.0

What is the output of given ‘C’ expression ?

x * 3 & & 3 || j | k

a.

-1

b.

0

c.

1

d.

2

Discuss
Answer: (c).1
Discuss
Answer: (b).Array of functions returning pointers to integers
Discuss
Answer: (c).Friend functions are members of a class.
Discuss
Answer: (d).Inheritance, Virtual functions and references
Q46.
A function template in C++ provides ............ level of generalization.

a.

4

b.

3

c.

2

d.

1

Discuss
Answer: (c).2
Q47.
Assume that the program ‘P’ is implementing parameter passing with ‘call by reference’. What will be printed by following print statements in P?

Program P()
{
x = 10;
y = 3;
funb (y, x, x)
print x;
print y;
}
funb (x, y, z)
{
y = y + 4;
z = x + y + z;
}
Discuss
Answer: (b).31, 3
Q48.
Consider the following program:
#include< stdio.h >
main()
{
    int i, inp;
    float x, term=1, sum=0;
    scanf(“%d %f”,&inp, &x);
    for(i=1;i<=inp;i++)
    {
                term=term*x/i;
                sum=sum+term;
}
printf(“Result=%f\n”,sum);
}

The program computes the sum of which of the following series?
Discuss
Answer: (b).x+x^2/2!+x^3/3!+x^4/4!+...
Q49.
In C++, which system-provided function is called when no handler is provided to deal with an exception?
Discuss
Answer: (a).terminate()
Q50.
Match the following:

List-I                                                      List-II
a. Automatic Storage Class               i. Scope of the variable is global.
b. Register Storage Class                  ii. Value of the variable persists
between different function calls.
c. Static Storage Class                       iii. Value stored in memory and local
to the block in which the variable is defined.
d. External Storage Class                  iv. Value stored in CPU registers.

Codes:
      a    b    c    d
Discuss
Answer: (b).iii    iv   ii    i
Page 5 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!