WorksheetsReview2T1G5
Total questions: 14
Worksheet time: 7mins
Look at the blocks below. Which one can you use as a selection block?
What is the algorithm below an example of?
a. Sequence
a. Selection
a. Iteration
a. Feedback
a. Sequence
a. Selection
a. Iteration
a. Decomposition
Look at the code below. What does this code do?
a. Subtract two numbers
a. Divide two numbers
a. Multiply two numbers
a. Add two numbers
Look at the blocks below. Which one is a loop block?
This code outputs “Pass” if the mark > 50. Which blocks can you add to output “Fail” if the mark < 50?
Look at the code below. What would be the output if the temperature sensor reads 30 Celsius?
Cold
Display
Hot
String
Why do we use iteration in code?
a. To repeat certain steps in code
a. To run the code in order
a. To run the code based on a condition
a. To collect feedback on a code we wrote
Which one is an advantage of reusing existing code?
a. To protect computers from cyber attacks
a. To save storage space
a. To protect copyrights
a. To save time, effort, and money
Why do we collect feedback on the code we write?
a. To break down a problem
a. To make our code difficult
a. To improve our code
a. To make our code longer
Look at the following code. You want to change it to multiply two numbers. Which blocks could you use to create the new program?
What do we call a program or a machine that thinks and acts like humans?
a. Sensor
a. Artificial Intelligence (AI)
a. Predictions and visual data
a. Decision
How does AI work?
a. Stores information Makes decisions Takes actions
a. Stores information Outputs the information
a. Makes decisions Takes actions Sends emotions
a. Takes orders Executes orders
Which one is a form of AI?
