Font size
WorksheetsAP CSP - Code.org Unit 3 Review
Total questions: 28
Worksheet time: 25mins
In which of the following stages of the development process is a team MOST likely to interview a potential user of an app? Choose two.
investigating and reflecting
designing
prototyping
testing
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
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?
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?
The following program is run. Then the user clicks the "bottomButton" TWO TIMES. What will be displayed in the console?
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
The design phase of a program includes. Choose two:
Betas testing
Modifying code
Brainstorming
Diagramming the interface
Debugging error
Comments in your code are (Choose two):
good practice because they help others understand the code
good practice because they facilitate collaboration
bad practice because they present security risks
bad practice because they increase the likelihood of errors
good practice, assuming you are dealing with a higher level language
The investigation stage includes all of the following EXCEPT:
collecting data through surveys
user testing
interviews
direct observations
identifying security breaches
Your company assigns you the task of programming an interface that is compatible with a touch screen. Users should be able to touch the screen to choose menu options. Your task is thus to focus on the program's:
security risk
tactile input
visual processing
memory storage
Visual output
What does the redundancy of routing do?
Increases the reliability of the internet.
Create inefficient wiring
Increases speed
Creates more space
Allows for greater security measures
Which of the following is not an example of a possible output of a software?
Images on the internet
Music from your computer
An email on your screen
A user pressing a button
Money leaving the ATM
Which of the following is NOT a phase in a program's development process?
Testing
Prototyping
Designing
Investigating and Reflecting
Marketing
The NY Times describes the development of a software project:
"The engineer traveled from Palo Alto to Langley with an updated version of the software program. The C.I.A. analysts would test it out and offer feedback, and then the engineers would fly back to California to tweak it."
This describes what type of development process?
iterative
sequential
event based
modular
secured
Which of the following would be considered a logic error (choose one)
The code does not work upon launch due to you forgetting a comma
The code plays the sound of a chicken when you press the image of a pig
The code cannot handle a number outside of the range of defined values
The user inputs 1/0, crashing the program as you cannot divide by zero
The compiler warns you prior to running the program
A program's specifications
defines the program's requirements
explains how the program runs
details the statistics of how the program runs
highlights economic considerations
lists the program's authors
In a particular computing language, I set a variable:
var myNum = 255;
I then modified the variable:
var mySecondNum = myNum + 2;
When I printed out mySecondNum, I received this output:
console.log(mySecondNum);
output:
-252
The error is most likely:
a logic error
overflow error
syntax error
runtime error
all of the errors mentioned
The visual elements of a program through which a user controls or communications the application
Game Screen
Dashboard
Dialog Box
User Interface
Visual System
A student is saving a String into Python in this manner:
myString = "Welcome to this program."
He prints out the statement later in the program, though has a typographical error:
prnt(myString)
What type of error will there be in the program:
logic
syntax
incremental
modular
overflow
All of the following are effective and efficient ways to find and correct program errors that occur during the design of your program, EXCEPT:
hand tracing
debuggers
visualizations
test cases
outsourcing
You have a program that starts like this:
amount <- input("How much will you deposit")
while(amount < 0 or amount == 'Quit')
amount <-input("That is not a legitimate gambling amount. Provide another input or press 'Quit'")
What looks to be the purpose of this while loop?
Converts the input data type to a positive integer
Creates the interface
Checks that the user provides a positive input
Creates an infinite loop
Collaborates with other developers
Planning, storyboarding and brainstorming are included in which phase of developing a program?
Testing
Prototyping
Design
Reporting
debugging
A program is (choose 2)
A collection of physical components that together are used to make a computer function
Hardware, including memory
software
a collection of program statements that performs a specific task when run by a computer
any algorithm
What is a code segment?
code relating to a device driver
a piece of a code that contains executable instructions
a system of words, letters, figures, or other symbols substituted for other words, letters, etc., especially for the purposes of secrecy.
A continuous method of representing information.
