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

Discuss
Answer: (b).Overloading is a static or compile time binding and overriding is dynamic or runtime binding.
Q22.
Which of the following is not a member of class?
Discuss
Answer: (b).Friend function
Q23.
Consider the following statements S1, S2 and S3 :

S1 : In call-by-value, anything that is passed into a function call is unchanged in the caller's scope when the function returns.
S2: In call-by-reference, a function receives implicit reference to a variable used as argument.
S3: In call-by-reference, caller is unable to see the modified variable used as argument.
Discuss
Answer: (d).S1, S2, S3 are true
Q24.
How many tokens will be generated by the scanner for the following statement?
x = x * (a+b) - 5;
Discuss
Answer: (b).11
Q25.
When the following code is executed , what will be the value of x and y ?
 
 int x =1, y= 0;
y=x++;
Discuss
Answer: (a).2,1
Q26.
What is the output of the following program ?
(Assume that the appropriate preprocessor directives are included and there is no syntax error)

main ( ) 
           {    char S[ ] = "ABCDEFGH";
                 printf ("%C",* (& S[3]));
                 printf ("%s", S + 4);
                 printf ("%u", S);
            /* Base address of S is 1000 */
            }
Discuss
Answer: (d).DEFGH1000
Q27.
Which of the following, in C++, is inherited in a derived class from base class ?
Discuss
Answer: (c).data members
Q28.
Given that x = 7.5, j = -1.0, n = 1.0, m = 2.0
The value of - - x + j = = x > n >= m is :

a.

0

b.

1

c.

2

d.

3

Discuss
Answer: (a).0
Discuss
Answer: (d).Templates are more efficient than macros
Q30.
When the inheritance is private, the private methods in base class are in the _______________ derived class (in C++).
Discuss
Answer: (a).inaccessible
Page 3 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!