CPP Nested Loop MCQ
Cpp MCQ- Home
- Tutorials
- Cpp
- Nested Loop
- Multiple Choice Question
(1) A loop within another loop statement is called
A) Inner structure
B) Nested loop
C) Complex loop
D) Infinite loop
Explanation
In nested loop structure there is a loop statement whose body contain other loop statements. There is no restriction for levels of nrsted loop.
(2) Which of the following loop can be used as ouuter loop ?
A) while
B) do while
C) for
D) All of these
Explanation
Any any loop structure can be used as inner or outer loop..
(3) Nested loop structure is used for.
A) Multi dimensional arrays
B) Matrix manipulation
C) Complex Pattern
D) All of These
Explanation
Nested loop structures are commonly used for complex operations in which calculations have to go in multiple levels.