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
École, étude et sujet
- Établissement
- AP Computer Science
- Cours
- AP Computer Science
Infos sur le Document
- Publié le
- 3 septembre 2023
- Nombre de pages
- 5
- Écrit en
- 2023/2024
- Type
- Examen
- Contenu
- Questions et réponses
Sujets
-
ap computer science principles exam
Document également disponible en groupe