wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Code.org Quiz1

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

In a programming environment, what does the "background-color" property do when applied to a screen?

a)

Changes the color of the text on the screen

b)

Sets the color of the screen's background

c)

Alters the size of the screen

d)

Modifies the layout of the screen

2.

When you click the "Green-ify" button in the app, what happens to the screen's color?

a)

It changes to red

b)

It changes to yellow

c)

It changes to green

d)

It changes to blue

3.

In the flashlight app, what should the "On" button accomplish?

a)

Change the screen's background color to black

b)

Make the screen's background color white

c)

Display a message

d)

Turn off the flashlight

4.

What additional feature is added to the "Off" button in the flashlight app?

a)

It turns the screen red

b)

It makes the screen black

c)

It adds a sound

d)

It changes the text to "Off"

5.

In the sound board application, which of the following is required for the last button?

a)

Only an image

b)

A sound and text change

c)

An image, text, and sound

d)

No changes are needed

6.

When creating a new button, what property must be set to give it a unique identifier?

a)

background-color

b)

font-size

c)

id

d)

text

7.

In the design mode of Code.org, what action is typically taken to add new elements to the app?

a)

Dragging elements from the toolbox

b)

Writing code manually

c)

Importing images

d)

Clicking buttons

8.

What does the onEvent() function do in the context of a button?

a)

It defines the initial appearance of the app

b)

It specifies actions that occur when the button is interacted with

c)

It creates a new screen

d)

It deletes existing elements

9.

What is the purpose of the playSound() function in the sound board app?

a)

To change the text of a button

b)

To change the background color

c)

To play an audio clip when a button is clicked

d)

To animate elements on the screen

10.

Which property would you change to alter the text displayed on a label?

a)

text-color

b)

background-color

c)

text

d)

font-size

11.

What happens when you assign a button the background color of "red"?

a)

The button text turns red

b)

The button's background becomes red

c)

The button gets deleted

d)

The button becomes unresponsive

12.

When creating interactive applications, what is the purpose of setting a screen's background color?

a)

To make the app visually appealing

b)

To confuse the user

c)

To increase the app's processing speed

d)

To limit user interaction

13.

In a sound board application, how do you choose which sound to play?

a)

By typing the sound's name

b)

By selecting from a library of sounds

c)

By uploading your own sound

d)

By recording your voice

14.

What is the purpose of the setProperty() function?

a)

To create new elements

b)

To modify existing properties of elements

c)

To delete elements

d)

To display messages

15.

Why might you want to change the font size of text in your app?

a)

To make text harder to read

b)

To ensure text fits within the designated space

c)

To make the text invisible

d)

To create a uniform appearance

16.

When you hover over an element in Design Mode, what information can you typically see?

a)

The history of changes made

b)

The element's properties, including its ID

c)

The number of times it has been clicked

d)

The color scheme of the app

17.

In the context of the flashlight app, what does setting the label's text-color to white achieve?

a)

Makes the text blend in with the background

b)

Ensures the text is visible against a black background

c)

Changes the font style

d)

Deletes the label

18.

What does changing a button's text property to "Welcome to my app!" do?

a)

Changes the button's function

b)

Displays a welcome message on the button

c)

Hides the button

d)

Changes the background color

19.

When adding a new screen element, what must you remember to do?

a)

Change its ID to something unique

b)

Set its background color to red

c)

Make it larger than other elements

d)

Delete all previous elements

20.

In the context of programming, what does "event-driven programming" refer to?

a)

Programming that requires user input to execute functions

b)

Programming that runs without user interaction

c)

Programming that only executes once

d)

Programming that doesn't use functions

21.

What effect does setting the font-size to a large value (e.g., 80) have on text?

a)

The text becomes unreadable

b)

The text appears much larger on the screen

c)

The text disappears

d)

The text becomes smaller than the default size

22.

Why is it important to provide a unique ID for each button in an application?

a)

To make the buttons look different

b)

To allow specific functions to be assigned to each button

c)

To ensure buttons are always the same size

d)

To prevent errors in the program

23.

What does "interactivity" refer to in the context of applications?

a)

The app's ability to run in the background

b)

The ability of users to interact with the app's elements

c)

The app's speed of execution

d)

The visual appeal of the app

24.

Which programming construct is commonly used to respond to user actions in an app?

a)

Variables

b)

Functions

c)

Events

d)

Comments

25.

What does adding an image to a button do in a sound board app?

a)

It makes the button non-functional

b)

It visually enhances the button, indicating its function

c)

It decreases the button's size

d)

It changes the button's text