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

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



Question: 3

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

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



Question: 4

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

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



Question: 5

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

Compiler
Level: Practionar Category: 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
Level: Expert Category: enum
[Posted by: Admin | Chicago, USA]



Question: 7

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

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



Question: 8

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

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



C Programming Test
Compile C code here | 

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