EVENTS CONVENT HIGH SCHOOL
Computer
Chapter-8
LOOPING STATEMENT
A. Tick the correct option
1.Specifying
is not compulsory in for next
a.Step(✓) b.in c.next
a.Next b.for c.control
a.Do (✓) b.wend c.for
a.Play b.music
c.both a and b
a.Step b.Next (✓) c.Wend
B. Fill in the blanks
C tight T for true and F for false statements:-
1. We
prefer not to use looping in our program because they increase our program [false]
D.Answer the following questions:-
1.
What do you understand by looping explain
Ans-1In computer programming, a loop is a sequence of instruction s that is
continually repeated until a certain condition is reached. Typically, a certain
process is done, such as getting an item of data and changing it, and then some
condition is checked such as whether a counter has reached a prescribed number.
2.
What is a for next loop ?
Ans. The for... next statement is an iterative, incremental loop statement used to repeat a sequence of statements for
a specific number of occurrences. ... This looping continues until the ending condition is met or the loop is explicitly exited with an exit or goto statement.
3.
Why is step statement used in for next?
Ans-3 You can use For...Next statements
to repeat a block of statements a specific number of times. For loops use a counter variable whose
value is increased or decreased with each repetition of the loop.
4.What
is a nested loop?
Ans-4
A nested loop is a loop within a loop, an inner loop
within the body of an outer one. How this works is that the first pass of the
outer loop triggers the inner loop, which executes to completion. Then the
second pass of the outer loop triggers the inner loop again. This repeats until
the outer loop finishes.
No comments:
Post a Comment
Thank your for your valuable responce.
Mrfarooqui