Interview Questions on C C++

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

Interview Questions on Loops in C++ : (19) Questions

You are here : Home » Interview Questions on Loops in C++


Question: 1

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

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



Question: 2

(A) for(initialization;condition; increment/decrement)
(B) for(increment/decrement; initialization; condition)
(C) for(initialization, condition, increment/decrement
(D) None of These

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



Question: 3

(A) Error
(B) 5 times
(C) 4 times
(D) 6 times

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



Question: 4

(A) No
(B) Yes
(C) Compilation Error
(D) Runtime Error

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



Question: 5

(A) new is: -10
(B) new is: 10
(C) Compilation Error
(D) new is: 0

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



Question: 6

(A) 2 Bytes
(B) 4 Bytes
(C) Undefined
(D) 0

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



Question: 7

(A) Compilation Time
(B) Run Time
(C) Linking Time
(D) No

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



Question: 8

(A) Yes
(B) No

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



Question: 9

(A) Yes
(B) No

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



Question: 10

(A) 01
(B) 012
(C) 0
(D) 0123

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



Question: 11

(A) 1234567899
(B) 12345678910
(C) 123455
(D) 12344

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



Question: 12

(A) 1
(B) 2
(C) 0
(D) Infinite Times

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



Question: 13

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

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



Question: 14

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

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



Question: 15

(A) It instruct the compiler to set default value to any variable
(B) It instruct the compiler to set default return value to any function
(C) It instruct the compiler to set default argument values for any function
(D) It instruct the compiler to generate the default implementation

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



Question: 16

(A) Moves get pointer (input) to a specified location
(B) Moves put pointer (output) to a specified location
(C) Gives the current position of the get pointer
(D) Gives the current position of the put pointer

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



Question: 17

(A) For
(B) Do…While
(C) If
(D) While

[Posted by: Jeffry Azhari Rosman | Location: Indonesia]



Question: 18

(A) Branching
(B) Looping
(C) Rekursif
(D) Algoritma

[Posted by: Jeffry Azhari Rosman | Location: Indonesia]



Question: 19

(A) 9876543210
(B) 987654321
(C) 9
(D) 0

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




Compile C++ code here  |  Upload your Questions

C++ Objective Questions By Different Categories:-
Loops | Conditional | Functions | Operators | Structure | Enum | Storage Classes | Union | FileHandling | Data Types | Inheritance | Pointers | Classes & Objects | Vtable | Type Casting | New & Delete | Namespaces | Reference Variables | Static Cast | Dynamic Cast | Reinterpret Cast | Const Cast | Virtual Functions | Abstract Class | STL | Singleton Class | C++ 11 | C++ 14 | C++ 17 | C++ 20 | gcc/g++ | others


Switch to C Questions