Enum in C language MCQs

@T-Bone

This question paper focuses on the "Enum" of the C programming. These Multiple Choice Questions (mcq) should be practiced to improve the C programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

This question paper focuses on the "Enum" of the C programming. These Multiple Choice Questions (mcq) should be practiced to improve the C programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

Questions

1. Enumeration (or enum) is a ______ data type in C?

Mark the correct option

2. If we do not explicitly assign values to enum names, the compiler by default assigns values to ?

Mark the correct option

3. All enum constants are?

Mark the correct option

4. String handling functions such as strcmp(), strcpy() etc can be used with enumerated types.

Mark the correct option

5. Pick the incorrect statement with respect to enums.

Mark the correct option

6. Arithmetic operations are not allowed on enumerated constants.

Mark the correct option

7. What will be output for the following code?

Mark the correct option

8. What will be output for the following code?

Mark the correct option

9. What will be output for the following code?

Mark the correct option

10. What is the correct syntax of enum?

Mark the correct option

Index of Questions