data types Flashcards

1
Q

BOOLEAN - OR gate

A

round triangle
2 inputs
1 output

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

BOOLEAN - AND gate

A

semi-circle
2 inputs
1 output

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

BOOLEAN - NOT gate

A

triangle with mini circle
1 input
1 output

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

logic statement

A

P = A (and/or) B

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

logic statement NOT gate

A

P = NOT A

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

integar

A

whole number, eg: 156

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

float/real

A

number with a fractional part, eg: 2.47

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

char

A

single ascii character,
eg: A
eg: 3
eg: !

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

string

A

zero or more characters
eg: hello

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

boolean

A

true or false
AND
OR
NOT

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

casting

A

changing between data types

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

s.length

A

finds length of s

eg:
word = cat
length = len(word)
print length
= 3

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

s.upper

A

gives uppercase of s

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

s.lower

A

gives lowercase of s

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