Developing Algorithms
AP Computer Science Principles · Flashcards · Application
AP COMPUTER SCIENCE PRINCIPLES · FLASHCARDS
Card 1
of 2
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Find the result of the algorithm: Input: 3, Output:
x
2
x^2
x
2
.
QUESTION
Find the output of the algorithm: Input: 4, Output:
x
3
x^3
x
3
.
QUESTION
Find the result of the algorithm: Input: 3, Output:
x
2
x^2
x
2
.
Tap to flip before you grade
ANSWER
9. Substituting
x
=
3
x=3
x
=
3
into
x
2
x^2
x
2
gives
3
2
=
9
3^2 = 9
3
2
=
9
.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card