What does the DISPLAY expression do?
AP CSP Exam Reference Sheet Practie

Quiz
•
Computers
•
12th Grade
•
Medium
Cindy Noriega
Used 22+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Displays the value of expression, followed by a space.
Accepts a value from the user and returns the input value.
Evaluates expression and then assigns a copy of the result to the variable a.
Generates and returns a random integer from a to b, including a and b.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the MOD operator do?
The code in block of statements is repeated until the Boolean expression condition evaluates to true.
Evaluates to the remainder when a is divided by b.
The code in block of statements is executed n times.
Assigns a copy of the list bList to the list aList.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the relational operator = do?
The code in block of statements is executed if the Boolean expression condition evaluates to true; no action is taken if condition evaluates to false.
Tests the relationship between two variables, expressions, or values.
Evaluates to true if both conditionl and condition2 are true; otherwise evaluates false.
Evaluates to true if condition is false; otherwise evaluates to false.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the REPEAT UNTIL (condition) do?
Evaluates to the number of elements in aList.
The code in block of statements is repeated until the Boolean expression condition evaluates to true.
The code in block of statements is executed n times.
The variable item is assigned the value of each element of aList sequentially, in order, from the first element to the last element.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the INSERT (aList, i, value) do?
The length of the list is increased by 1, and value is placed at index i in aList.
Assigns the value of aList[i] to the variable x.
The length of aList is increased by 1, and value is placed at the end of aList.
Removes the item at index i in aList and shifts to the left any values at indices greater than i.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the PROCEDURE procName (parameter1, parameter2, ...) do?
Defines procName as a procedure that takes zero or more arguments.
The robot moves one square forward in the direction it is facing.
Evaluates to true if there is an open square one square in the direction relative to where the robot is facing; otherwise evaluates to false.
The robot rotates in place 90 degrees clockwise.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the RETURN (expression) do?
The robot moves one square forward in the direction it is facing.
Returns the flow of control to the point where the procedure was called and returns the value of expression.
The robot rotates in place 90 degrees counterclockwise.
The robot rotates in place 90 degrees clockwise.
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
AP CSP Unit 6

Quiz
•
10th - 12th Grade
20 questions
Code.org CSD Unit 3 Lessons 1-12

Quiz
•
3rd - 12th Grade
20 questions
Unit 5 Quiz - Loops & Lists (code.org)

Quiz
•
10th - 12th Grade
25 questions
Unit 4 Assessment Review

Quiz
•
9th - 12th Grade
20 questions
Robotics Pretest

Quiz
•
9th - 12th Grade
20 questions
Java Casting & Booleans

Quiz
•
10th - 12th Grade
26 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Quiz
•
9th - 12th Grade
21 questions
CodeHS JavaScript

Quiz
•
8th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University