NEW
Font size
WorksheetsAP CSP - Code.org Unit 3 Review
Total questions: 27
Worksheet time: 30mins
Which of the following best describes one of the benefits of using an iterative and incremental process of program development?
It allows programmers to implement algorithmic solutions to otherwise unsolvable problems.
It eliminates the need for programmers to test completed programs.
It enables programmers to create programs that use the lowest-level abstractions available.
It helps programmers identify errors as components are added to a working program.
How are procedures (functions) abstractions in computer science?
They are blocks of code that do something specific
They represent the lowest level of code for the computer to run
They use actual values to represent concepts
They can be used without understanding or seeing the code used.
What do parameters used in a procedure provide?
A way to get values into the procedure, making the code more flexible
A way to return values calculated in the procedure back to the calling program
A way to call a procedure from within another procedure
A way to connect an API to the procedure
What is an example of a coding-related abstraction?
Using comments in your code
The CPU (Central Processing Unit)
Pressing a button on an app
A constant value
Why should procedures (functions) be used?
They ease the workload of the processors
They facilitate the storage of data on hard drives
They make writing and maintaining programs easier through the reuse of code
An extra piece of information passed to a function to customize it for a specific need
Parameter
Library
Function
Block
function drawCircle(r, x, y, c) {
var circle = new Circle(r);
circle.setPosition(x, y);
circle.setColor(c);
add(circle);
}
Which of the following statements would create a blue circle at the (x, y) point (100, 200)?
Which of the following best characterizes a high-level programming language?
A language comprised entirely of hardware logic gates
A language in which each instruction corresponds directly to an instruction in a computer’s machine code
A language that is easy for a computer to interpret but difficult for humans to interpret
A language that uses multiple abstractions to manage complexity
Why are these icons a good use of abstraction?
They tell us what they mean without needing to use the name
They are difficult to understand
They don't explain what they are
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
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 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
In which of the following stages of the development process is a team MOST likely to interview a potential user of an app?
investigating and reflecting
designing
prototyping
testing
