CSP Unit 3 Assessment

CSP Unit 3 Assessment

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Nathanael Baker

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Actions in the picture helpful in designing and developing an app?

Back

I and III only

2.

FLASHCARD QUESTION

Front

Purpose of a design specification?

Back

Describing the requirements for how a program will work or users will interact with it

3.

FLASHCARD QUESTION

Front

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

Back

blue

4.

FLASHCARD QUESTION

Front

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

Back

blue

5.

FLASHCARD QUESTION

Front

What will be displayed in the console when the user clicks the "topButton" button ONCE? Options: cat, bird, dog, dog, cat, bird, cat, dog, bird, bird, cat, dog

Back

cat, dog, bird

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.

FLASHCARD QUESTION

Front

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?

Back

chicken, pig, cow

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.

FLASHCARD QUESTION

Front

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

Back

banana dragon fruit cherry cherry

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?