
Sem 1 MKPD 3 - T: AP CSP Unit 1 Test (UTeach)
Authored by Natalie King
Computers
9th - 12th Grade
Used 24+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following two algorithms for determining the tallest person in a group.
Algorithm A
Step 1: Everybody stands and lines up against the wall.
Step 2: One person from those who are standing steps forward.
Step 3: One person from those who are standing steps forward.
Step 4: The shorter of these two people who stepped forward sits down.
Step 5: Repeat steps 3 and 4 until only one person is standing.
Step 6: The last person standing is the tallest in the group.
Algorithm B
Step 1: Everybody stands and lines up against the wall.
Step 2: Each standing person pairs up with one other standing person.
Step 3: The shorter member of each pair sits down.
Step 4: Repeat steps 2 and 3 until only one person is standing.
Step 5: The last person standing is the tallest in the group.
Which of the following statements about these two algorithms is true when applied to a group of 32 people?
Algorithm A is never faster than Algorithm B
Algorithm A is rarely faster than Algorithm B
Algorithm A is usually faster than Algorithm B
Algorithm A is always faster than Algorithm B
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
. Which of the following is a key factor in determining the efficiency of an algorithm?
The machine on which the algorithm is running
The length of the algorithm
The required number of computations required in the algorithm
The amount of computational resources used by the algorithm and the number of times a statement or group of statement executes
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following types of languages is optimized for machine processing and maybe written and expressed as a series of binary digits (e.g., ones and zeros), making it difficult for humans to read and write?
Natural language
Pseudocode
High-level programming language
Low-level programming language – machine language
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The local government for a newly developed community would like to begin conducting an annual census to make an accurate count of its current population and gather other relevant demographic information about its residents. The community is currently relatively small and consists of around 500 homes. However, it is growing quickly and expects to have more than 100,000 homes in the next few years.
Which of the following plans would be the most practical and most efficient solution for computing an accurate population count, no matter how large the community grows?
Hire one person to go door-to-door conducting the census. This person will visit
all of the homes in the community once each year.
Hire 100 people to go door-to-door conducting the census. Each of these people
will visit 1% of the homes in the community once each year.
Every year, mail a copy of the census form to every home in the community and
require that each household complete the form themselves and mail it back to a
central office for processing. Then follow up with those that did not.
Conduct the census once for only 100 homes and then estimate the annual
population for all later years based on the relative increase in the number of homes.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Using a Vigenere Cipher with a keyphrase code of BEG, decipher the given hidden message:
kirmc hfet
happy days
knives jump
jelly bean
jumpy jack
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Using a Caesar Cipher with an offset of 13, decode the following ciphertext back to plaintext:
znyjner
malware
viruses
cyphers
scratch
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Using a Caesar cipher of shift -3, encode the following message:
elevens bench
bibsbkp ybkze
hohyhqv ehqfk
elevens bench
None of the above
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?