wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

WQ:CO:U3L17: Mouse Input Programming Quiz

Total questions: 45

Worksheet time: 24mins

Name
Class
Date
1.

What happens in a program when the user presses the space key?

a)

The sprite disappears

b)

The sprite jumps

c)

The program closes

d)

The sprite changes color

2.

What should a program do if a sprite touches the edge in a game or animation?

a)

The sprite turns around

b)

The sprite stops moving

c)

The sprite disappears

d)

The program restarts

3.

If the score in a game is above 10, what outcome should the program create?

a)

Show a "Game Over" message

b)

Show a "You win!" message

c)

Restart the game

d)

Keep playing without any message

4.

What happens if the score is not above 10 in the example provided?

a)

The program ends

b)

The sprite jumps

c)

The game keeps playing

d)

The score resets to zero

5.

What is required for a conditional to run in a program?

a)

The condition must be false.

b)

The condition must be true.

c)

The computer ignores the condition.

d)

The condition must be undefined.

6.

What does the computer check before running the code inside an "if" statement?

a)

The color of the text.

b)

The rule or condition.

c)

The size of the program.

d)

The number of lines in the code.

7.

What must a condition be for the computer to check it?

a)

Vague and unclear.

b)

Based on something in the program, like a key press or comparison.

c)

Random and unrelated to the program.

d)

A guess made by the programmer.

8.

Which of the following is an example of a condition the computer can check?

a)

The weather outside.

b)

A key press in the program.

c)

The programmer's mood.

d)

The time of day.

9.

What is one thing the author wants to learn how to program in a game?

a)

How to create a game with different levels

b)

How to design characters for the game

c)

How to add music to the game

d)

How to make the game multiplayer

10.

Which of the following is NOT mentioned as a feature the author wants to learn to program in a game?

a)

Changing the background

b)

Making challenges harder

c)

Adding sound effects

d)

Switching to the next level when the player reaches a goal

11.

What happens in the game when the player reaches a goal, according to the author?

a)

The game ends

b)

The player switches to the next level

c)

The player earns points

d)

The background changes

12.

What is one feature students want to learn to program in a game involving enemies?

a)

Enemies that follow the player or bounce around the screen.

b)

Enemies that disappear when clicked.

c)

Enemies that change color randomly.

d)

Enemies that stay stationary.

13.

Why do students want to add sound effects and music to their projects?

a)

To make their games feel more exciting.

b)

To make their games harder to play.

c)

To make their games look more colorful.

d)

To make their games slower.

14.

What is the purpose of creating a score system that updates during the game?

a)

To increase the score when something good happens.

b)

To decrease the score when something bad happens.

c)

To reset the score after every level.

d)

To keep the score constant throughout the game.

15.

What is one goal mentioned in the 3-2-1 Review for making animations?

a)

To make animations that look smooth and realistic

b)

To create animations with random movements

c)

To make animations that are static and simple

d)

To avoid using sprites in animations

16.

What is an example of a power-up mentioned in the 3-2-1 Review?

a)

Collecting a star to make the player faster

b)

Collecting coins to unlock new levels

c)

Collecting gems to change the background

d)

Collecting keys to open doors

17.

What feature is mentioned in the 3-2-1 Review to make the game feel more realistic?

a)

Adding a 'game over' screen and a restart button

b)

Adding a pause button

c)

Adding a tutorial screen

d)

Adding background music

18.

What is one way to allow users to choose different characters in a game?

a)

Picking a different sprite at the start

b)

Unlocking characters by completing levels

c)

Changing the background color

d)

Using a random character generator

19.

What are more ways that the computer can react to user input?

a)

By displaying a message on the screen

b)

By playing a sound

c)

By changing the color of an object

d)

All of the above

20.

What can the computer do when a key is pressed?

a)

Move a sprite, change an animation, or start an action

b)

Open a new window or close a program

c)

Save a file or delete a file

d)

Turn off the computer

21.

What happens when the mouse is clicked in interactive animations?

a)

A sprite can jump, change color, or appear

b)

The computer shuts down

c)

A new program opens automatically

d)

The screen brightness changes

22.

What can a sprite do when moving the mouse in interactive animations and games?

a)

Follow the mouse or point toward it

b)

Change its color

c)

Play a sound

d)

Increase the score

23.

What happens when a sprite touches or collides with an object in interactive animations and games?

a)

The computer can play a sound or change the score

b)

The sprite disappears

c)

The computer shuts down

d)

The sprite changes its shape

24.

What can the computer do when the user types into a text box in interactive animations and games?

a)

Show a message or change the scene based on what the user types

b)

Play a sound

c)

