Unit 3: Intro to App Design (APCSP 22-23, Code.org)

Unit 3: Intro to App Design (APCSP 22-23, Code.org)

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Robert McWilliams

FREE Resource

Student preview

quiz-placeholder

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will the console log say when this program is run? Assume the user clicks the button after 10 seconds of the program being run.

"Starting my program!"

"You clicked the button!"

"Ending my program!"

"Starting my program!"

"Ending my program!"

"You clicked the button!"

"You clicked the button!"

"Starting my program!"

"Ending my program!"

"You clicked the button!"

"Ending my program!"

"Starting my program!"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

After the program is run, what will the text color of smallButton be?

red

blue

green

yellow

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If the user clicks the button, what color will "topButton" be when the program finishes running?

red

green

blue

orange

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

When this program is run, the user clicks "topButton" then "bottomButton" and then "topButton" again. What will be displayed in the console?

aaa

bbb

ccc

aaa

aaa

ccc

bbb

aaa

ccc

aaa

bbb

aaa

aaa

bbb

aaa

ccc

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line of code is most likely to return an error?

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following describes "event-driven programming?"

Commands run one at a time in the order that they are written.

Commands run one at a time in response to user interactions or other events.

Commands all run at the same time when the user interacts with the app.

Commands all run whether or not the user interacts with the program.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a reason to include comments in a program?

Comments tell the computer what the code is doing.

Comments tell the programmer what the code is doing.

Comments help the user work an app more effectively.

Comments will show up in the console so when the program is run, the programmer know what happens.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?