You are on page 1of 6

Homework: Multiple choice questions

Selection, conditions, and operators

Q1. What will be the output of this program when it is executed? (What will the sprite say)?

A Good afternoon

B How are you?

C Good afternoon
How are you?

D Nothing will be
outputted/said

Answer
C

Justification
The hour is more than 11
How are you command goes automatically

Q2. What will be the output of this program when it is executed? (What will the sprite say)?

Page 1 Last updated: 08/03/2021


A Good afternoon
How are you?

B How are you?

C Good morning
Good afternoon
How are you?

D Good morning
How are you?

Answer

Justification Clock=12 =afternoon


How Are You command will be said automatically

Q3. Which of the conditions would evaluate as true with the following inputs?
Tick if it Explain why the incorrect answers
evaluates as evaluate as false
true

A Yes

B no 30 is not bigger than itself+90 is not


bigger than itself

C Yes

D yes Both variants are correct

Count-controlled iteration

Q4. Which of the following blocks of code would make the Scratch cat say “1, 2, 3” leaving a second
in between each number?
A B

C D

Answer

Justification
All commands are in a correct order

Q5. What will be outputted (what will be said) when the following program is executed?
A 10, 11, Lunchtime, 12

B 10, 11, Lunchtime, 13

C 10, 11, 12, 13

D 10, 11, Lunchtime, 12, 13

Answer

Justification When hour=12 ,lunchtime is said, till 13 as 14 is bigger than 13

Q6. What will be outputted (what will be said) when the following program is executed?
A Sun, Rain, It’s raining

B Sun, Rain, Rain

C Sun, Rain, Rain, It’s raining

D Sun, It’s raining

Answer
C

Justification Sun is set, Then weather is sent to rain, the last block is if weather=rain say
it is raining

END OF QUESTIONS

You might also like