APCSP PRACTICE TEST CORE COMPUTER
SCIENCE PRINCIPLES REVIEW 2026
◉ What is the purpose of relational operators?
Answer: They test the relationship between two variables,
expressions, or values.
◉ What do relational operators evaluate to?
Answer: A Boolean value.
◉ What does the expression 'a = b' evaluate to?
Answer: True if a and b are equal; otherwise false.
◉ What does the NOT operator do?
Answer: Evaluates to true if the condition is false; otherwise false.
◉ When does 'condition1 AND condition2' evaluate to true?
Answer: If both condition1 and condition2 are true.
◉ When does 'condition1 OR condition2' evaluate to true?
Answer: If either condition1 or condition2 is true, or both are true.
,◉ What happens if a Boolean expression evaluates to true in an IF
statement?
Answer: The code in the block of statements is executed.
◉ What is the function of the ELSE statement in an IF-ELSE
structure?
Answer: It executes the second block of statements if the condition
is false.
◉ What does the REPEAT UNTIL statement do?
Answer: Repeats the block of statements until the Boolean
expression evaluates to true.
◉ What is the result of accessing aList[i]?
Answer: It accesses the element of aList at index i.
◉ What does the INSERT function do?
Answer: Shifts values in aList to the right and places value at index i.
◉ What does the APPEND function do?
Answer: Increases the length of aList by 1 and places value at the
end.
, ◉ What happens when REMOVE is called on aList?
Answer: Removes the item at index i and shifts values left.
◉ What does LENGTH(aList) return?
Answer: The number of elements in aList.
◉ What does the FOR EACH loop do?
Answer: Assigns the value of each element of aList to the variable
item sequentially.
◉ What is a procedure in programming?
Answer: Defines a block of statements that can take arguments and
be called.
◉ What does the RETURN statement do in a procedure?
Answer: Returns the flow of control to the calling statement and
returns a value.
◉ What does the robot do in the context provided?
Answer: Moves one square forward in the direction it is facing.
SCIENCE PRINCIPLES REVIEW 2026
◉ What is the purpose of relational operators?
Answer: They test the relationship between two variables,
expressions, or values.
◉ What do relational operators evaluate to?
Answer: A Boolean value.
◉ What does the expression 'a = b' evaluate to?
Answer: True if a and b are equal; otherwise false.
◉ What does the NOT operator do?
Answer: Evaluates to true if the condition is false; otherwise false.
◉ When does 'condition1 AND condition2' evaluate to true?
Answer: If both condition1 and condition2 are true.
◉ When does 'condition1 OR condition2' evaluate to true?
Answer: If either condition1 or condition2 is true, or both are true.
,◉ What happens if a Boolean expression evaluates to true in an IF
statement?
Answer: The code in the block of statements is executed.
◉ What is the function of the ELSE statement in an IF-ELSE
structure?
Answer: It executes the second block of statements if the condition
is false.
◉ What does the REPEAT UNTIL statement do?
Answer: Repeats the block of statements until the Boolean
expression evaluates to true.
◉ What is the result of accessing aList[i]?
Answer: It accesses the element of aList at index i.
◉ What does the INSERT function do?
Answer: Shifts values in aList to the right and places value at index i.
◉ What does the APPEND function do?
Answer: Increases the length of aList by 1 and places value at the
end.
, ◉ What happens when REMOVE is called on aList?
Answer: Removes the item at index i and shifts values left.
◉ What does LENGTH(aList) return?
Answer: The number of elements in aList.
◉ What does the FOR EACH loop do?
Answer: Assigns the value of each element of aList to the variable
item sequentially.
◉ What is a procedure in programming?
Answer: Defines a block of statements that can take arguments and
be called.
◉ What does the RETURN statement do in a procedure?
Answer: Returns the flow of control to the calling statement and
returns a value.
◉ What does the robot do in the context provided?
Answer: Moves one square forward in the direction it is facing.