Data Types and Structures Flashcards

1
Q

What are the 6 most common types of variables?

A

Integer, Real/Float/Single, String, Character, Boolean and Array.

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

What is stored in an integer variable?

A

A whole number. (positive or negative)

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

What is stored in a real/float/single variable?

A

A number which has a decimal place. (although whole numbers can also be stored)

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

What is stored in a string variable?

A

Any text.

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

What is stored in a character variable?

A

A single character.

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

What is stored in a boolean variable?

A

One of two options, for example yes or no.

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

What is stored in an array?

A

Lists of variables. These are identified as an array will have a square bracket with a number or loop inside it afterwards as shown.
put it into arrayname[3]

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

What does float stand for?

A

Floating Point Number.

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