wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Unit 3: Intro to App Design (APCSP '25-'26 code.org)

Total questions: 53

Worksheet time: 1hrs 7mins

Name
Class
Date
1.

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.

a)

True

b)

False

2.

An example of an input device:

a)

When a user clicks a button

b)

When a song is played

c)

A screen with buttons, images, and text

d)

All of these choices are input devices

3.

An example of an output device:

a)

When a user clicks a button

b)

When a song is played

c)

A screen with buttons, images, and text

d)

All of these choices are output devices

4.

An example of user interface:

a)

When a user clicks a button

b)

When a song is played

c)

A screen with buttons, images, and text

d)

All of these choices are output devices

5.

Which of the following is FALSE regarding programming languages and natural (every-day) languages?

a)

A programming language requires precise language

b)

In a natural language, words can flex and grow depending on it's usage

c)

Natural languages need to have an agreed upon meaning

d)

Programming languages need to have an agreed upon meaning

6.

With regards to sequential programs:

a)

They run different ways each time

b)

They run code when they are trigged by events

c)

They run one command at a time

d)

They run differently based on user interactions

7.

With regards to event-driven programs:

a)

All of the other three choices are true

b)

They run code when triggered by events

c)

They run multiple commands at any given time

d)

Regardless of user interactions they run the same each time

8.

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:

a)

Testing

b)

Prototyping

c)

Designing

d)

Investigating and Reflecting

9.

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:

a)

Testing

b)

Prototyping

c)

Designing

d)

Investigating and Reflecting

10.

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):

a)

Testing

b)

Prototyping

c)

Designing

d)

Investigating and Reflecting

11.

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:

a)

Testing

b)

Prototyping

c)

Designing

d)

Investigating and Reflecting

12.

The User Interface can include each of the following EXCEPT:

a)

Images

b)

Menus

c)

element ID

d)

Buttons

13.

Any sequence of characters between quotation marks (ex: "Claws Up!", "42", "Hello Grizzles!!").

a)

Selection

b)

String

c)

Summary

d)

Protocol

14.

On-screen objects, like buttons, images, text boxes, pull down menus, screens and so on.

a)

UI Elements

b)

Type Elements

c)

Control Elements

d)

ID Elements

15.

A _____ can hold letters and number

a)

Integer Only

b)

String Only

c)

Both Integer and String

d)

Neither Integer nor String

16.

UI Elements include all of the following EXCEPT:

a)

Images

b)

Functions

c)

Drop Down Menus

d)

Text Boxes

17.

It's important to understand in Event-Driven programming that:

a)

Only Users trigger events

b)

Only Events trigger code

c)

Both Users trigger events and Events trigger code

d)

Neither Users trigger events nor Events trigger code

18.

Which of the following would be both a descriptive AND acceptable ID to give to a button you want to insert?

a)

1startButton

b)

start Button1

c)

start_button_1

d)

button1

19.

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

a)

Only A

b)

Only B

c)

Both A and B

d)

Neither A or B

20.

When adding images in Design Mode, you can add any of the following EXCEPT:

a)

.jpg

b)

.gif

c)

.psd

d)

.png

21.

Which of the following is FALSE with regards to the command console.log?

a)

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.

b)

Using this command is a way to debug your program

c)

This command cannot be used in determining potential errors down the line in your programming

d)

Console.log is a way to display a simple plaintext output

22.

The following would be considered an example of a string:


'This is an example of a string'

a)

True

b)

False

23.

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

a)

Only A

b)

Only B

c)

Both A and B

d)

Neither A or B

24.

A program designed to run blocks of code or functions in response to specified events (e.g. a mouse click)

a)

Event-Driven Program

b)

Event Handler

c)

Beaver Programming

d)

Event Listener

25.

An action that causes something to happen:

a)

Debugger

b)

Data Type

c)

Variable

d)

Event

26.

Debugging:

a)

puts commands in correct order so computers can read the commands

b)

is a step-by-step procedure for solving a problem

c)

to you write instructions for a computer

d)

is finding and fixing problems in your program

27.

When naming the buttons and screens you should:

a)

use the default settings; button1, screen1, image1,etc.

b)

use names that describe what the UI represents

c)

use names like first image, second image or first button and second button

d)

All of these choices are true

28.

The ________________is important because it's how you refer to the element in your code

a)

Button Name

b)

User Interface

c)

Variable Name

d)

Element ID

29.

UI Elements can include all of the following EXCEPT:

a)

Mouse Clicks

b)

Text Boxes

c)

Drop Down Menus

d)

Images

30.

UI Events can include all of the following EXCEPT:

a)

Mouse Click

b)

Pressing a key on the keyboard

