Learn me Teach me
Education is improving the lives of others and for leaving your community and world better than you found it
Search What You want
Tuesday 9 January 2018
Monday 8 January 2018
Important Questions Answers About Loop
Important Question Answer About Loop
Q1. Define a loop.
Ans: It is another fundamental idea in programming.
It makes possible repeated execution of one or more statements as long as a condition
is true.
Q2: How many essential elements to a loop?
Ans: There are two essential elements to a loop
Q3: What do you know about FOR LOOP?
Ans: It is primarily used for executing a
statement or block of statements predetermined number of time. For loop has
three expressions.
Q4: Write down the general form of the
FOR statement.
Ans: General form of the for statement is
For(expression 1; expression 2;
expression 3)
{
Body of the loop
}
Q5: Write down the general form of the WHILE
statement.
Ans: General form of the for statement is
while(expression)
{
Body of the loop
}
Q6: Write down the general form of the DO
WHILE statement.
Ans: General form of the for statement is
do
{
Body of the loop
}
While(expression)
Q7:What is nested loop?
Ans: A loop within another loop is known
as a nested loop.
Subscribe to:
Posts (Atom)