Search Header Logo

M6L2

Authored by Antonino Rando

Computers

9th - 12th Grade

Used 4+ times

M6L2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Che funzione usiamo per eseguire del codice al CLICK del mouse?

on_mouse_click

on_mouse_down

on_button_click

on_button_down

2.

FILL IN THE BLANK QUESTION

30 sec • 3 pts

3.

FILL IN THE BLANK QUESTION

30 sec • 3 pts

4.

MULTIPLE SELECT QUESTION

45 sec • 2 pts

Quale codice esegue correttamente (all'interno della funzione on_mouse_down)?

if mouse.MIDDLE == button:

if pos.x == 20:

if button == mouse.MIDDLE:

else pos.y == 20:

Answer explanation

Non conta come si scrivono i due operandi a sinistra e destra dell'uguale!

pos è una "lista" di due numeri: (x, y).

L'unica sbagliata è quella con l'else, perché l'else non vuole nessuna condizione dopo!

5.

FILL IN THE BLANK QUESTION

1 min • 4 pts

6.

MULTIPLE SELECT QUESTION

45 sec • 2 pts

La funzione collidepoint...

E' simile al colliderect, ma funziona con le coordinate

Controlla se due punti si scontrano sullo schermo

Controlla se due punti coincidono sullo schermo

Controlla se delle coordinate ricadono su un oggetto

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?