177k views
1 vote
In order for two or more repetitive processes to be considered nested, they must appear in the same user-defined function.

a) True
b) False

1 Answer

3 votes

Final answer:

The claim that nested loops or processes must be in the same function to be considered nested is false; nesting can occur within different functions or the main program body.

Step-by-step explanation:

The statement that two or more repetitive processes must be in the same user-defined function to be considered nested is false. Nesting refers to the placement of one loop inside another loop or a conditional statement inside another. This concept does not require the loops or conditional statements to be within the same function; they can be nested within each other even if they reside in different functions or in the main body of the program.

User Ryan Metin
by
8.5k points