Shared Flashcard Set

Details

Think Java: Chapter 2
Variables and Types
12
Computer Science
11th Grade
09/12/2012

Additional Computer Science Flashcards

 


 

Cards

Term
variable
Definition
A named storage location for values. All variables have a type, which is declared when the variable is created
Term
value
Definition
A number or string (or other thing to be named later) that can be stored in a variable. Every value belongs to a type
Term
type
Definition
A set of values. The type of a variable determines which values can be stored there. The types we have seen are integers (int in Java) and strings (String in Java)
Term
keyword
Definition
A reserved word used by the compiler to parse programs. You cannot use keywords, like public, class and void as variable names
Term
declaration
Definition
A statement that creates a new variable and determines its type
Term
assignment
Definition
A statement that assigns a value to a variable
Term
expression
Definition
A combination of variables, operators and values that represents a single value. Expressions also have types, as determined by their operators and operands
Term
operator
Definition
A symbol that represents a computation like addition, multiplication or string concatenation
Term
operand
Definition
One of the values on which an operator operates
Term
precedence
Definition
The order in which operations are evaluated
Term
concatenate
Definition
To join two operands end-to-end
Term
composition
Definition
The ability to combine simple expressions and statements into compound statements and expressions to represent complex computations concisely
Supporting users have an ad free experience!