NEW
Font size
WorksheetsCode.org Quiz1
Total questions: 25
Worksheet time: 13mins
In a programming environment, what does the "background-color" property do when applied to a screen?
Changes the color of the text on the screen
Sets the color of the screen's background
Alters the size of the screen
Modifies the layout of the screen
When you click the "Green-ify" button in the app, what happens to the screen's color?
It changes to red
It changes to yellow
It changes to green
It changes to blue
In the flashlight app, what should the "On" button accomplish?
Change the screen's background color to black
Make the screen's background color white
Display a message
Turn off the flashlight
What additional feature is added to the "Off" button in the flashlight app?
It turns the screen red
It makes the screen black
It adds a sound
It changes the text to "Off"
In the sound board application, which of the following is required for the last button?
Only an image
A sound and text change
An image, text, and sound
No changes are needed
When creating a new button, what property must be set to give it a unique identifier?
background-color
font-size
id
text
In the design mode of Code.org, what action is typically taken to add new elements to the app?
Dragging elements from the toolbox
Writing code manually
Importing images
Clicking buttons
What does the onEvent() function do in the context of a button?
It defines the initial appearance of the app
It specifies actions that occur when the button is interacted with
It creates a new screen
It deletes existing elements
What is the purpose of the playSound() function in the sound board app?
To change the text of a button
To change the background color
To play an audio clip when a button is clicked
To animate elements on the screen
Which property would you change to alter the text displayed on a label?
text-color
background-color
text
font-size
What happens when you assign a button the background color of "red"?
The button text turns red
The button's background becomes red
The button gets deleted
The button becomes unresponsive
When creating interactive applications, what is the purpose of setting a screen's background color?
To make the app visually appealing
To confuse the user
To increase the app's processing speed
To limit user interaction
In a sound board application, how do you choose which sound to play?
By typing the sound's name
By selecting from a library of sounds
By uploading your own sound
By recording your voice
What is the purpose of the setProperty() function?
To create new elements
To modify existing properties of elements
To delete elements
To display messages
Why might you want to change the font size of text in your app?
To make text harder to read
To ensure text fits within the designated space
To make the text invisible
To create a uniform appearance
When you hover over an element in Design Mode, what information can you typically see?
The history of changes made
The element's properties, including its ID
The number of times it has been clicked
The color scheme of the app
In the context of the flashlight app, what does setting the label's text-color to white achieve?
Makes the text blend in with the background
Ensures the text is visible against a black background
Changes the font style
Deletes the label
What does changing a button's text property to "Welcome to my app!" do?
Changes the button's function
Displays a welcome message on the button
Hides the button
Changes the background color
When adding a new screen element, what must you remember to do?
Change its ID to something unique
Set its background color to red
Make it larger than other elements
Delete all previous elements
In the context of programming, what does "event-driven programming" refer to?
Programming that requires user input to execute functions
Programming that runs without user interaction
Programming that only executes once
Programming that doesn't use functions
What effect does setting the font-size to a large value (e.g., 80) have on text?
The text becomes unreadable
The text appears much larger on the screen
The text disappears
The text becomes smaller than the default size
Why is it important to provide a unique ID for each button in an application?
To make the buttons look different
To allow specific functions to be assigned to each button
To ensure buttons are always the same size
To prevent errors in the program
What does "interactivity" refer to in the context of applications?
The app's ability to run in the background
The ability of users to interact with the app's elements
The app's speed of execution
The visual appeal of the app
Which programming construct is commonly used to respond to user actions in an app?
Variables
Functions
Events
Comments
What does adding an image to a button do in a sound board app?
It makes the button non-functional
It visually enhances the button, indicating its function
It decreases the button's size
It changes the button's text
