Search Header Logo

AP CSP Practice Test 1 (10 Questions)

Computers

11th - 12th Grade

Used 36+ times

AP CSP Practice Test 1 (10 Questions)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bytes, which are represented by 8 bits, are the units used by computers to represent a character such as a letter or number.  The following characters are shown with their decimal representations.
C      67
K      75
.        96
p       112
Which of the above, represented in binary as a byte, contains the most zeros?

C
K
.
p

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what number?

2
7
8
9

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 The question below uses a simple programming language, with the following instructions.
product ← 100
REPEAT 1000 TIMES
{
     product ←product * product + 1
}
In some coding languages, the above code will result in an error.  Why?

The fixed number of bits used to represent real numbers (as floating-point numbers) limits the range of floating-point values and mathematical operations.
The multiple levels of abstraction used oversimplified the code.
The value of product will always be 0.
The fixed number of bits used to represent characters or integers limits the range of integer values and mathematical operations.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A customer is shopping online, and purchases a product advertised at $10.99.  She has a 40% discount, bringing the price to $6.594 each.  She decided to purchase 3.  Her final total should be $19.78, but the total instead is $19.77.  Choose the MOST LIKELY possible explanation for the discrepancy:

The program calculating the total rounded the price for one of the products, then multiplied by 3.
While multiplying the floating numbers, there was a round-off error.
The fixed number of bits used to store the values resulted in an overflow error.
The program does not handle signed integers.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sort the following by levels of abstraction, from lowest to highest:
I.    logic gates
II.   operating systems
III.  programming language
IV.  machine language

I, II, III, IV
I, III, IV, II
I, IV, II, III
I, IV, III, II

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements are true about high-level programming languages? Select TWO answers.
(I can't choose two answers on this application, so I will choose one correct answer for you and you decide the 2nd answer.)

A high-level programming language often uses natural language elements.
A high-level programming language does not ensure program reliability.
A high-level programming language must be used to execute commands such as adding and multiplying
A high-level program language allows for code re-use.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is NOT correct:

Logic gates are used to perform operations such as addition and subtraction.
Logic gates are modeled by Boolean functions.
Hardware is the lowest level of abstraction.
Binary data is processed by physical layers of computing hardware.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers