Unit 2 Vocabulary Flashcards

1
Q

Any text that is enclosed in double quotes

A

String literal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A data type that uses a small amount of memory to represent a single item of data

A

Primitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A data type that stores a whole number, positive or negative, or zero

A

int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A data type that stores a positive or negative number including floating-point values

A

double

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A data type that stores either true or false

A

boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Java keyword used to indicate that the value of the variable cannot be changed once it is initialized

A

final

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A special kind of integer division that returns the remainder instead of the quotient

A

Modulus division

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Represented by the = symbol, takes the result of the expression on the right and assigns it to the variable on the left

A

Assignment operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Occurs when an expression evaluates to an int value outside of the allowed range

A

Integer overflow error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The formal implementation, or blueprint, of the attributes and behaviors of an object that the objects of its type support

A

Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A specific instance of a class with defined attributes

A

Object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The data of an object that will constitute the state of an object

A

Attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Defines the behavior of an object that is performed on an object’s data

A

Method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The act of creating an object of a class for use in a program

A

Instantiation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A specific realization of an object

A

Instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Java reserved word that is used to create an object

A

new

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

A value that is passed into a constructor or other method to provide the data for the object’s initial state

A

Parameter

18
Q

A special method of a class that initializes an object of that type

A

Constructor

19
Q

Name of a method including the order and type of parameters

A

Signature

20
Q

Parameter listed in the header of a method

A

Formal parameter

21
Q

The value passed into a method

A

Actual parameter

22
Q

An address that indicates where an object’s variables and methods are stored

A

Object reference

23
Q

A special value used to indicate that a reference is not associated with any object

A

null

24
Q

Allows a programmer to use a method by knowing what the method does even if they do not know how the method was written

A

Procedural abstraction

25
Q

Methods that execute code but do not return a value and are not called as part of an expression

A

Void method

26
Q

Methods that execute code and then return a single value to the calling program and are part of an expression

A

Non-void method

27
Q

Also called class methods. Invoked by either just using the method name or using the class identifier, the dot notation, and then the method name.

A

Non-static method

28
Q

Used to represent primitive data types as objects

A

Wrapper classes

29
Q

The automatic conversion the Java compiler makes between primitive types and their corresponding wrapper classes, int to Integer, double to Double

A

Autoboxing

30
Q

The automatic conversion the Java compiler makes from the wrapper class to the primitive type, Integer to int, Double to double

A

Unboxing

31
Q

An expression that evaluates to either true or false

A

Boolean expression

32
Q

A logical operator in which both conditions must be true for the resulting expression to evaluate to true

A

AND

33
Q

A logical operator in which if one condition is true, then the resulting expression evaluates to true

A

OR

34
Q

A logical operator that evaluates to the opposite of the expression

A

NOT

35
Q

Occurs when Java will not evaluate the second term if the first term is sufficient to determine the truth value of the entire expression

A

Short-circuited evaluation

36
Q

A law that says: NOT(A AND B) is equivalent to NOT A OR NOT B and NOT(A OR B) is equivalent to NOT A AND NOT B

A

DeMorgan’s Law

37
Q

Interrupt the sequential execution of statements

A

Conditional/Selection statements

38
Q

Use Boolean logic to decide whether to execute other programming statements. The Boolean expression must be evaluated to be true for the statement to execute.

A

If statements-one-way-selection

39
Q

Allow the programmer to create a two-way decision tree based on the evaluation of a conditional statement

A

If-else two-way selection

40
Q

Allows the programmer to set up a chain of conditionals that only produce one result

A

If-else-if multi-way selection

41
Q

Used to create multi-way selection statements

A

Nested if statements

42
Q

Two object references that both reference the same object

A

Aliases