Which shape is specified by the (x,y) coordinates of the center of the shape?
CMU Unit 1 Practice Test

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Quizizz Content
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Rect
Circle
Polygon
Line
Answer explanation
A Rect has (x,y) coordinates of the top left corner, a Polygon is made up of many coordinates along the outside of the shape, and a Line is made up of the coordinates of its two endpoints.
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of the following has a logical error? We are trying to draw a blue circle centered at (300, 350).
Circle(300, 350, 40, fill='blue)
Oval(300, 350, 40, 40, fill='blue)
Oval(40, 40, 300, 350, fill='blue)
Circle(300, 350, 80, fill='blue)
Answer explanation
Oval(40, 40, 300, 350, fill='blue) draws an oval centered at (40, 40) with a width and height of 300 and 350 respectively. The code runs, but it doesn't do what we want - a logical error!
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
All of the following are properties of labels EXCEPT:
border
All are valid properties
italic
size
Answer explanation
Labels cannot have borders, as they are just text. Only shapes can have borders.
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which code draws this picture?
RegularPolygon(100, 100, 130, 4, fill='blue')
Polygon(150,250,200,200,250,250, fill=None, border='blue')
Polygon(200,200,250,250,150,250, fill='blue')
Circle(100, 200, 30, fill='blue')
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Syntax Error
Code follows the rules of Python and runs, but crashes after it starts.
Code doesn't run because program doesn't follow the rules of Python.
Code runs, but doesn't do what we want it to do.
Code runs and works perfectly.
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Runtime Error
Code follows the rules of Python and runs, but crashes after it starts.
Code doesn't run because program doesn't follow the rules of Python.
Code runs, but doesn't do what we want it to do.
Code runs and works perfectly.
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
All of the following are types of errors EXCEPT:
Syntax Error
Logical Error
Cascade Error
Runtime Error
Create a free account and access millions of resources
Similar Resources on Quizizz
19 questions
Carnegie CMU Graphics in Python Explore Programming

Quiz
•
9th - 12th Grade
18 questions
CMU Graphics Rectangles etc

Quiz
•
9th - 12th Grade
24 questions
Programming Final Review

Quiz
•
11th Grade
21 questions
Grid Quiz

Quiz
•
9th Grade - University
22 questions
Python Pygame

Quiz
•
12th Grade
21 questions
P5.js Exam 1

Quiz
•
9th - 12th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
18 questions
Podstawy programowania JS Processing

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade