WorksheetsCode.org Unit 3 Assessment
Total questions: 10
Worksheet time: 5mins
Which of the actions in the picture would usually be helpful in designing and developing an app?
I and II only
I and III only
II and III only
I, II, and III
Which of the following best describes the purpose of a design specification?
Tracking errors that arise through user testing
Documenting comments that will need to be added to a program
Describing the requirements for how a program will work or users will interact with it
Listing detailed questions that will be asked of users during interviews
What will the “background color” of the “topButton” be when the program is finished running?
red
orange
blue
green
If the user does NOT click the button what color will “topButton” be when this program finishes running?
red
blue
green
orange
The following program is run. Then the user clicks the "topButton" button ONCE. What will be displayed in the console?
cat, bird, dog
dog, cat, bird
cat, dog, bird
bird, cat, dog
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?
cow, pig, chicken
cow, chicken, pig
pig, cow, chicken
chicken, pig, cow
The following program is run. Then the user clicks the “bottomButton” TWO TIMES. What will be displayed in the console?
apple banana cherry cherry dragon fruit
banana dragon fruit cherry cherry
banana dragon fruit apple appl
banana cherry cherry dragon fruit
Which line of code in this program is MOST likely to result in an error?
Line 1
Line 2
Line 3
Line 4
Which of the following BEST describes the differences between sequential and event-driven programming?
In sequential programming commands run one at a time. In event-driven programming all commands run at the same time.
In sequential programming commands run faster than in event-driven programming.
In sequential programming each command is run many times in sequence. In event-driven programming all commands are run a single time as an event.
In sequential programming commands run in the order they are written. In event-driven programming some commands run in response to user interactions or other events.
Which of the following is NOT a reason to include comments in programs
Comments help the computer decide whether certain components of a program are important.
Comments help programmers debug issues in their own code
Comments help document how code was written for other programmers to use
Comments enable programmers to track their work throughout the development process
