Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
312 views
in Computer by (45.2k points)
closed by

Exit Criteria.

1 Answer

+1 vote
by (44.9k points)
selected by
 
Best answer

Exit criteria is defined as condition which must be met before completing a specific task. It is a predefined set of conditions that must exist before you can declare a program to be complete.

Exit criteria is one of the most important components while defining a loop. As without an exit criterion, the program tends to enter in an infinite loop. These criteria differ from program to program as per the requirement.

For example, while creating a loop to print numbers from 1 to 1000, exit criteria is that loop should exit the block of code when the 1000th number is printed, else the program will enter an infinite loop.

Related questions

+1 vote
1 answer
+1 vote
1 answer
asked Nov 3, 2023 in Computer by Eshwarojha (45.2k points)
+1 vote
1 answer
+1 vote
1 answer

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...