Search Header Logo

AP CSP Unit 10 Review 23-24

Authored by Melissa Theodore

Mathematics

10th Grade

CCSS covered

Used 444+ times

AP CSP Unit 10 Review 23-24
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

One of the three building blocks of programming. Sequencing refers to just sequential steps in a program is known as?

Selection

Iteration

Sequencing

Phishing

Tags

CCSS.HSF.IF.A.3

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the technical term for one of the three building blocks of programming which is another way of saying loops, or while/repeat until/for loops? For example:

For each x in item:

print(x)

Incremental

Alternative

Iteration

Algorithm

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

An algorithm has been developed to compute the sum of all the elements in a list of integers. Which of the following programming structures must be added to the existing algorithm so that the new algorithm computes the sum of only the even integers in the list?

Iteration

Searching

Selection

Sequencing

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The Traveling Salesman Problem is a problem in theoretical computer science in which one tries to find the shortest route that passes through every point in a set, once and only once. The optimal solution to the problem for an arbitrary set of of points cannot be found in a reasonable amount of time, that is, it cannot be found in polynomial time. However, we can find an approximation to the optimal solution in a reasonable amount of time. It would be best to find the approximate solution using a

The output of the circuit is always Heuristic algorithm
Brute-Force algorithm
Recursive algorithm
Dynamic algorithm

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statements are true about algorithms?
I. If an algorithm runs in reasonable time, the number of steps the algorithm takes is a polynomial function (constant, linear, squared, etc.) of the size of the input.
II. All problems can be solved using an algorithm that runs in reasonable time.
III. If a problem cannot be solved in reasonable time, a heuristic approach is helpful to solve the problem.

I, II
I, III
I, II, III
None of the options

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

An algorithm is a/an ____.

precise and unambiguous set of instructions that complete a task

binary representation of a specific phenomenon

computer program that must finish its task in a reasonable time

computer program that never finishes its task

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following programs is most likely to benefit from the use of a heuristic?

A program that calculates a student's grade based on the student's quiz and homework scores.

A program that encrypts a folder of digital files

A program that finds the shortest driving route between two locations on a map.

A program that sorts a list of numbers in order from least to greatest.

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?