What is a variable?
A variable is a named reference to a value, allowing a program to store information and use it later.
Study 02. Variables, Data Types, and Input–Output with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.
What is a variable?
A variable is a named reference to a value, allowing a program to store information and use it later.
What naming convention uses underscores between words?
snake_case separates words with underscores, as in maximum_speed.
What rules apply to Python identifiers?
Python identifiers may contain letters, digits, and underscores, but cannot begin with a digit, use reserved keywords, or ignore case differences.
Which Python operator performs assignment?
The single equals sign (`=`) assigns the evaluated result on the right to the name on the left.
Which operator tests equality in Python?
The double equals operator (`==`) compares values and asks whether they are equal; it does not assign a value.
How does Python conventionally represent constants?
Python does not enforce constants directly. Programmers conventionally use uppercase names, such as DAYS_PER_WEEK, for values that should not change.
Which Python type represents whole numbers?
`int` represents an integer, or whole number, such as -4, 0, or 27.
Which Python type represents True or False?
`bool` represents a Boolean logical value: `True` or `False`.
What does a data type determine?
A data type describes the kind of value stored and the operations that can be performed on it.
Which function converts a value to an integer?
`int()` converts a value to an integer when possible, such as `int("42")`, which produces 42.
What type does Python input() return?
Python’s `input()` function returns the user’s entry as a string, even when the entry consists of digits.
What does Python’s print() function do?
`print()` writes values to standard output, such as the screen. It can display one or several values.
A practical review of the integrated Java skills, debugging habits, algorithm reasoning, and free-response strategies needed for AP Computer Science A.
A progressive guide to designing, operating, and testing systems that continue useful service despite component faults, overload, data loss, and recovery challenges.
A medium-difficulty quiz on how independently operated networks, protocols, addresses, naming systems, transport services, and routing mechanisms work together to form the Internet.
Learn how to create, modify, traverse, and analyze Java lists with ArrayList, wrapper types, standard algorithms, and the Collections utility class for AP Computer Science A.
Build a clear understanding of Java Boolean expressions, logical operators, selection statements, nested branching, equivalent logic, and systematic code tracing for AP Computer Science A.
A practical introduction to Java program structure, data types, operators, input and output, problem-solving strategy, testing, and debugging for AP Computer Science A.
A practical guide to Java inheritance, constructor chaining, method overriding, polymorphism, access control, and object behavior for tracing and writing AP Computer Science A programs.
A focused guide to Java classes, object references, constructors, methods, strings, wrapper classes, and API usage for AP Computer Science A.
A focused guide to Java primitive types, expression evaluation, numeric conversion, floating-point behavior, integer overflow, and common methods in the Math class for AP Computer Science A.
A focused review of Java primitive types, expression evaluation, numeric conversion, arithmetic behavior, Math methods, randomness, and tracing techniques for AP Computer Science A.
A progressive guide to how packet-switched networks encapsulate data, move it across links, and manage delay, throughput, queues, and congestion.
A structured guide to designing parallel and distributed systems through decomposition, communication, coordination, state management, scalability, and fault tolerance.