Computers

10th -

12thgrade

Image

AP CSP Practice

78
plays

6 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    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
    30 seconds
    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
    30 seconds
    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.

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?