Shared Flashcard Set

Details

Think Java Chapter 2 Variables & Types
Vocab Words for COP1000
27
Software
Beginner
01/24/2017

Additional Software Flashcards

 


 

Cards

Term
Variable
Definition
A named storage location for values. They all have a type, which is declared when it is created
Term
Value
Definition
A number or string (or other thing to be named later) that can be stored in a variable. Everyone belongs to a type
Term
Type
Definition
A set of values. The ___ of a variable determines which values can be stored there. The ones 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 words 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. they 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.
Term
Strings
Definition
The phrases that appear in quotation marks are called _____ because they are made up of a sequence of characters. They can contain any combination of letters, numbers, punctuation marks, and other special characters.
Term
Newlines and Spaces
Definition
Are useful for organizing your program visually, making it easier to read the program and locate errors
Term
Variables
Definition
One of the most powerful features of a programming language is the ability to manipulate _____
Term
Variable
Definition
To store a value, you have to create a _______.
Term
Storage Location
Definition
When you declare a variable, you create a named ______.
Term
Value
Definition
When you make an assignment to a variable, you give it a ______.
Term
Variable
Definition
As a general rule a ____ has to have the same type as the value you assign it.
Term
put it in quotes
Definition
To print the name of a variable, you have to _____________.
Term
TRUE
Definition
The Syntax for printing a variable is the same regardless of the variable's type? TRUE or FALSE
Term
terminate without displaying the stored output!
Definition
If you omit println, the program may ___________________________.
Term
Down
Definition
Integer division always rounds ______.
Term
Floating-Point
Definition
To get a more accurate answer, we can use a different type of variable, called a __________, that can store fractional values.
Term
Right to Left
Definition
If the operators have the same precedence they are evaluated from ________ to ________.
Term
Compose
Definition
One of the most useful features of programming languages is their ability to tak small building blocks and _________ them
Term
FALSE
Definition
Any expression involving numbers, strings, and variables cannot be used inside a print statement. TRUE or FALSE
Supporting users have an ad free experience!