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

Q71.
Trace the error:

void main( )
{
int *b, &a;
*b = 20
printf(“%d, %d”, a, *b)
}
Discuss
Answer: (c).Syntax error
Q72.
Match the following:

a. calloc( )         i. Frees previously allocated space
b. free( )             ii. Modifies previously allocated space
c. malloc( )        iii. Allocates space for array
d. realloc( )        iv. Allocates requested size of space

Codes:
      a   b   c   d
Discuss
Answer: (a).iii   i    iv   ii
Discuss
Answer: (b).prints ASCII equivalent of 100
Q74.
The ………….. memory allocation function modifies the previous allocated space.
Discuss
Answer: (d).realloc( )
Discuss
Answer: (a).to help the user of a class
Q76.
How many of the following declarations are correct?

int z = 7.0;
double void = 0.000;
short array [2] = {0, 1, 2};
char c = “\n”;
Discuss
Answer: (c).Two are correct
Discuss
Answer: (b).The body of a do … while loop is executed at least once.
Q78.
The statement

print f (“ % d”, 10 ? 0 ? 5 : 1 : 12);

will print
Discuss
Answer: (d).1
Q79.
What will be the output of the following c-code?

void main ( )
{
char *P = "ayqm" ;
char c;
c = ++*p ;
printf ("%c", c);
}

a.

a

b.

c

c.

b

d.

q

Discuss
Answer: (c).b
Q80.
Member of a class specified as …………… are accessible only to method of the class.
Discuss
Answer: (a).private

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!