CMU CS Academy Unit 2.2.1 Mouse Press Events MC

CMU CS Academy Unit 2.2.1 Mouse Press Events MC

9th Grade

17 Qs

quiz-placeholder

Similar activities

operators in java

operators in java

8th - 9th Grade

13 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Sustainable Developments Goals

Sustainable Developments Goals

6th - 12th Grade

17 Qs

Unit Test 1 Class 8 Computer

Unit Test 1 Class 8 Computer

8th - 9th Grade

20 Qs

HTML5 Basics

HTML5 Basics

7th - 10th Grade

20 Qs

BTEC Theory quiz 1: Networks and Internet

BTEC Theory quiz 1: Networks and Internet

8th - 11th Grade

16 Qs

7.3 representing data + spreadsheet recap

7.3 representing data + spreadsheet recap

8th - 10th Grade

18 Qs

Google

Google

7th - 12th Grade

20 Qs

CMU CS Academy Unit 2.2.1 Mouse Press Events MC

CMU CS Academy Unit 2.2.1 Mouse Press Events MC

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

Joan Goldberg

Used 78+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

17 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

How is the function onMousePress called?

By a function call to onMousePress in your program

By python when you click the mouse

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Where does the circle get drawn?

Circle is drawn at the point where the user clicked the mouse.

Circle is drawn at (200, 200) when the user clicks the mouse.

A circle is not drawn, the function is not called.

A circle is not drawn, there is a syntax error.

Circle is drawn at (200, 20) when the user clicks the mouse.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Where does the circle get drawn?

Circle is drawn at the point where the user clicked the mouse.

Circle is drawn at (200, 200).

A circle is not drawn, the function is not called.

A circle is not drawn, there is a syntax error.

Circle is drawn at (200, 20).

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Where does the circle get drawn?

Circle is drawn at the point where the user clicked the mouse.

Circle is drawn at (200, 200).

A circle is not drawn, the function is not called.

A circle is not drawn, there is a syntax error.

Circle is drawn at (200, 20).

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Where does the circle get drawn?

Circle is drawn at the point where the user clicked the mouse.

Circle is drawn at (200, 200).

A circle is not drawn, the function is not called.

A circle is not drawn, there is a syntax error.

Circle is drawn at (200, 20).

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Check the valid funtion definition headers for when you click the mouse.

def onMousePress(X, Y):

def mouseWasPressed(mouseX, mouseY):

def onMousePress(mouseX, mouseY):

def onMousePress(x1, y1):

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line number is top level code?

1

2

4

5

Create a free account and access millions of resources

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?