zuai-logo
zuai-logo
  1. AP Computer Science Principles
FlashcardFlashcardStudy GuideStudy GuideQuestion BankQuestion Bank
GlossaryGlossary

Algorithms & Programming Fundamentals

Question 1
college-boardComputer Science PrinciplesAPExam Style
1 mark

In what way might implementing a randomized algorithm within environmental monitoring systems affect our ability to predict natural disasters accurately?

Question 2
college-boardComputer Science PrinciplesAPExam Style
1 mark

What is the purpose of using random values in secure password generation?

Question 3
college-boardComputer Science PrinciplesAPExam Style
1 mark

Which of the following best describes why abstraction is important when working with random values in a program?

Question 4
college-boardComputer Science PrinciplesAPExam Style
1 mark

How does incorporating randomness into software testing improve application security?

Question 5
college-boardComputer Science PrinciplesAPExam Style
1 mark

What potential ethical issue might arise if a randomized algorithm disproportionately favors certain outcomes due to inadequate randomness?

Question 6
college-boardComputer Science PrinciplesAPExam Style
1 mark

Which approach to generating a unique random integer within a fixed range would decrease the probability of collisions as the range size approaches infinity?

Question 7
college-boardComputer Science PrinciplesAPExam Style
1 mark

Why would you use a seed in generating random numbers within your program?

Feedback stars icon

How are we doing?

Give us your feedback and let us know how we can improve

Question 8
college-boardComputer Science PrinciplesAPExam Style
1 mark

Which of the following Python lines correctly generates a random integer between -10 and 10, inclusive?

Question 9
college-boardComputer Science PrinciplesAPExam Style
1 mark

Which consequence is most likely when a faulty random number generator (RNG) that does not have uniform distribution is used for encryption keys?

Question 10
college-boardComputer Science PrinciplesAPExam Style
1 mark

Considering distributed systems dependent on consensus protocols using random values, how might determinism versus nondeterminism impact system integrity?