AP Computer Science Final Review
Quiz
•
Computers
•
9th Grade - University
•
Hard
Thomas Martinez
FREE Resource
Enhance your content in a minute
132 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Used in public key encryption, ____________________ Encryption is a scheme in which the key to encrypt data is different from the key to decrypt.
Private Key
Asymmetric
Public Key
Symmetric
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
3.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
Encode the message using a Caesar cipher with shift 9.
Is cereal a soup
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Different ____________ can be written to implement the same algorithm.
problems
algorithms
code
lines
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Different algorithms can be developed to solve the same problem.
True
False
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
An algorithm will be used to calculate the difference between the smallest and largest values in a list. For the list of [10, 3, 5, 6], it should calculate a difference of 7.
There are two proposals for the algorithm:
Algorithm 1:
Set minVal to the first value in the list and maxVal to the last value in the list.
Iterate through each number in the list.
If the number is greater than maxVal, store it in maxVal.
If the number is less than minVal, store it in minVal.
After loop, set maxDiff to the difference between maxVal and minVal.
Algorithm 2:
Set minVal to 1000 and maxVal to 0.
Iterate through each number in the list.
If the number is greater than maxVal, store it in maxVal.
If the number is less than minVal, store it in minVal.
After loop, set maxDiff to the difference between maxVal and minVal.
Which of these statements are true about these algorithms?
I. Algorithm 1 does not work on lists where the smallest value is at the start of the list or the largest value is at the end of the list.
II. Algorithm 2 does not work on lists that contain all negative numbers or all numbers over 1000.
I only
II only
I and II only
Neither I nor II
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The flow chart above visualizes an algorithm to generate the "hailstone sequence", an interesting series of numbers.
If the variable n starts off as 5, what would be displayed as a result of executing this algorithm?
*MOD means the remainder
16 8 4 2 1
1
5 16 8 4 2
5 4 3 2
31
Create a free account and access millions of resources
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?
Similar Resources on Wayground
136 questions
Ôn tập ATBMTT5
Quiz
•
University
136 questions
DESKTOP SUPPORT ENGG
Quiz
•
University
136 questions
Ôn Tập Kiểm Tra HK2 TIN HỌC 10
Quiz
•
10th Grade
129 questions
Ôn tập Cuối Kỳ 2 - Tin 12 -24.25
Quiz
•
12th Grade
127 questions
ASK OWNER
Quiz
•
University
131 questions
ATBM plus
Quiz
•
University
135 questions
H446.1.4.1.CD
Quiz
•
12th Grade
128 questions
TIN GK1
Quiz
•
12th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
85 questions
Word Processing Review
Quiz
•
8th - 9th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
31 questions
Python Conditionals Review
Quiz
•
9th - 12th Grade
