Data Types Flashcards

1
Q

Variables

A

A named space in memory, large enough to store a single piece of data. Each variable has a data type

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

Constant

A

A named space in memory with a value that can never change while the program is running. Useful for pi or VAT.
The python language does not allow for constants but some other languages do

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

Data type examples

A

Boolean, character, integer, real, string

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

Boolean

A

Can either be true or false

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

Character

A

A single letter, punctuation mark, space, number, etc.

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

Integer

A

Whole numbers (positive , negative, zero)

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

Real

A

Decimal numbers (positive or negative, can be zero)

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

String

A

Collection of characters

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

Declaratiob

A

Code thar causes a variable to exist. Once a variable has been declared, it can be used. Trying to use a variable before it has been declared will cause as error

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

Assignment

A

The process of putting a value into a variable. Most languages use a single equals = to do this.

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