C/C MCQ Quiz Hub

C MCQS Interview Questions

Choose a topic to test your knowledge and improve your C/C skills

What are different storage class specifiers in C?





✅ Correct Answer: 4

What is scope of a variable?





✅ Correct Answer: 3

How will you print “Hello World” without semicolon?





✅ Correct Answer: 2

Swapping of two variable require minimum





✅ Correct Answer: 1

When should we use pointers in a C program?





✅ Correct Answer: 4

What is NULL pointer?





✅ Correct Answer: 1

What is Dangling pointer ?





✅ Correct Answer: 1

What is memory leak?





✅ Correct Answer: 2

What are local static variables ?





✅ Correct Answer: 4

What is difference between i++ and ++i?





✅ Correct Answer: 2

What is difference between i++ and ++i?





✅ Correct Answer: 4

Execution of every c program starts with-





✅ Correct Answer: 2

smallest executable code in c is -





✅ Correct Answer: 2

Types of loops in c -





✅ Correct Answer: 4

Entry control loop are -





✅ Correct Answer: 2

Exit control loops are those





✅ Correct Answer: 2

Entry control loops are-





✅ Correct Answer: 4

Exit control loop are -





✅ Correct Answer: 3

what is HEAP area ?





✅ Correct Answer: 1

What is stack area ?





✅ Correct Answer: 1

If we allocate memory by malloc in c then it goes to





✅ Correct Answer: 1

int a=1; memory allocation is a type of





✅ Correct Answer: 2

How many keywords are there in c ?





✅ Correct Answer: 3

Which are the basic data type in c ?





✅ Correct Answer: 4

void in c language is -





✅ Correct Answer: 3

fabs() in c programming are in-





✅ Correct Answer: 1

what is the cyclic nature of data type in c ?





✅ Correct Answer: 3

Is nested loop exist in c programming-





✅ Correct Answer: 1

Nested loop is





✅ Correct Answer: 4

What is the difference between declaration and definition of function in c ?





✅ Correct Answer: 3

For recursion we require





✅ Correct Answer: 1

we can create loop by





✅ Correct Answer: 4

exit() function are used to-





✅ Correct Answer: 3

exit() function were define in -





✅ Correct Answer: 3

which of the following are the modifier in c ?





✅ Correct Answer: 4

which of the following are modifier in c ?





✅ Correct Answer: 4

for creating random number, we use





✅ Correct Answer: 1

rand() function are used to generate random number during execution of program, In which header file it is define ?





✅ Correct Answer: 3

Is that possible to store 32768 in an int data type variable ?





✅ Correct Answer: 2

for storing number 32768 as a integer, which one is valid ?





✅ Correct Answer: 2

Null pointers are possible to use in -





✅ Correct Answer: 4

for any type of looping we require-





✅ Correct Answer: 4

without the curly braces, the body of while loop is upto





✅ Correct Answer: 2

int a this type of declaration is treated as:-





✅ Correct Answer: 3

if the declaration of variable is outside the function then it is treated as





✅ Correct Answer: 1

is it possible to create customized header file ?





✅ Correct Answer: 1

is graphical programming possible by c language ?





✅ Correct Answer: 2

Canvas programming in c are those which deal with the





✅ Correct Answer: 4

c language is-





✅ Correct Answer: 1

Ascii value of A is -





✅ Correct Answer: 2