Computer Science · Control Statements
In a login system, attempts are allowed up to 3 times, and the system must prompt the user at least once before checking the condition. Which type of loop is best suited for this scenario?
Verified Solution4 OptionsUpdated: October 2026👁️1 View
Share:
- 1for
- 2while
- 3do-while✓
- 4nested for
Correct answer
do-while
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
👥
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Online Test Series
Preparing for Computer Science?
Practice full-length Computer Science mock tests with real exam timers, instant score analysis, and all-India ranking.
Chapter Practice
Practice Control Statements MCQs →Want more practice questions on Control Statements?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Control Statements