Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

Interview Questions on Variables in C : Total Questions (10)

You are here : Home » Interview Questions on Variables in C


Question: 1

(A) 10
(B) @10
(C) 10@
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 2

(A) 10
(B) 20
(C) 2a
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 3

(A) Compilation Error
(B) 10
(C) __10
(D) __a

[Posted by: Admin | Location: Chicago, USA]



Question: 4

(A) 20
(B) Ambiguity Error
(C) 10
(D) 0

[Posted by: Admin | Location: Chicago, USA]



Question: 5

(A) 10
(B) 20
(C) ::20
(D) ::10

[Posted by: Admin | Location: Chicago, USA]



Question: 6

(A) 1020
(B) 1010
(C) 2020
(D) Error: Redeclartion of a

[Posted by: Admin | Location: Chicago, USA]



Question: 7

(A) 10
(B) 10@
(C) @
(D) [Error] stray '@' in program

[Posted by: Admin | Location: Chicago, USA]



Question: 8

(A) 1 2 2
(B) 1 3 3
(C) 3 3 1
(D) 1 3 2

[Posted by: Admin | Location: Chicago, USA]



Question: 9

(A) Hello 0 0 0 10 12 0
(B) Hello 5 5 1 10 12 3
(C) Hello 6 6 6 10 12 3
(D) Hello 6 6 2 2 10 12 8

[Posted by: Admin | Location: Chicago, USA]



Question: 10

(A) 50 69#51 59
(B) 50 60#52 58
(C) 50 60#51 59
(D) 50 59#51 60

[Posted by: Admin | Location: Chicago, USA]