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++ : (7)


Question: 1

(A) blue
(B) 2
(C) 1
(D) None of these

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



Question: 2

(A) blue
(B) Compilation Error
(C) 1
(D) 2

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



Question: 3

(A) yellow
(B) black
(C) Compilation Error
(D) 3

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



Question: 4

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

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



Question: 5

(A) 0
(B) 1
(C) 2
(D) 4

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



Question: 6

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

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



Question: 7

(A) “MAPLE”
(B) 2
(C) ‘M’
(D) 1

Compiler Forum
Beginner enum[Posted by: Andrew | New Jersey]



Compile C++ code here Upload your Questions

Browse C++ Categories

Loops Conditional Functions Operators Structure Enum FileHandling Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Reference Variables Virtual Functions Abstract Class STL Singleton Class Exceptions C++ 11 C++ 14 C++ 17 gcc/g++ others

Switch to C Questions