Unit 3 Review

Unit 3 Review

Assessment

Assessment

Created by

Paul Laforet

Computers

9th - 12th Grade

6 plays

Medium

Student preview

quiz-placeholder

10 questions

Show all answers

1.

MULTIPLE CHOICE

45 sec • 1 pt

Media Image

Which of the above actions would usually be helpful in designing and developing an app?

Answer explanation

Consultation and communication with program users is an important aspect of program development. Incrementally adding tested program segments to correct working programs helps create large correct programs.

2.

MULTIPLE CHOICE

30 sec • 1 pt

Which of the following best describes the purpose of a design specification?

3.

MULTIPLE CHOICE

45 sec • 1 pt

Media Image

What will the “background-color” of the “topButton” be when the program is finished running?

Answer explanation

This is an example of sequential programming where the program statements run in order, from top to bottom. Since the last change to the “background-color” of the “topButton” is to the color blue, that is the color it will be when the program is done running.

4.

MULTIPLE CHOICE

45 sec • 1 pt

Media Image

If the user does NOT click the button what color will “topButton” be when this program finishes running?

Answer explanation

Since this is an example of event-driven programming, the commands on lines 4 and 5 will only execute when the user clicks the “topButton” since they are inside the onEvent block. Since this question asks about the situation of the user NOT clicking the button, the last change to the color happens when line 2 executes and sets it to blue.

5.

MULTIPLE CHOICE

45 sec • 1 pt

Media Image

The following program is run. Then the user clicks the "topButton" button ONCE. What will be displayed in the console?

Answer explanation

Once the program is run, lines 1 and 5 will run, in that order, right away, meaning that the first two words displayed will be cat and dog respectively. The word bird will be displayed once the user clicks the “topButton” and causes line 3 to run.

6.

MULTIPLE CHOICE

45 sec • 1 pt

Media Image

The following program is run. Then the user clicks the “bottomButton” ONCE and then clicks the “topButton” ONCE. What will be displayed in the console?

Answer explanation

Walking through the code run based on the description in the question:

-Line 7 will run as soon as the program is run, displaying chicken to the console.

-The user clicks the “bottomButton” ONCE which causes line 5 to run, displaying pig to the console.

-The user clicks the “topButton” ONCE which causes line 2 to run, displaying cow to the console.

7.

MULTIPLE CHOICE

45 sec • 1 pt

Media Image

The following program is run. Then the user clicks the “bottomButton” TWO TIMES. What will be displayed in the console?

Answer explanation

Walking through the code run based on the description in the question:

-Lines 4 and 8 will run as soon as the program is run, in that order, displaying banana then dragon fruit to the console.

-The user clicks the “bottomButton” the first time which causes line 6 to run, displaying cherry to the console.

-The user clicks the “bottomButton” the second time which causes line 6 to run again, displaying cherry to the console again.

8.

MULTIPLE CHOICE

45 sec • 1 pt

Media Image

Which line of code in this program is MOST likely to result in an error?

Answer explanation

When printing characters to the console, they must have quotes around them to mark them as a string. Numbers can be printed as strings as in “100” or as numbers with no quotes, as in 100.

9.

MULTIPLE CHOICE

30 sec • 1 pt

Which of the following BEST describes the differences between sequential and event-driven programming?

10.

MULTIPLE CHOICE

45 sec • 1 pt

Which of the following is NOT a reason to include comments in programs?

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Find a similar activity

Create activity tailored to your needs using

Quizizz AI
code.org Unit 3 Intro to App Design

10 questions

code.org Unit 3 Intro to App Design

assessment

9th - 12th Grade

AP CSP Unit 3 Quiz

9 questions

AP CSP Unit 3 Quiz

assessment

11th Grade

AP CSP Unit 3 Quiz

10 questions

AP CSP Unit 3 Quiz

assessment

9th - 12th Grade

Unit 3- Intro to App Design

12 questions

Unit 3- Intro to App Design

assessment

9th - 12th Grade

AP CSP Unit 3

14 questions

AP CSP Unit 3

assessment

9th - 12th Grade

CSP Unit 3 Assessment

10 questions

CSP Unit 3 Assessment

assessment

9th - 12th Grade

Code.org Unit 3 Assessment

10 questions

Code.org Unit 3 Assessment

assessment

9th - 12th Grade

CSP U3

10 questions

CSP U3

assessment

10th Grade