AP Computer Science Principles Exam 2023 with 100% correct answers
a --- expression - correct answerevaluates expression and assigns the result to the variable a DISPLAY (expression) - correct answerdisplays the value of expression, followed by a space. INPUT ( ) - correct answeraccepts a value from the user and returns it. a + b a - b a * b a / b - correct answerthe arithmetic operators +, -, *, and / are used to perform arithmetic on a and b. e.g 3/2 evaluates to 1.5 a MOD b - correct answerevaluates to the remainder when a is divided by b. assume that a and b are positive integers. e.g 17 MOD 5 evaluates to 2/ RANDOM (a, b) - correct answerevaluates to a random integer from a to be, including a and b. e.g RANDOM (1,3) could evaluate to 1, 2, or 3. a = b a != b
Written for
- Institution
- AP Computer Science
- Course
- AP Computer Science
Document information
- Uploaded on
- September 2, 2023
- Number of pages
- 5
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
ap computer science principles exam
Also available in package deal