CPP Nested Loop MCQCpp MCQ
(1) A loop within another loop statement is called
A) Inner structure
B) Nested loop
C) Complex loop
D) Infinite loop
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 ?
B) do while
D) All of these
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
Nested loop structures are commonly used for complex operations in which calculations have to go in multiple levels.