Data Types Flashcards

1
Q

Integer

A

Whole number

Used for values that are counted

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

Floating-Point Number

A

Real number
Decimal point can appear anywhere
Used for things that are measured

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

Floating-Point Literal

A

Number with a fractional part

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

Character

A

Single letter or %

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

String

A

Sequence of characters

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

Boolean

A

Only two possible values

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

Array

A

Ordered list of items (elements) of a given data type

aka Vector

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

Index

A

Each element’s location number in an array

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

Scalar Variable

A

Single-item (non-array) variable

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

Epsilon

A

Difference threshold indicating floating-point numbers are equal
0.0001 is common

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