paper 1 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is abstraction?

A

the process of removing unnecessary information

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

What is decomposition?

A

breaking a problem down into smaller sub-problems

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

How do you represent addition in code?

A

+

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

How do you represent subtraction in code?

A

-

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

How do you represent multiplication in code?

A

*

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

How do you represent real division in code?

A

/

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

How do you represent integer division in code?

A

DIV

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

How do you represent remainder in code?

A

MOD

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

What is a real number?

A

decimal

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

What is an integer?

A

whole number

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

What is a character?

A

a single alphanumeric character

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

What is a string?

A

one or more alphanumeric characters

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

What is boolean?

A

true/false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly