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 a b
Escuela, estudio y materia
- Institución
- AP Computer Science
- Grado
- AP Computer Science
Información del documento
- Subido en
- 3 de septiembre de 2023
- Número de páginas
- 5
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
ap computer science principles exam
Documento también disponible en un lote