AP Computer Science Principles Flashcards: Variables And Assignments

Study Variables And Assignments in AP Computer Science Principles with focused flashcards that help you recognize the idea, recall the key rule, and apply it in practice-style prompts.

QUESTION

What is the result of the expression '10 - 2 * 5'?

Tap card or press Space to flip

ANSWER
  1. Order of operations: 10(2×5)=010 - (2 × 5) = 0.

1 / 35

AP Computer Science Principles: Algorithms and Programming

All flashcards

35 cards

What this deck covers

This deck focuses on Variables And Assignments, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science Principles.

How to use these flashcards

Work through these flashcards in short sessions. Try to answer each prompt before flipping the card, then revisit any cards you miss until the explanation feels automatic.

Practice questions

1 of 19Practice questions for this set
A bank account applies a bonus rule. Which statement correctly describes the final state of variable balance?
balance <- 80         // starting balance
deposit <- 20         // deposit amount
balance <- balance + deposit     // after deposit
balance <- balance - 10          // monthly fee
balance <- balance + deposit     // deposit repeated
balance <- balance + 5           // small bonus
Choose an answer

Keep your progress across every deck

Free account · cards you mark are saved to it