Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Loops and Algorithms

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

1. What are algorithms?

a)

Scattered commands

b)

A set of rules or instructions that do a process

c)

inputs from user

2.

2. When code is written using simple and general language that is not programming, it is termed __________

a)

pseudocode

b)

fauxcode

c)

truecode

3.

3. The function used by programmers to repeat a set of instructions is called a ________.

a)

repeat

b)

loop

c)

roller

4.

5. The kind of loop for iterating over (going over) numerical ranges and strings and data is ____________

a)

an iterater loop

b)

a while loop

c)

a for loop

5.

6. The kind of loop that runs a command until a condition is met is a ____________

a)

an iterater loop

b)

a while loop

c)

a for loop

6.

7. Diagrams that show how code will run are called?

a)

code run

b)

code map

c)

code flow diagrams

7.

4. The correct way of creating a for loop with a range of 5 is _________.

a)

for i in range(1 - 5)

b)

for i in range(5)

c)

for i in range(five)