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

Q131.
In C++, the operator which cannot be overloaded.
Discuss
Answer: (d).:: operator
Q132.
A type of inheritance in which the property of one class is inherited by more than one class.
Discuss
Answer: (b).Hierarchical Inheritance
Q133.
If a variable is declared as register type, then the operator that cannot be applied to it.
Discuss
Answer: (a).Unary &
Q134.
What would be the output of the following C program.
#include<stdio.h>
main()
{
int x=1;
while(x<=1);
{
printf(“Good Morning”);
--x;
}
}
Discuss
Answer: (c).Blank Display
Q135.
What would be the output of the following C program
#include<stdio.h>
main()
{
int I,x=1,y=1,z=0;
printf(“%d %d”,x,y);
for(I=0;I<3;I++)
{
x+y=z;
printf(“%d”,z);
x=y;
y=z;
}
}
Discuss
Answer: (d).Syntax Error
Q136.
The output generated by the following C program
#include<stdio.h>
int Update(int x)
{
static int y=10;
y+=x;
return(y);
}
main()
{
int a,count;
for(count=0;count<3;++count)
 {
 a=Update(count);
 printf(“%d”,a);
 }
}
Discuss
Answer: (b).10 11 13
Q137.
In C++, the following statements causes:
#include<iostream.h>
int main()
{
int x=10,y=5;
int* p=&x;
int* q=&y;
p=q;
delete(p);
return (0);
}
Discuss
Answer: (c).Both p and q as dangling references
Q138.
Conversion from one data type to another data type, inserted automatically by a programming language.
Discuss
Answer: (b).Coercion
Q139.
The output generated by the following C program:
#include<stdio.h>
main()
{
int v=3;
int *pv;
pv=&v;
*pv=0;
printf(“*pv=%d v=%d”,*pv,v);
}
Discuss
Answer: (a).*pv=0 v=0
Q140.
In C++, a pointer that is automatically being passed to a member function during its invocation is:
Discuss
Answer: (d).this pointer

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!