WorksheetsLoops and Algorithms
Total questions: 7
Worksheet time: 4mins
1. What are algorithms?
Scattered commands
A set of rules or instructions that do a process
inputs from user
2. When code is written using simple and general language that is not programming, it is termed __________
pseudocode
fauxcode
truecode
3. The function used by programmers to repeat a set of instructions is called a ________.
repeat
loop
roller
5. The kind of loop for iterating over (going over) numerical ranges and strings and data is ____________
an iterater loop
a while loop
a for loop
6. The kind of loop that runs a command until a condition is met is a ____________
an iterater loop
a while loop
a for loop
7. Diagrams that show how code will run are called?
code run
code map
code flow diagrams
4. The correct way of creating a for loop with a range of 5 is _________.
for i in range(1 - 5)
for i in range(5)
for i in range(five)
