CMU Unit 3 Practice Test

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Joshua Ottoson
Used 44+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the centerY of c after we press the mouse once, according to the code below?
255
205
245
195
Answer explanation
The circle is created with a starting y-value of 250. After 1 click, the centerY of c is decreased by 5, leaving 245. The center Y of g is not relevant.
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the centerY of c after we press the mouse once, according to the code below?
210
110
125
225
Answer explanation
On line 3, c is added to group g with the g.add(c) command.
On line 6, g.centerY affects c because c is now in the group. On line 7, c moves again, for a total of 25 pixels of increase between lines 6-7.
Since c has a starting y-value of 100, then it increases to 125.
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which shapes remains visible in the group after we press and release the mouse?
r and s
o and r
o and s
c and s
Answer explanation
On mouse press, s is removed from the group, however it is added back in the group on mouse released. So s is still visible after mouse press and release.
o is drawn and never made invisible or removed, so will still be visible.
c is invisible because of line 13, and r is invisible because of line 17.
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the centerY of c after we run the code?
105
205
305
405
Answer explanation
c is created on line 2 and never added to the group. Then on line 4, a for loop runs the code 'c.centerY += 5' for each shape in g.children. Since g has only 1 shape, then 'c.centerY += 5' only runs once.
c has a starting y-value of 100, and since c.centerY += 5 only runs once, c's y-value ends at 105.
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the centerY of c after we run the code?
100
105
300
305
Answer explanation
c is created with a y-value of 100. It is never added to the group. The code on lines 4-5 only affect the y-values of each shape in the group, so c remains unaffected. c's final yvalue is still 100.
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following will not be printed?
0
1
2
3
Answer explanation
i will take on 3 values starting at 0: 0, 1, 2.
Another way to think about it is that i will go from 0 to 1 less than 3, so 0 to 2.
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following will not be printed?
3
4
5
6
Answer explanation
i will take on the values within 3 and 1 less than 6.
So 3, 4, 5
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quiz 1 Pemrograman Perangkat Bergerak

Quiz
•
11th Grade
15 questions
Comparing Python, Java, and JavaScript

Quiz
•
9th Grade - University
15 questions
1.4 Aplicaciones Web que se ejecutan del lado del servidor

Quiz
•
12th Grade
15 questions
Sains Komputer Tingkatan 5 - 1.2.4 Membincangkan penterjemah

Quiz
•
1st Grade - Professio...
18 questions
Quiz sobre a História das Linguagens de Programação

Quiz
•
10th Grade
15 questions
AI-Unit 1

Quiz
•
9th - 10th Grade
15 questions
History of Computers

Quiz
•
6th - 12th Grade
15 questions
Quiz Bahasa Pemrograman

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade