Data Types Flashcards

0
Q

Why do we identify some standard types?

A

So that a program can reserve appropriate locations for the data.

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

What is a variable?

A

A named location where we can store data.

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

What is an integer?

A

Whole number values: positive or negative.

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

What is a real?

A

Decimal values.

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

What is a boolean?

A

It stores two values: true or false, on or off etc.

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

What is a string?

A

Stores a string of characters.

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

What are declarations?

A

Things are declared by giving them a name and a type.

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