0% found this document useful (0 votes)
10 views2 pages

Computer - Ch-7 Answer Key (VIII) 2024

The document provides the answer key for a Computer subject topic for Class VIII at St. Andrews Scots Sr. Sec. School. It includes multiple-choice questions, fill-in-the-blank exercises, true/false statements, and detailed answers regarding looping and jump statements in programming. Additionally, it covers the syntax and usage of 'for' and 'while' loops, as well as the distinction between 'continue' and 'break' statements.

Uploaded by

arnaboneplustv
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Computer - Ch-7 Answer Key (VIII) 2024

The document provides the answer key for a Computer subject topic for Class VIII at St. Andrews Scots Sr. Sec. School. It includes multiple-choice questions, fill-in-the-blank exercises, true/false statements, and detailed answers regarding looping and jump statements in programming. Additionally, it covers the syntax and usage of 'for' and 'while' loops, as well as the distinction between 'continue' and 'break' statements.

Uploaded by

arnaboneplustv
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

St. Andrews Scots Sr. Sec.

School
9th Avenue, I.P. Extension, Patparganj, Delhi – 110092
Session: 2024-2025

Class: VIII Subject: Computer Topic: Ch-7 Answer Key

A. Choose the correct option:


1. Repeat a chunk of code until a condition is true.
2. Both a and b
3. for statement
4. break
B. Fill in the blanks:
1. while
2. non-zero, false
3. Infinite
4. break, continue
C. Tick (✓) the correct statements and cross (x) the wrong ones.
1. ✓
2. X
3. ✓
4. ✓
5. ✓

D. Answer the following questions:


1. What are looping statements?
Ans. The statements that are used to repeat a set of instructions are called iterative or
looping statements.
2. Write the syntax of the for loop.
Ans. The syntax of the for statement is given below:
for <variable> in <iterator>:
Statements.
3. What is the use of jump statements?
Ans. A jump statement is used to break the normal flow of the program and jump onto
a specific line of code in the program if the specific condition is true. Python offers
two jumping statements—break and continue, which are used within the loop.
4. Draw a flow chart of for loop.

Ans.

5. Define the use of while statement with the help of example and flowchart.
Ans. The while statement executes a set of statements repeatedly, until the logical
expression evaluates to true. When the condition becomes false, the control comes out
of the loop. The syntax of while statement is given below.
Syntax:
while (test expression):
Statements

6. Distinguish between continue and break statements.


Ans. Continue Statements: The continue statement is used inside loops. When a
continuous statement is encountered inside a loop, control of the program jumps to the
beginning of the loop for next iteration, skipping the execution of rest of the statement
of loop for current iteration.
Break Statement: The break statement halts the execution of a loop and program flow
switches to the statement after the loop. A single break statement will break out of only
one loop.

You might also like