Search Header Logo
For loops

For loops

Assessment

Presentation

Computers

8th - 10th Grade

Practice Problem

Medium

Created by

Asma Al-Faran

Used 190+ times

FREE Resource

1 Slide • 10 Questions

1

For loops

Slide image

2

Multiple Choice

The character that must be at the end of the line for if, while, for etc.

1

:

2

'

3

;

4

"

3

Multiple Choice

Question image

The above program prints

1

Numbers 1 to 10 in reverse order

2

Numbers 1 to 11 in reverse order

3

Numbers 1 to 10

4

Numbers 1 to 11

4

Multiple Choice

Which kind of loop would be used?


I need a revision program that will run through revision questions 4 times.

1

FOR Loop

2

WHILE Loop

5

Multiple Choice

A condition is

1

a statement that is either True or False

2

a string

3

an integer

4

a list

6

Multiple Choice

WHILE loops are

1

loops which run an unknown number of times

2

loops which run for a specific number of times

3

the same as if statements

4

not part of programming

7

Multiple Choice

FOR loops are

1

loops which run an unknown number of times

2

loops which run for a specific number of times

3

the same as if statements

4

not part of programming

8

Multiple Choice

Which two statements are used to implement iteration?
1
IF and WHILE
2
ELSE and WHILE
3
FOR and WHILE
4
IF and ELSE

9

Multiple Choice

In programming, what is iteration?

1

The repetition of steps within a program

2

The order in which instructions are carried out

3

A decision point in a program

4

Testing a program to make sure it works

10

Multiple Choice

In programming, what is iteration?

1

The repetition of steps within a program

2

The order in which instructions are carried out

3

A decision point in a program

4

Testing a program to make sure it works

11

Multiple Choice

Question image

What will be the output of the following program:

1

11

2

12

3

Error

4

23

For loops

Slide image

Show answer

Auto Play

Slide 1 / 11

SLIDE