Lesson 2 - Using Data Flashcards

1
Q

Constant

A

Value can’t be changed while program is running

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

Literal constant

A

Value taken literally at each use

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

Numeric constant

A

Opposite of character/string constant

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

Unnamed constant

A

No identifier associated with it

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

Variable

A

Named meme pry location that can store a value

Can hold only one value at a time

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

Data type

A

Describes the type of data that can be stored, how much memory it occupies, and what types of operations can be performed on the data.

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

Primitive type

A

Simple data type

Uncomplicated

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

Reference types

A

Hold memory addresses

Built from primitive types of data

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

Variable declaration

A

Statement that reserves a named memory location and includes

A data type that identifies the type of data that the variable will store

And identifier that is the variables name

An optional assignment operator and assigned value

A semicolon

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

Strongly typed language

A

A language in which each variable has a well defined data type that limits the operations you can perform on it

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

Camel casing

A

Beginning something with identifier and having subsequent words capitalized

Ex.
initialValue

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

Assignment operator

A

=

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

Initialization

A

An assignment made when a variable is declared

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

Assignment

A

Assignment made to variable after initial initialization

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

Associativity

A

The order in which values are used with operators

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

Ivalue

A

An item that can appear on left side of value

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

rvalue

A

An item that can appear on right side of value

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

Uninitialized variable

A

Declaring a variable within method but not assigning value to it

Ex.

int Age;

Instead of

int Age=25;

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

Garbage value

A

An unknown value in an uninitialized variable

20
Q

Named constant

A

Also known as symbolic constant
A variable whose content does not change

The data type is final

An ply be assigned once and cannot be changed

Identifiers are all uppercase, with underscores separating words

21
Q

Blank final

A

Named constant that is not initialized

22
Q

Magic number

A

A value that does not have an immediate intuitive meaning or a number that cannot be explained without additional knowledge

23
Q

Scope

A

Area in which a satay type is visible to the program and can be referred back to

24
Q

Block of code

A

Code between curly braces

25
null
empty
26
integer
whole number without decimals, int is its data type
27
lossy conversion
a conversion in which data is lost
28
boolean variable
a variable that can only hold two values: true or false
29
relation operator
compares two items, also known as comparison operator
30
less than
31
>
greater than
32
==
Equal to
33
<=
less than or equal to
34
>=
greater than or equal to
35
!=
not equal to
36
null
empty
37
integer
whole number without decimals, int is its data type
38
lossy conversion
a conversion in which data is lost
39
boolean variable
a variable that can only hold two values: true or false
40
relation operator
compares two items, also known as comparison operator
41
less than
42
>
greater than
43
==
Equal to
44
<=
less than or equal to
45
>=
greater than or equal to
46
!=
not equal to