c)

Scrolling

d)

Viewing an image

31.

Which order should the following go in when making event-driven apps?

a)

Design Mode, Add onEvent, Write the code for event handling, Run/Test/Debug

b)

Add onEvent, Write the code for the event handling, Design Mode, Run/Test/Debug

c)

Write the code for the event handling, Add onEvent, Run/Test/Debug, Design Mode

d)

Design Mode, Write the code for event handling, Run/Test/Debug, Add onEvent

32.

When naming IDs for your elements, they may NOT contain:

a)

Spaces

b)

Hyphens

c)

Underscores

d)

Periods

33.

When setting the setPosition command, the coordinates (0,0) begins where on the screen?

a)

Top Right Corner

b)

Top Left Corner

c)

Bottom Right Corner

d)

Bottom Left Corner

34.

The following line of code would not appear on the screen of an app you have just created:


console.log("Welcome to My App!");

a)

True

b)

False

35.

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?

a)

Line 1

b)

Line 2

c)

Line 3

d)

Line 4

36.

Which of the following design properties can you NOT change of a button you want to add to your app?

a)

Color

b)

Text Alignment

c)

OnEvent

d)

It's X and Y Position

37.

Which of the following is NOT an acceptable way you can change the color of a property on a design element in your app?

a)

"white"

b)

rgb(255,255,255)

c)

#ffffff

d)

All of these are acceptable ways to change the color

38.

Which of the following would refer to Camel Casing when naming your Element IDs?

a)

camelcasing

b)

camelCasing

c)

CamelCasing

d)

Camelcasing

39.

What will the following line of code do?


//setProperty("bigButton", "background-color", "blue");

a)

Set a button to the background color of blue

b)

Set the app background to the color of blue

c)

This line will not affect your program

d)

An error will take place; you can't have a hyphen in "background-color"

40.

Which of the following lines of code is in the correct order with regards to setProperty?

a)

setProperty("bigButton", "text", "Now it's a bigger button!");

b)

setProperty("text", "bigButton", "Now it's a bigger button!");

c)

setProperty("bigButton", "Now it's a bigger button!", "text");

d)

setProperty("text", "Now it's a bigger button!", "bigButton");

41.

Which line of code will result in an error?

a)

Line 1

b)

Line 2

c)

Line 5

d)

Line 6

42.

Each of the following are acceptable actions you can choose for your Events EXCEPT:

a)

click

b)

mousedown

c)

keyup

d)

randomNumber

43.

Which of the following is TRUE regarding what you see in this image?

a)

A sound will play based on Lines 15 and 16

b)

The event will trigger if the sparrow is clicked on with the mouse

c)

randomNumber is needed to make this app more challenging in the hawk and sparrow jumping all over the screen

d)

A playSound command cannot go into an onEvent and therefore, the sound will not play here

44.

Which of the following is TRUE regarding both console.log and setProperty commands?

a)

console.log requires three inputs while setProperty requires one input

b)

setProperty requires three inputs while console.log requires only one

c)

both setProperty and console.log require three inputs

d)

both setProperty and console.log require only one input

45.

Which of the following is NOT true regarding onEvent?

a)

it makes the program respond to the user

b)

code inside an onEvent runs right away

c)

even if code is after an onEvent, it will run first if it's outside of any onEvent

d)

changing the second input changes the type of interaction that will make the code inside the onEvent run.

46.

Which line of code will result in an error?

a)

Line 1

b)

Line 2

c)

Line 3

d)

Line 4

47.

Which line of code will result in an error?

a)

Line 14

b)

Line 15

c)

Line 16

d)

Line 17

48.

Which line of code will result in an error?

a)

Line 1

b)

Line 2

c)

Line 3

d)

Line 4

49.

Based on the code shown here, which of the following will NOT happen when ran?

a)

A message will display in Debug Console

b)

A mouse click is required for an event to take place

c)

An object will randomly jump around on the screen

d)

A sound will play

50.

Based on the code shown here, which of the following will NOT happen when ran?

a)

A description of what takes place in this event will be displayed on the app screen

b)

A mouse over will be needed for an event to take place

c)

Objects will randomly jump around on the screen

d)

The player will be warned on what to look out for

51.

A mistake in the program where the rules of the programming language are not followed.

a)

Bug

b)

Event Error

c)

Plagiarism

d)

Syntax Error

52.

A design approach that breaks the problem into smaller pieces and makes sure each piece works before adding it to the whole.

a)

Debugging

b)

Incremental Development Process

c)

Iterative Development Process

d)

Trouble Shooting

53.

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.

a)

Debugging

b)

Incremental Development Process

c)

Iterative Development Process

d)

Trouble Shooting