AP CSP U1 Mastery Check 1
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Michael Chrzan
Used 3+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A certain programming language uses 4-bit binary sequences to represent nonnegative integers. For example, the binary sequence 0101 represents the corresponding decimal value 5. Using this programming language, a programmer attempts to add the decimal values 14 and 15. Which of the following best describes the result of this operation? (DAT-1.B.3)
The correct sum of 29 will be calculated and stored.
An overflow error will occur because 4 bits is not large enough to represent either of the values 14 or 15.
An overflow error will occur because 4 bits is not large enough to represent 29, the sum of 14 and 15.
A round-off error will occur because the decimal values 14 and 15 are represented as approximations due to the fixed number of bits used to represent numbers.
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
An online store uses 6-bit binary sequences to identify each unique item for sale. The store plans to increase the number of items it sells and is considering using 7-bit binary sequences. Which of the following best describes the result of using 7-bit sequences instead of 6-bit sequences? (DAT-1.C.5)
2 more items can be uniquely identified.
2 more items can be uniquely identified.
2 times as many items can be uniquely identified.
10 times as many items can be uniquely identified.
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A video game character can face toward one of four directions: north, south, east, and west. Each direction is stored in memory as a sequence of four bits. A new version of the game is created in which the character can face toward one of eight directions, adding northwest, northeast, southwest, and southeast to the original four possibilities. Which of the following statements is true about how the eight directions must be stored in memory? (DAT-1.B.1)
Four bits are not enough to store the eight directions. Five bits are needed for the new version of the game.
Four bits are not enough to store the eight directions. Eight bits are needed for the new version of the game.
Four bits are not enough to store the eight directions. Sixteen bits are needed for the new version of the game.
Four bits are not enough to store the eight directions. Sixteen bits are needed for the new version of the game.
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In a certain computer program, two positive integers are added together, resulting in an overflow error. Which of the following best explains why the error occurs? (CRD-2.I.4)
The program attempted to perform an operation that is considered an undecidable problem.
The precision of the result is limited due to the constraints of using a floating-point representation.
The program can only use a fixed number of bits to represent integers; the computed sum is greater than the maximum representable value.
The program cannot represent integers; the integers are converted into decimal approximations, leading to rounding errors.
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The player controls in a particular video game are represented by numbers. The controls and their corresponding binary values are shown in the following table.
The numeric values for the controls can also be represented in decimal (base 10). What control is represented by the decimal value 15? (DAT-1.C.1)
←
↑
→
↓
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Each student that enrolls at a school is assigned a unique ID number, which is stored as a binary number. The ID numbers increase sequentially by 1 with each newly enrolled student. If the ID number assigned to the last student who enrolled was the binary number 1001 0011, what binary number will be assigned to the next student who enrolls? (DAT-1.C.4)
1001 0100
1001 0111
1101 0100
1101 0111
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A program developed for a Web store represents customer account balances using a format that approximates real numbers. While testing the program, a software developer discovers that some values appear to be mathematically imprecise. Which of the following is the most likely cause of the imprecision? (DAT-1.B.3)
The account balances are represented using a fixed number of bits, resulting in overflow errors.
The account balances are represented using a fixed number of bits, resulting in round-off errors.
The account balances are represented using an unlimited number of bits, resulting in overflow errors.
The account balances are represented using an unlimited number of bits, resulting in round-off errors.
Similar Resources on Wayground
10 questions
10 câu kiểu xâu tiết 1
Quiz
•
11th Grade
10 questions
Contact Center Sevices
Quiz
•
7th - 10th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
10 questions
emtech
Quiz
•
12th Grade
10 questions
Diagnoses and Identification of Faulty Computer and Network
Quiz
•
9th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
9 questions
IT related jobs
Quiz
•
9th Grade
10 questions
S2 Subject Choice Quiz
Quiz
•
8th - 10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
