Explore topic-wise MCQs in C Interview.

This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your C Interview knowledge and support exam preparation. Choose a topic below to get started.

1.

Which among the following is wrong for “register int a;”?

A. Compiler generally ignores the request
B. You cannot take the address of this variable
C. Access time to a is critical
D. None of the mentioned
Answer» E.
2.

Register storage class can be specified to global variables.

A. True
B. False
C. Depends on the compiler
D. Depends on the standard
Answer» C. Depends on the compiler
3.

Segmentation fault

A. main is called twice
B. main is called once
C. main is called thrice
Answer» B. main is called once
4.

Register variables reside in ________

A. stack
B. registers
C. heap
D. main memory
Answer» E.
5.

Which among the following is the correct syntax to declare a static variable register?

A. static register a;
B. register static a;
C. Both static register a; and register static a;
D. We cannot use static and register together
Answer» E.
6.

Which of the following operation is not possible in a register variable?

A. Reading the value into a register variable
B. Copy the value from a memory variable
C. Global declaration of register variable
D. All of the mentioned
Answer» E.
7.

register keyword mandates compiler to place it in machine register.

A. True
B. False
C. Depends on the standard
D. None of the mentioned
Answer» C. Depends on the standard
8.

Which data type can be stored in register?

A. int
B. long
C. float
D. all of the mentioned
Answer» B. long