Move the sprite to a random location

d)

Increase the score

25.

What happens when you press the space bar in the program described in the activity?

a)

The program stops running.

b)

A specific action or event is triggered.

c)

The program resets to its initial state.

d)

Nothing happens.

26.

What happens when you don't press the space bar in the program described in the activity?

a)

The program continues running without triggering the event.

b)

The program stops running.

c)

The program displays an error message.

d)

The program resets to its initial state.

27.

What is the purpose of an "if/else" statement in programming?

a)

To repeat a block of code multiple times

b)

To make decisions based on conditions

c)

To store data in variables

d)

To define a function in a program

28.

Which of the following is an example of when you would use an "if/else" statement?

a)

To decide whether to turn on the lights based on the time of day

b)

To calculate the sum of two numbers

c)

To store a list of items in an array

d)

To create a loop that runs 10 times

29.

What happens in an "if/else" statement when the condition is false?

a)

The program stops running

b)

The code inside the "if" block is executed

c)

The code inside the "else" block is executed

d)

The program skips the entire statement

30.

In the example provided, what action is taken if the day is Saturday?

a)

Wake up early

b)

Sleep in

c)

Go to work

d)

Skip the day

31.

What is the condition being checked in the example "if/else" statement?

a)

Whether it is a weekend

b)

Whether it is a weekday

c)

Whether it is raining

d)

Whether it is a holiday

32.

What happens to the gears when the space bar is pressed in the activity described?

a)

The gears stop spinning.

b)

The gears spin in one direction.

c)

The gears spin in the opposite direction.

d)

The gears change color.

33.

What is the task required when the space bar is not being pressed in the activity?

a)

Make the gears spin faster.

b)

Make the gears spin the opposite way.

c)

Make the gears stop spinning.

d)

Make the gears change size.

34.

What is the main task described in the activity for controlling the gears in the program?

a)

Read the program carefully, especially Line 13.

b)

Skip Line 13 and focus on the rest of the program.

c)

Change the program to make the gears spin faster.

d)

Delete Line 13 to control the gears.

35.

What should you do after reading the program to test your understanding?

a)

Rewrite the program entirely.

b)

Run the program and test whether you were correct.

c)

Ignore the program and guess the output.

d)

Add new lines to the program without testing.

36.

What is the challenge mentioned in the activity regarding the gears when there is no user input?

a)

Make the gears spin faster.

b)

Make the gears spin the opposite way.

c)

Stop the gears completely.

d)

Make the gears spin in random directions.

37.

What should you do if you get stuck while working on Code Studio Level 4-5?

a)

Skip the level and move to the next one.

b)

Use the Help and Tips Tab or Code Documentation.

c)

Restart the entire project.

d)

Ask a friend to complete it for you.

38.

What can you use to recover from a big mistake in Code Studio Level 4-5?

a)

Version History.

b)

Help and Tips Tab.

c)

Code Documentation.

d)

Restart the computer.

39.

What is the first step to follow when working on Code Studio Level 4-5?

a)

Follow the instructions on each level.

b)

Skip the instructions and experiment freely.

c)

Use the Help and Tips Tab immediately.

d)

Start with Version History.

40.

Which of the following is NOT mentioned as a resource for help in Code Studio Level 4-5?

a)

Help and Tips Tab.

b)

Code Documentation.

c)

Version History.

d)

Online forums.

41.

What is the task in the "Lady Bug Walk" activity?

a)

Move the ladybug only when the mouse is near the bottom of the screen.

b)

Make the ladybug move in random directions.

c)

Change the color of the ladybug when clicked.

d)

Make the ladybug disappear when the mouse is pressed.

42.

What happens in the "Ghost Moving with the Mouse" activity?

a)

The ghost changes color when clicked.

b)

The ghost moves in different directions depending on where the mouse pointer is.

c)

The ghost disappears when the mouse is pressed.

d)

The ghost moves only when the mouse is near the top of the screen.

43.

What is the purpose of the "Emoji Swap" activity?

a)

Change the emoji when a mouse button is clicked.

b)

Make the emoji move across the screen.

c)

Change the emoji's color when the mouse is pressed.

d)

Make the emoji disappear when clicked.

44.

What is the goal of the "Musical Notes" activity?

a)

Create an animation that shows musical notes when the mouse is pressed.

b)

Make the guitar play music when clicked.

c)

Change the color of the musical notes when the mouse is near the screen.

d)

Make the guitar disappear when the mouse is pressed.

45.

In the following statement:


mouseMoveMethod(draw);


Which part is the event handler?

a)

mouseMoveMethod

b)

draw

c)

e

d)

none