Types of errors: Syntax Error, Logical Error, Runtime Error, Cascade Error. Which one is NOT a type of error?
CMU Unit 1 Practice Test

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Fab Lab
FREE Resource
Student preview

22 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
Cascade Error
2.
FLASHCARD QUESTION
Front
Logical Error
Back
Code runs, but doesn't do what we want it to do.
3.
FLASHCARD QUESTION
Front
Runtime Error
Back
Code follows the rules of Python and runs, but crashes after it starts.
4.
FLASHCARD QUESTION
Front
Syntax Error
Back
Code doesn't run because program doesn't follow the rules of Python.
5.
FLASHCARD QUESTION
Front
Which of the following has an error? Rect(50, 50, 200, 300, fill='dodgerBlue'), Line(0, 200, 400, 200), Circle(300, 200, 75, fill='crimson'), RegularPolygon(200 200 20 3)
Back
RegularPolygon(200 200 20 3)
Answer explanation
The Rect has no commas between the numbers. This command is not following the rules of Python - it is a syntax error!
6.
FLASHCARD QUESTION
Front
Which of the following has an error? Circle(200, 200, fill='black'), Line(0, 200, 400, 200, lineWidth=2) , Polygon(100, 100, 150, 150, 200, 200, fill='blue'), Rect(0,0,100,200,fill=None)
Back
Circle(200, 200, fill='black')
Answer explanation
The circle command takes a minimum of 3 inputs: Circle(centerX, centerY, radius). This was missing the radius number - a syntax error.
7.
FLASHCARD QUESTION
Front
Which of the following has an error? Polygon(100, 200, 300, 300, fill=None), Circle(-100, -100, 200, fill=gradient('red', 'orange', 'yellow', start='left-top')), Rect(350, 50, 50, 50, fill='blue', borderWidth=5), Polygon(150, 160, 180)
Back
Polygon(150, 160, 180)
Answer explanation
To draw a polygon with code, we write: Polygon(x1, y1, x2, y2, x3, y3, …). It must have an even number of coordinates! For this question, we wrote x1, y1,x2, but we forgot to put y2! This is not following the rules of Python - a syntax error.
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
Python Review through 1.3

Flashcard
•
7th - 9th Grade
20 questions
Midterm YWLA AP CSP

Flashcard
•
9th - 12th Grade
15 questions
Shapes in Java Processing

Flashcard
•
9th - 12th Grade
22 questions
Unit 9 Flashcard 1

Flashcard
•
9th - 12th Grade
22 questions
Unit 9 Flashcard 1

Flashcard
•
9th - 12th Grade
21 questions
P5.js Exam 1

Flashcard
•
9th - 12th Grade
15 questions
Unit 1 Review CMU CS Academy

Flashcard
•
9th - 12th Grade
22 questions
Definite Midterm YWLA AP CSP

Flashcard
•
9th - 12th Grade
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