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

What combination of boolean operators can replace * such that ((X∗Y)∗Z)((X * Y) * Z)((X∗Y)∗Z) returns false only when a single variable among X,Y,ZX, Y, ZX,Y,Z is true?

Question 2
college-boardComputer Science PrinciplesAPExam Style
1 mark

What truth value does !(X == Y) return if X and Y have identical boolean values?

Question 3
college-boardComputer Science PrinciplesAPExam Style
1 mark

In a conditional statement, what value must a boolean expression return for an 'else' block to execute?

Question 4
college-boardComputer Science PrinciplesAPExam Style
1 mark

When storing user passwords, which data representation choice best balances privacy and security?

Question 5
college-boardComputer Science PrinciplesAPExam Style
1 mark

Which Boolean expression will always produce the opposite result of the Boolean expression (AextandnotBextandCextorD)(A ext{ and not } B ext{ and } C ext{ or } D)(AextandnotBextandCextorD)?

Question 6
college-boardComputer Science PrinciplesAPExam Style
1 mark

Which boolean operator would you use to check if two conditions must be true at the same time?

Question 7
college-boardComputer Science PrinciplesAPExam Style
1 mark

Which Boolean expression correctly determines if a number 'n' is odd?

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

What is the result of the Boolean expression NOT (TRUE AND FALSE)?

Question 9
college-boardComputer Science PrinciplesAPExam Style
1 mark

What is the result of the Boolean expression (true || false) && !(false || false)?

Question 10
college-boardComputer Science PrinciplesAPExam Style
1 mark

In a conditional statement, which replacement for '???' would make the code segment below always execute its body?

python
if (???): 
    # Code body executes here