Search Header Logo

CS 1 - Unit 4

Authored by Karen Kikuchi

Computers

9th - 11th Grade

Used 40+ times

CS 1 - Unit 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

About

This quiz covers intermediate computer programming concepts with a focus on event-driven programming and graphics manipulation using the CMU Graphics library in Python. The material aligns with a high school level introduction to computer science course, specifically targeting grades 9-11. Students need to understand fundamental programming constructs including conditional statements (if-elif-else), event handlers (onKeyPress, onKeyRelease, onMousePress), object-oriented programming concepts with shape methods and properties, function definitions and calls, variable naming conventions, and global variable declarations. The quiz assesses students' ability to trace through code execution, predict program output, understand method syntax and proper calling conventions, distinguish between built-in and custom properties, and analyze the layering and transparency of graphical objects on a canvas. Created by Karen Kikuchi, a Computers teacher in US who teaches grade 9-11. This comprehensive assessment serves multiple instructional purposes, functioning effectively as a unit review quiz, formative assessment tool, or homework assignment to reinforce key programming concepts from Unit 4. Teachers can deploy this quiz as a warm-up activity to activate prior knowledge before introducing more advanced topics, or use it as a diagnostic tool to identify areas where students need additional support with event handling and graphics programming. The quiz structure makes it ideal for both individual practice and collaborative learning environments where students can discuss their reasoning for different answers. The content directly supports CSTA K-12 Computer Science Standards, particularly 1A-AP-10 (developing programs with sequences and simple loops), 1A-AP-11 (decomposing steps needed to solve a problem), and 1A-AP-15 (creating programs using variables to store and modify data), while also addressing higher-level standards like 1B-AP-13 (using and adapting existing code segments) and 1B-AP-08 (comparing and refining multiple algorithms for the same task).

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Which of the following is drawn if we press the right arrow key ?

Purple circle

Green star

Blue rectangle

Nothing

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Which of the following is drawn if we press the 'r' key?

Purple circle

Green star

Blue rectangle

Nothing

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Which of the following is drawn if we press the up arrow key and then the ' s ' key?

Purple circle and green star

Green star and blue rectangle

Purple circle and blue rectangle

Nothing

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following results in a call to onKeyPress?

pressing the h key

releasing the h key

calling onKeyRelease(‘h’) in a test case

calling onMousePress in a test case

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following shape methods takes in an x and y coordinate as its parameters?

hits

hitsShape

contains

both 'hits' and 'contains'

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is false about custom properties?

They can be added to any shape

Must be named something not used by CMU Graphics already

Custom app properties can also be defined

None of these options.

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is not a valid custom property for a circle called player?

player.count

player.fill

player.score

player.turn

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?