Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » C » Interview Questions on Enum in C

Interview Questions on Enum in C : (8)


Question: 1

(A) 1
(B) 3
(C) 4
(D) 12

Compiler Forum
Beginner enum[Posted by: Admin | Chicago, USA]



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 Forum
Beginner enum[Posted by: Admin | Chicago, USA]



Question: 3

(A) Male
(B) 0
(C) 1
(D) Compilation Error

Compiler Forum
Beginner enum[Posted by: Admin | Chicago, USA]



Question: 4

(A) Male Female
(B) 0 1
(C) 5 5
(D) 5 6

Compiler Forum
Practionar enum[Posted by: Admin | Chicago, USA]



Question: 5

(A) -1 0
(B) -1 -2
(C) -1 -1
(D) Compilation Error

Compiler Forum
Practionar enum[Posted by: Admin | Chicago, USA]



Question: 6

(A) Male Female
(B) 0 1
(C) Runtime error (Segmentation fault)
(D) Compilation Error: Can't cast

Compiler Forum
Expert enum[Posted by: Admin | Chicago, USA]



Question: 7

(A) 0 0
(B) -1 0
(C) Some Garbage Value 0
(D) Compilation Error

Compiler Forum
Practionar enum[Posted by: Admin | Chicago, USA]



Question: 8

(A) Compilation Error
(B) Garbage Value 0
(C) -1 -1
(D) 0 -1

Compiler Forum
Expert enum[Posted by: Admin | Chicago, USA]



Compile C code here |  Upload C Questions

Browse C Categories

Preprocessor Assembler Compilation Datatypes Arrays Variables Pointers Functions Loops Switch Structures Union Enum Goto & Labels Storage Classes Malloc & free Macros Conditional Operators File Handling gcc Others

Switch to C++ Questions