paper 1 Flashcards
1
Q
What is abstraction?
A
the process of removing unnecessary information
2
Q
What is decomposition?
A
breaking a problem down into smaller sub-problems
3
Q
How do you represent addition in code?
A
+
4
Q
How do you represent subtraction in code?
A
-
5
Q
How do you represent multiplication in code?
A
*
6
Q
How do you represent real division in code?
A
/
7
Q
How do you represent integer division in code?
A
DIV
8
Q
How do you represent remainder in code?
A
MOD
9
Q
What is a real number?
A
decimal
10
Q
What is an integer?
A
whole number
11
Q
What is a character?
A
a single alphanumeric character
12
Q
What is a string?
A
one or more alphanumeric characters
13
Q
What is boolean?
A
true/false
14
Q
Complete bubble sort for these numbers: 27,4,7,12,9
A
27,4,7,12,9 4,27,7,12,9 4,7,27,12,9 4,7,12,27,9 4,7,12,9,27 4,7,12,9,27 4,7,12,9,27 4,7,9,12,27 4,7,9,12,27