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

Home » C++ » Interview Questions on Loops in C++

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


Question: 1

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

Compiler
Level: Beginner Category: loops
[Posted by: Admin | 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

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


Question: 3

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

Compiler
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 4

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

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


Question: 5

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

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


Question: 6

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

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


Question: 7

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

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


Question: 8

(A) Yes
(B) No

Compiler
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 9

(A) Yes
(B) No

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


Question: 10

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

Compiler
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 11

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

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


Question: 12

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

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


Question: 13

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

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


Question: 14

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

Compiler
Level: Practitioner Category: loops
[Posted by: Admin | 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

Compiler
Level: Beginner Category: loops
[Posted by: Admin | 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

Compiler
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 17

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

Compiler
Level: Beginner Category: loops
[Posted by: Jeffry Azhari Rosman | Indonesia]


Question: 18

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

Compiler
Level: Beginner Category: loops
[Posted by: Jeffry Azhari Rosman | Indonesia]


Question: 19

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

Compiler
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 20

(A) True
(B) False

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


C++ Online Test
Compile C++ code here

Browse C++ Categories

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

Switch to C Questions