Interview Questions on Enum in C : (8)
Question: 1
(A) 1
(B) 3
(C) 4
(D) 12
Compiler
Level: Beginner Category of MCQ: enum
Question: 2
(A) Enum can contain enum but duplicate contestants are not allowed
(B) Enum can't contain enum
(C) Enum can contain enum but not accessible
(D) This code will produce compilation error
Compiler
Level: Beginner Category of MCQ: enum
Question: 3
(A) Male
(B) 0
(C) 1
(D) Compilation Error
Compiler
Level: Beginner Category of MCQ: enum
Question: 4
(A) Male Female
(B) 0 1
(C) 5 5
(D) 5 6
Compiler
Level: Practionar Category of MCQ: enum
Question: 5
(A) -1 0
(B) -1 -2
(C) -1 -1
(D) Compilation Error
Compiler
Level: Practionar Category of MCQ: enum
Question: 6
(A) Male Female
(B) 0 1
(C) Runtime error (Segmentation fault)
(D) Compilation Error: Can't cast
Compiler
Level: Expert Category of MCQ: enum
Question: 7
(A) 0 0
(B) -1 0
(C) Some Garbage Value 0
(D) Compilation Error
Compiler
Level: Practionar Category of MCQ: enum
Question: 8
(A) Compilation Error
(B) Garbage Value 0
(C) -1 -1
(D) 0 -1
Compiler
Level: Expert Category of MCQ: enum