Explore topic-wise MCQs in C Programming.

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

1.

Which of the following is true for static variable?

A. It can be called from another function
B. It exists even after the function ends
C. It can be modified in another function by sending it as a parameter
D. All of the mentioned
Answer» B. It exists even after the function ends
2.

What is the format identifier for “static a = 20.5;”?$

A. %s
B. %d
C. %f
D. Illegal declaration due to absence of data type
Answer» C. %f
3.

Assignment statements assigning value to local static variables are executed only once.

A. True
B. False
C. Depends on the code
D. None of the mentioned
Answer» C. Depends on the code
4.

11 12 11 12

A. 11 13 11 14
B. 11 12 11 13
C. Compile time error
Answer» C. Compile time error
5.

Is initialisation mandatory for local static variables?

A. Yes
B. No
C. Depends on the compiler
D. Depends on the standard
Answer» C. Depends on the compiler
6.

Functions have static qualifier for its declaration by default.

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

10 0

A. 0 0
B. 10 10
C. Compilation Error
Answer» B. 10 10