NEW
Font size
WorksheetsUnit 3: Intro to App Design (APCSP '25-'26 code.org)
Total questions: 53
Worksheet time: 1hrs 7mins
Unique, meaningful element IDs only serve a purpose of helping computers understand instructions and have no importance to humans that create and/or read them.
True
False
An example of an input device:
When a user clicks a button
When a song is played
A screen with buttons, images, and text
All of these choices are input devices
An example of an output device:
When a user clicks a button
When a song is played
A screen with buttons, images, and text
All of these choices are output devices
An example of user interface:
When a user clicks a button
When a song is played
A screen with buttons, images, and text
All of these choices are output devices
Which of the following is FALSE regarding programming languages and natural (every-day) languages?
A programming language requires precise language
In a natural language, words can flex and grow depending on it's usage
Natural languages need to have an agreed upon meaning
Programming languages need to have an agreed upon meaning
With regards to sequential programs:
They run different ways each time
They run code when they are trigged by events
They run one command at a time
They run differently based on user interactions
With regards to event-driven programs:
All of the other three choices are true
They run code when triggered by events
They run multiple commands at any given time
Regardless of user interactions they run the same each time
This stage of the development process would most likely involve you (the app designer) interviewing your classmates to see how much they already know about the topic of your app:
Testing
Prototyping
Designing
Investigating and Reflecting
This stage of the development process would most likely involve sketching being drawn out of how you want the user interface to look on your new app:
Testing
Prototyping
Designing
Investigating and Reflecting
This stage of the development process would most likely involve you determining what events your app will be made up of (which would including the element ID, action, and what will happen during based on this event):
Testing
Prototyping
Designing
Investigating and Reflecting
This stage of the development process would most likely involve you running your app over and over again to determine that all important areas of your app are running as intended:
Testing
Prototyping
Designing
Investigating and Reflecting
The User Interface can include each of the following EXCEPT:
Images
Menus
element ID
Buttons
Any sequence of characters between quotation marks (ex: "Claws Up!", "42", "Hello Grizzles!!").
Selection
String
Summary
Protocol
On-screen objects, like buttons, images, text boxes, pull down menus, screens and so on.
UI Elements
Type Elements
Control Elements
ID Elements
A _____ can hold letters and number
Integer Only
String Only
Both Integer and String
Neither Integer nor String
UI Elements include all of the following EXCEPT:
Images
Functions
Drop Down Menus
Text Boxes
It's important to understand in Event-Driven programming that:
Only Users trigger events
Only Events trigger code
Both Users trigger events and Events trigger code
Neither Users trigger events nor Events trigger code
Which of the following would be both a descriptive AND acceptable ID to give to a button you want to insert?
1startButton
start Button1
start_button_1
button1
A syntax error in your code includes:
A. - The program running correctly but not actually doing what you think it should do
B. - A word you misspelled in a way the computer doesn't understand
Only A
Only B
Both A and B
Neither A or B
When adding images in Design Mode, you can add any of the following EXCEPT:
.jpg
.gif
.psd
.png
Which of the following is FALSE with regards to the command console.log?
You can use this command in sending messages to yourself to verify the program is doing what you think it's doing which helps prevent errors down the line.
Using this command is a way to debug your program
This command cannot be used in determining potential errors down the line in your programming
Console.log is a way to display a simple plaintext output
The following would be considered an example of a string:
'This is an example of a string'
True
False
A logical error in your code includes:
A. - The program running correctly but not actually doing what you think it should do
B. - A word you misspelled in a way the computer doesn't understand
Only A
Only B
Both A and B
Neither A or B
A program designed to run blocks of code or functions in response to specified events (e.g. a mouse click)
Event-Driven Program
Event Handler
Beaver Programming
Event Listener
An action that causes something to happen:
Debugger
Data Type
Variable
Event
Debugging:
puts commands in correct order so computers can read the commands
is a step-by-step procedure for solving a problem
to you write instructions for a computer
is finding and fixing problems in your program
When naming the buttons and screens you should:
use the default settings; button1, screen1, image1,etc.
use names that describe what the UI represents
use names like first image, second image or first button and second button
All of these choices are true
The ________________is important because it's how you refer to the element in your code
Button Name
User Interface
Variable Name
Element ID
UI Elements can include all of the following EXCEPT:
Mouse Clicks
Text Boxes
Drop Down Menus
Images
UI Events can include all of the following EXCEPT:
Mouse Click
Pressing a key on the keyboard
Scrolling
Viewing an image
Which order should the following go in when making event-driven apps?
Design Mode, Add onEvent, Write the code for event handling, Run/Test/Debug
Add onEvent, Write the code for the event handling, Design Mode, Run/Test/Debug
Write the code for the event handling, Add onEvent, Run/Test/Debug, Design Mode
Design Mode, Write the code for event handling, Run/Test/Debug, Add onEvent
When naming IDs for your elements, they may NOT contain:
Spaces
Hyphens
Underscores
Periods
When setting the setPosition command, the coordinates (0,0) begins where on the screen?
Top Right Corner
Top Left Corner
Bottom Right Corner
Bottom Left Corner
The following line of code would not appear on the screen of an app you have just created:
console.log("Welcome to My App!");
True
False
Look at the following potential lines for console.log:
1 console.log("helo Los Osos HS");
2 console.log(2020);
3 console.log(what's up Los Osos HS!);
4 console.log("2020");
Which of these lines will most likely cause an error in your code?
Line 1
Line 2
Line 3
Line 4
Which of the following design properties can you NOT change of a button you want to add to your app?
Color
Text Alignment
OnEvent
It's X and Y Position
Which of the following is NOT an acceptable way you can change the color of a property on a design element in your app?
"white"
rgb(255,255,255)
#ffffff
All of these are acceptable ways to change the color
Which of the following would refer to Camel Casing when naming your Element IDs?
camelcasing
camelCasing
CamelCasing
Camelcasing
What will the following line of code do?
//setProperty("bigButton", "background-color", "blue");
Set a button to the background color of blue
Set the app background to the color of blue
This line will not affect your program
An error will take place; you can't have a hyphen in "background-color"
Which of the following lines of code is in the correct order with regards to setProperty?
setProperty("bigButton", "text", "Now it's a bigger button!");
setProperty("text", "bigButton", "Now it's a bigger button!");
setProperty("bigButton", "Now it's a bigger button!", "text");
setProperty("text", "Now it's a bigger button!", "bigButton");
Which line of code will result in an error?
Line 1
Line 2
Line 5
Line 6
Each of the following are acceptable actions you can choose for your Events EXCEPT:
click
mousedown
keyup
randomNumber
Which of the following is TRUE regarding what you see in this image?
A sound will play based on Lines 15 and 16
The event will trigger if the sparrow is clicked on with the mouse
randomNumber is needed to make this app more challenging in the hawk and sparrow jumping all over the screen
A playSound command cannot go into an onEvent and therefore, the sound will not play here
Which of the following is TRUE regarding both console.log and setProperty commands?
console.log requires three inputs while setProperty requires one input
setProperty requires three inputs while console.log requires only one
both setProperty and console.log require three inputs
both setProperty and console.log require only one input
Which of the following is NOT true regarding onEvent?
it makes the program respond to the user
code inside an onEvent runs right away
even if code is after an onEvent, it will run first if it's outside of any onEvent
changing the second input changes the type of interaction that will make the code inside the onEvent run.
Which line of code will result in an error?
Line 1
Line 2
Line 3
Line 4
Which line of code will result in an error?
Line 14
Line 15
Line 16
Line 17
Which line of code will result in an error?
Line 1
Line 2
Line 3
Line 4
Based on the code shown here, which of the following will NOT happen when ran?
A message will display in Debug Console
A mouse click is required for an event to take place
An object will randomly jump around on the screen
A sound will play
Based on the code shown here, which of the following will NOT happen when ran?
A description of what takes place in this event will be displayed on the app screen
A mouse over will be needed for an event to take place
Objects will randomly jump around on the screen
The player will be warned on what to look out for
A mistake in the program where the rules of the programming language are not followed.
Bug
Event Error
Plagiarism
Syntax Error
A design approach that breaks the problem into smaller pieces and makes sure each piece works before adding it to the whole.
Debugging
Incremental Development Process
Iterative Development Process
Trouble Shooting
A design approach requires refinement and revision based on feedback, testing, or reflection throughout the process. This may require revisiting earlier phases of the process.
Debugging
Incremental Development Process
Iterative Development Process
Trouble Shooting
