Developing Algorithms
AP Computer Science Principles · Flashcards
AP COMPUTER SCIENCE PRINCIPLES · FLASHCARDS
Card 1
of 40
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
What does the acronym LIFO stand for in data structures?
QUESTION
Which data structure is used in a breadth-first search algorithm?
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