
AP CSP 2021
Quiz by Aarthi Nomula
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Which of the following is an example of a phishing attack?
What are the values of first and second as a result of executing the code segment?

Which of the following best explains the relationship between the Internet and the World Wide Web?
A code segment is intended to display the following output.
up down down down up down down down
Which of the following code segments can be used to display the intended output?
Which of the following best exemplifies the use of multifactor authentication to protect an online banking system?
A game is played by moving a game piece left or right along a horizontal game board. The board consists of spaces of various colors, as shown. The circle represents the initial location of the game piece.
Yellow Black Green Green Red Yellow Black Black Yellow Black
         ●
The following algorithm indicates how the game is played. The game continues until the game is either won by landing on the red space or lost when the piece moves off either end of the board.
Step 1:
Place a game piece on a space that is not red and set a counter to 0.
Step 2:
If the game piece is on a yellow space, move the game piece 3 positions to the left and go to step 3. Otherwise, if the game piece is on a black space, move the game piece 1 position to the left and go to step 3. Otherwise, if the game piece is on a green space, move the game piece 2 positions to the right and go to step 3.
Step 3:
Increase the value of the counter by 1.
Step 4:
If game piece is on the red space or moved off the end of the game board, the game is complete. Otherwise, go back to step 2.
If a game is begun by placing the game piece on the rightmost black space for step 1, what will be the value of the counter at the end of the game?
Which of the following best describes a direct benefit in using redundant routing on the Internet?