

Untitled Lesson
Presentation
•
Computers
•
9th Grade
•
Hard
TUAN Moe
FREE Resource
164 Slides • 58 Questions
1
2
Multiple Choice
Apakah yang berlaku untuk program ini?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
3
Multiple Choice
Which of these blocks can be identified as Iteration.
When Space key pressed
Forever
Move 10 Steps
If on edge, bounce
4
Multiple Choice
Consider the following flow chart showing a process for program execution. Given that a = 5, and b = 10, what will be displayed by the program?
a is bigger
b
5
10
Nothing will be displayed
5
Multiple Choice
6
Multiple Choice
I can do what with this..
Click it because it's pink.
Repeat my steps with LESS puzzle pieces.
Looks kind if weird.
7
Multiple Choice
8
Multiple Choice
When this program is run, the last pumpkin is not harvested. Why? (17-6)
You should have added another Pick Path function.
You should have used an If Conditional instead of a Why Conditional for Pumpkins.
You should have moved the pick block after the forward block
Pumpkins should be picked before corn in the Pick function.
9
Multiple Choice
What will be the result of the code shown?
7
6
5
4
3
2
1
7
6
5
4
3
2
7
6
5
4
3
Nothing, there's an error
10
Multiple Choice
If the value of inputtedNum is 6, then what is the output of the following code?
<no output>
The sun will shine bright
The moon will glow bright
Error
11
Multiple Choice
Tom has installed a new smart heating system in his home.
Shown is the section of code that controls when the heating switches on.
Which code shows the correct completion of line 9?
TEMP >= 14.5
TEMP < 14.5
TEMP > 14.5
TEMP >= 14.6
12
Multiple Choice
What's the difference between these 2 scripts?
the first one will say Hello once and second will say it for 2 seconds
the second one will say Hello forever and first one will say it for 2 seconds
the second one will say Hello once and first one will say it for 2 seconds
the first one will say Hello forever and second one will say it for 2 seconds
13
Multiple Choice
What does the following algorithm do?
Add up all the numbers between (and including) 1 and 5
Add up all the numbers between (and including) 1 and 6
Add up the numbers 1 and 5
Add up the numbers 1 and 6
14
Multiple Choice
The following question uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the bottom left square of the grid and facing right.
Which of the following shows the location of the robot after running the code segment?
15
Multiple Choice
What control structure would be best to use in the following code?
A function
A while loop
A for loop
An if/else statement
16
Multiple Choice
A program races four avatars against each other: Piceratops, Leafers, Duskpin, and Aqualine.
Here they are lined up at the start line, in that order:
After the first 3 repetitions of each loop, which avatar will be ahead?
Two avatars will be tied for the lead.
17
Multiple Choice
Which concept is not present in the following code?
Iteration
Selection
Variable assignment
18
Multiple Choice
19
Multiple Choice
Which of these algorithms will move the robot along the same path as the algorithm below?
MOVE_FORWARD()
TURN_RIGHT()
MOVE_FORWARD()
TURN_RIGHT()
MOVE_FORWARD()
TURN_RIGHT()
MOVE_FORWARD()
TURN_RIGHT()
REPEAT 2 TIMES
{
MOVE_FORWARD()
MOVE_FORWARD()
TURN_RIGHT()
MOVE_FORWARD()
TURN_RIGHT()
}
20
Multiple Choice
21
Fill in the Blanks
Type answer...
22
Multiple Choice
What will happen when the flag is pressed?
sprite will say Hello! then Goodbye!
Sprite will say Hello! only
Sprite will say Goodbye! only
Sprite will say nothing
23
Multiple Choice
Hannah and Daniel are helping a robot learn to move! Take a look at this code block. What will the robot do when Hannah clicks "Run"?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
24
Multiple Choice
The action of doing something over and over again.
Looping
Bugging
Programming
25
Multiple Choice
These blocks are different examples of what?
motion
events
controls
sound
26
Multiple Choice
In total, how many times is the inner loop executed?
5
10
15
50
Infinite Loop
27
Multiple Choice
This is an example of a(n)...
sequential operation
conditional operation
iterative operation
unconditional operation
28
Multiple Choice
What condition should be used in this while loop to get Karel to pick up all the tennis balls on the current location?
noBallsPresent()
ballsPresent()
frontIsClear()
takeBall()
29
Multiple Choice
x
y
10
12
30
Multiple Choice
Say Karel is on a location with one tennis ball. After the following code runs, how many tennis balls will there be at that location?
0
1
2
6
31
Multiple Choice
What loop is this?
Forever loop
Fixed loop
32
Multiple Choice
Which block would you use to replace the "?" in the code?
(click the picture to make it bigger)
33
Multiple Choice
Which block represents Iteration in Scratch programming?
wait 1 second
set score to 0
forever
create clone of myself
34
Multiple Choice
Tindakan melakukan sesuatu berulang kali.
Pengulangan
Bugging
Pemrograman
35
Multiple Choice
Hey Aanya, Siya, and Divya! Let's dive into the world of Scratch programming! Can you spot which of these blocks represents Iteration?
wait 1 second
set score to 0
forever
create clone of myself
36
Multiple Choice
Who is most likely to use the code on the left?
Customer
Manager
Technician
Programmer
37
Multiple Choice
Apa yang dilakukan kode ini?
Bergerak maju 1 kali
Bergerak maju selamanya
Bergerak maju 5 kali
Bergerak ke kiri
38
Multiple Choice
What does this block do?
Repeat the code forever
Repeat the code 2 times
Repeat the code until touching the sprite
39
Multiple Choice
What does the mystery function do?
Karel moves until it is on a ball
Karel moves once if there is no ball present
Karel moves until it puts down a ball
Karel checks if there is no ball on the current spot and then moves once
40
Fill in the Blanks
Type answer...
41
Multiple Choice
A 9-hole golf course is introducing an app to replace paper scorecards. The total score is the number of times the player hits the ball to complete all 9 holes.
Each hole has a target score known as the par value.
If a score entered is three or more above the par value for that hole it is
adjusted to the par value plus two. This is shown for holes 3 and 6.
Part of the code for the app is shown below.
…
Line 10 REPEAT 9 TIMES
Line 11 RECEIVE par FROM (INTEGER) KEYBOARD
Line 12 RECEIVE score FROM (INTEGER) KEYBOARD
Line 13 < calculate final score for each hole >
Line 14 < update totalScore >
Line 15 END REPEAT
Line 16 SEND totalScore TO DISPLAY
Choose the correct code for line 13.
if score > par+2:
score = par+2
if score > par:
score = par+2
if score == par+2:
score = par+2
if score < par+2:
score = par+2
42
Multiple Choice
Which of these blocks can be identified as Iteration?
wait 1 second
set score to 0
forever
create clone of myself
43
Multiple Choice
What is the purpose of this script?
Make the mouse bounce like a ball.
Make the mouse run across the screen indefinitely.
Make the mouse run away from the cat.
Make the mouse run away and disappear off the screen.
44
Multiple Choice
What is a Count-Controlled loop?
for loop
while loop
45
Multiple Choice
Which block allows you to make decisions (choices)?
46
Multiple Choice
To make character pause or slow in scratch, control that is added to script is
Forever
Repeat
Wait
Next costume
47
Multiple Choice
48
Multiple Choice
The ‘else’ statement is optional in Python
TRUE
FALSE
49
Multiple Choice
When does the code block following while(x<100) execute?
When x is less than one hundred
When x is greater than one hundred
When x is equal to one hundred
while it wishes
50
Multiple Choice
Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
for
while
do..while
None of the above
51
Multiple Choice
52
Multiple Choice
What will be the output of the following program.
class WeekDays
{
public static void main(String s[])
{
int day = 4;
switch(day)
{
case 1:
System.out.println("Monday");
case 2:
System.out.println("Tuesday");
case 3:
System.out.println("Wednesday");
case 4:
System.out.println("Thursday");
case 5:
System.out.println("Friday");
default:
System.out.println("Weekend");
break;
}
}
}
Thursday
Compilation Error
Thursday
Friday
Weekend
Runtime error
53
Multiple Choice
A while loop is used when
You know how many times you are going to loop
You want to loop for an unknown number of times, and possibly forever
You only want to run the code in the loop once
You see the word while in the problem description
54
Multiple Choice
Which of the following is known as Exit Controlled Loop?
for loop
do while loop
while loop
All of these
55
Multiple Choice
Which of the following blocks would repeat a code until a certain condition was met?
56
Multiple Choice
The __________ statement uses single expression for multiple choices
loop
switch
multiple value
if else
57
Multiple Choice
In a Python program , a control structure:
directs the order of execution of the statements in the program
dictates what happens before te program starts and after it terminates
defines program-specific data structures
manages the input and output of control characters
58
Multiple Choice
59
Multiple Choice
What is the benefit of using the break command as in the program below?
magic_number = 10
while True:
guess = int(input("Guess my number: "))
if guess == magic_number:
print "You got it!"
break
print "Try again!"
The user can enter as many answers as they want
The program will break out of the loop as soon as the user enters the magic_number
The loop will prompt the user to enter a number no matter what input they give
The loop will give the magic_number after a certain number of tries
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
Show answer
Auto Play
Slide 1 / 222
SLIDE
Similar Resources on Wayground
214 questions
7.LS3.1-The Genetic Pathway: Chromosomes, Genes, and Traits
Presentation
•
7th Grade - University
209 questions
untitled
Presentation
•
KG - University
224 questions
Unit 4 Slides with Questions
Presentation
•
12th Grade
199 questions
SLAR Kindergarten EOY mClass/Lectura Daily Warm Up Day 1
Presentation
•
KG
233 questions
Semester 1 Review
Presentation
•
8th Grade - University
219 questions
Semester 2 Summer Review
Presentation
•
9th Grade
217 questions
Buen Viaje Ch 7/8 (pt 2)
Presentation
•
6th - 8th Grade
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
10 questions
Fire Prevention
Quiz
•
9th - 12th Grade
24 questions
BIOLOGY STAAR REVIEW
Quiz
•
9th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
30 questions
English 1 STAAR Review
Quiz
•
9th Grade
46 questions
Linear and Exponential Function Key Features
Quiz
•
9th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
30 questions
Biology STAAR Review #3
Quiz
•
9th Grade