AP Computer Science Principles Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Alexandre Cardoso
Used 31+ times
FREE Resource
34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a benefit of collaborating to develop a computing innovation?
Collaboration can decrease the size and complexity of tasks required of individual team members.
Collaboration can make it easier to find and correct errors during the development process.
Collaboration eliminates the need to resolve differences of opinion.
Collaboration facilitates multiple perspectives in developing ideas.
Answer explanation
While effective collaboration often benefits from a diversity of talents and perspectives, collaborators still need to develop strategies to resolve differences of opinion.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the following procedure, assume that the parameter x is an integer. Which of the following best describes the behavior of the procedure?
It displays nothing if x is negative and displays true otherwise.
It displays nothing if x is negative and displays false otherwise.
It displays true if x is negative and displays nothing otherwise.
It displays true if x is negative and displays false otherwise.
Answer explanation
When x is negative, y is assigned the value true and the value of y is displayed. When x is not negative, y is assigned the value false and the display statement is never executed.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case. Which of the following is a true statement about program documentation?
Program documentation should not be changed after it is first written.
Program documentation is only needed for programs in development; it is not needed after a program is completed.
Program documentation is useful when programmers collaborate but not when a programmer works individually on a project.
Program documentation is useful during initial program development and also when modifications are made to existing programs.
Answer explanation
During initial program development, documentation can allow the writer to organize his or her thinking, state assumptions about input, and explain the path of future development. When modifications are made to existing programs, documentation is used to record the changes or additions to an existing program.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A computer program uses 3 bits to represent integers. When the program adds the decimal (base 10) numbers 5 and 3, the result is 0. Which of the following is the best explanation for the result?
An overflow error occurred.
A round-off error occurred.
The result was affected by lossy data compression.
The result was approximated by a floating-point representation.
Answer explanation
The binary representations (in 3 bits) of 5 and 3 are 101 and 011, respectively. If these numbers are added, the result would be 1000. Since only 3 bits are used to represent integers in this example, the result would be stored as 000. This is an example of overflow error.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the 4-bit binary numbers 0011, 0110, and 1111. Which of the following decimal values is NOT equal to one of these binary numbers?
3
6
9
15
Answer explanation
Binary 0011 is equivalent to 2^1+2^0, or decimal 3. Binary 0110 is equivalent to 2^2+2^1, or decimal 6. Binary 1111 is equivalent to 2^3+2^2+2^1+2^0, or decimal 15. Decimal 9 is not equivalent to any of the given binary numbers.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is an advantage of a lossless compression algorithm over a lossy compression algorithm?
A lossless compression algorithm can guarantee that compressed information is kept secure, while a lossy compression cannot.
A lossless compression algorithm can guarantee reconstruction of original data, while a lossy compression algorithm cannot.
A lossless compression algorithm typically allows for faster transmission speeds than does a lossy compression algorithm.
A lossless compression algorithm typically provides a greater reduction in the number of bits stored or transmitted than does a lossy compression algorithm.
Answer explanation
Lossless compression algorithms are guaranteed to be able to reconstruct the original data, while lossy compression algorithms are not.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A list of binary values (0 or 1) is used to represent a black-and-white image. Which of the following is LEAST likely to be stored as metadata associated with the image?
Copyright information for the image
The date and time the image was created
The dimensions (number of rows and columns of pixels) of the image
A duplicate copy of the data
Answer explanation
Metadata typically consists of descriptive information about the data, not a copy of the data itself.
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
HTML Coding

Quiz
•
9th Grade
35 questions
[AP CSP] Programming with Conditionals [If, Elif, Else]

Quiz
•
9th Grade - University
30 questions
COLOR Theory

Quiz
•
9th - 12th Grade
34 questions
OCR J277 2.5 Programming Languages and IDEs

Quiz
•
11th Grade
37 questions
AP CSA Review Set #1

Quiz
•
9th - 12th Grade
30 questions
AP CS A Unit 3 2020-2021

Quiz
•
9th - 12th Grade
30 questions
Programming Techniques

Quiz
•
8th - 10th Grade
32 questions
Arduino

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade