Scratch Retest
By Mickey Arnold
starstarstarstarstarstarstarstarstarstar
Last updated 10 months ago
5 Questions
1 point
1
Question 1
1.
What is output by the code to the below?
set a to 99if a < 99 say "abc"say "def"
What is output by the code to the below?
set a to 99
if a < 99
say "abc"
say "def"
1 point
1
Question 2
2.
What is output by the code to the below?
set d to 80set e to 60if d > 90 say "abc"if e < 95 say "def"
What is output by the code to the below?
set d to 80
set e to 60
if d > 90
say "abc"
if e < 95
say "def"
1 point
1
Question 3
3.
What is output by the code to the below?
set a to 55repeat 5 change a by -5say a
What is output by the code to the below?
set a to 55
repeat 5
change a by -5
say a
1 point
1
Question 4
4.
What is output by the code to the below?
set c to 10repeat until c > 49 change c by 8say c
What is output by the code to the below?
set c to 10
repeat until c > 49
change c by 8
say c
1 point
1
Question 5
5.
What is output by the code to the below?
set e to 0set count to 0repeat until e > 90 if e < 50
change e by 15 else change e by 9 change count by 1say count
What is output by the code to the below?
set e to 0
set count to 0
repeat until e > 90
if e < 50
change e by 15
else
change e by 9
change count by 1
say count