2.2.2 Data Types Flashcards

1
Q

Integer code

A

int

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

Real code

A

real

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

What is the real data type also known as

A

Float

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

Boolean code

A

bool

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

Character code

A

char

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

String code

A

str

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

Integer data type

A

Whole number

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

Real data type

A

Numbers with a decimal part

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

What data type is 100.0

A

Real

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

Boolean data type

A

Can only take one of two values (normally true or false)

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

Character data type

A

A single letter, number or symbol

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

String

A

A collection of characters

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

Which data types need “”

A

Characters and strings

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

Casting

A

A function that lets you manually convert the data type

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

Code for casting

A

datatype()
e.g. int(1)

17
Q

How to convert a character into its ASCII number

A

ASC(the letter)
e.g. ASC(b)

18
Q

How to convert an ASCII number to its character

A

CHR(number)
e.g. CHR(98)