data types Flashcards
1
Q
BOOLEAN - OR gate
A
round triangle
2 inputs
1 output
2
Q
BOOLEAN - AND gate
A
semi-circle
2 inputs
1 output
3
Q
BOOLEAN - NOT gate
A
triangle with mini circle
1 input
1 output
4
Q
logic statement
A
P = A (and/or) B
5
Q
logic statement NOT gate
A
P = NOT A
6
Q
integar
A
whole number, eg: 156
7
Q
float/real
A
number with a fractional part, eg: 2.47
8
Q
char
A
single ascii character,
eg: A
eg: 3
eg: !
9
Q
string
A
zero or more characters
eg: hello
10
Q
boolean
A
true or false
AND
OR
NOT
11
Q
casting
A
changing between data types
12
Q
s.length
A
finds length of s
eg:
word = cat
length = len(word)
print length
= 3
13
Q
s.upper
A
gives uppercase of s
14
Q
s.lower
A
gives lowercase of s