An important facility for 12th class students preparing for short questions computer science 12th class chapter 12 of BISE. Get hundreds of questions to prepare and get better marks in 12th computer science
0
Our database contains a total of 0 questions for computer science Short Questions. You’ll prepare using this huge databank.
Question: 1
Define While Loop.
Answer: 1
1-29The while loop keeps repeating associated statements until the specified condition becomes false. This is useful where the programmer does not know in advance how many times the loop will be traversed.The dyntax o the while statement is
While (condition)
}
statements(S);
}
The condition in the while loop controls iteration. The statements which are executed when the given condition is true,from the body of the loop. If the condition is true, the body of the loop is executed . As soon as it becomes false, the loop terminates immediately.