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

Network topologies

Network topologies

8th Grade - University

20 Qs

Scratch

Scratch

9th - 10th Grade

19 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Python List

Python List

4th Grade - University

15 Qs

QUIZ BAB 4: SISTEM OPERASI

QUIZ BAB 4: SISTEM OPERASI

8th Grade - University

20 Qs

Pensamento Computacional

Pensamento Computacional

9th Grade

18 Qs

Python

Python

8th - 9th Grade

15 Qs

GAD Review - Game Industry

GAD Review - Game Industry

9th - 12th Grade

22 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?

Discover more resources for Computers