CMU Unit 1 Practice Test

CMU Unit 1 Practice Test

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Coding 1 Midterm Prep

Coding 1 Midterm Prep

10th - 12th Grade

23 Qs

CMU Graphics Rectangles etc

CMU Graphics Rectangles etc

9th - 12th Grade

18 Qs

IPST_SE

IPST_SE

9th - 10th Grade

20 Qs

Javascript in Khan 1116

Javascript in Khan 1116

10th Grade

20 Qs

2024-2025 Fundamentals of Computing Final Exam Study Guide

2024-2025 Fundamentals of Computing Final Exam Study Guide

9th - 12th Grade

20 Qs

U3 Review CSD

U3 Review CSD

9th - 12th Grade

19 Qs

Javascript Drawing

Javascript Drawing

8th - 12th Grade

15 Qs

Coding II Midterm Prep

Coding II Midterm Prep

11th - 12th Grade

22 Qs

CMU Unit 1 Practice Test

CMU Unit 1 Practice Test

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Quizizz Content

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which shape is specified by the (x,y) coordinates of the center of the shape?

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?