Search Header Logo

AP CSP Practice

Authored by Jocelyn Hall

Computers

10th - 12th Grade

Used 83+ times

AP CSP Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A user wants to save a data file on an online storage site. The user wants to reduce the size of the file, if possible, and wants to be able to completely restore the file to its original version. Which of the following actions best supports the user’s needs?

Compressing the file using a lossless compression algorithm before uploading it

Compressing the file using a lossy compression algorithm before uploading it

Compressing the file using both lossy and lossless compression algorithms before uploading it

Uploading the original file without using any compression algorithm

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Let n be an integer value. Which of the following expressions evaluates to true if and only if n is a two-digit integer (i.e., in the range from 10 to 99, inclusive)?

n = (n MOD 100)

(n ≥ 10) AND (n < 100)

(n < 10) AND (n ≥ 100)

(n > 10) AND (n < 99)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A team of programmers is designing software. One portion of the project presents a problem for which there is not an obvious solution. After some research, the team determines that the problem is undecidable. Which of the following best explains the consequence of the problem being undecidable?

The problem can be solved algorithmically, but it will require an unreasonably long amount of time.

The problem can be solved algorithmically, but it will require an unreasonably large amount of data storage.

There is no possible algorithm that can be used to solve all instances of the problem.

There are several different possible algorithms that can solve the problem, but there is controversy about which is the most efficient.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What are the contents of yourList after the code segment is executed?

[10, 30, 50, 70]

[20, 40, 60, 80]

[10, 30, 50, 70, 20, 40, 60, 80]

[20, 40, 60, 80, 10, 30, 50, 70]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best explains how data is typically assembled in packets for transmission over the Internet?

Each packet contains data to be transmitted, along with metadata containing information used for routing the data.

Each packet contains an encrypted version of the data to be transmitted, along with metadata containing the key needed to decrypt the data.

Each packet contains only the metadata used to establish a direct connection so that the data can be transmitted.

Each packet contains multiple data files bundled together, along with metadata describing how to categorize each data file.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are true statements about the data that can be represented using binary sequences?


I - Binary sequences can be used to represent strings of characters.

II - Binary sequences can be used to represent colors.

III - Binary sequences can be used to represent audio recordings.

I only

I and II only

II and III only

I, II, and III

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?