Essentials
primer-original-v2mediumEssentialsSoftware Fundamentalsprimer-original-v2

Jack wants to book flight tickets in Feather-Airways’ online portal for his family of five. Passenger details like name, age, gender etc. should be entered for each member. The same process of getting details continues for all the five members. The above scenario is a good example for which looping statements?

Answer options

A
For loop
B
WHILE loop
C
DO-WHILE loop
D
Bubble Sort

Correct answer: For loop

Explanation

Quick AnswerThe correct answer is For loop because it directly addresses the core logic of Essentials.

This question has been retained as-is due to its unique context.

Related Essentials questions

Practice more Essentials questions

PrimerPrep has independently reviewed practice questions and coding exercises — all free.