Variables and Assignments
AP Computer Science Principles · Flashcards
AP COMPUTER SCIENCE PRINCIPLES · FLASHCARDS
Card 1
of 35
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
What is the scope of a variable declared inside a function?
QUESTION
What is the output type of 'x / y' if x and y are int?
QUESTION
What is the result of the expression '10 - 2 * 5'?
Tap to flip before you grade
ANSWER
0. Order of operations:
10
−
(
2
×
5
)
=
0
10 - (2 × 5) = 0
10
−
(
2
×
5
)
=
0
.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card