paper 2 section 7 Flashcards

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

Trace Tables

A

Used to show what happens to variables during a program

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

Syntax Error

A

An error in the grammar of the program - the code will not run
name=rina
print(name)

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

Merge Sort

A

Splits the data into individuals and then sorts and continuously re-pairs it

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

Logic Error

A

An error where the code runs, but produces an unexpected result/incorrect output
name=”rina”
print(“name”)

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

Linear Search

A

Goes through each number one by one, until the required value is found
Doesn’t need an ordered list, however it’s much slower than binary searching

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

Insertion Sort

A

Takes one piece of data and places it in the correct position in a new list

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

Flowchart Symbols

A

rectangle = square
paralellogram = input/output
diamond = decision
square in square = sub program
circle square = terminal

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

Decomposition

A

Breaking down a complex problem into smaller, manageable parts which are easier to solve.

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

Bubble Sort

A

Go through the array, comparing each number to the one next to it, if it’s bigger swap it.
After the first round the last number is in the right place
Repeat this for the other numbers. Each time reducing the number of comparisons by 1

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

Binary Search

A

Ordered list is halved and depending on the value of the middle item, it will search the lower or higher half of the list
Useful and fast for large lists, but the list has to be ordered for it to work

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

Algorithmic Thinking

A

The consideration that goes into how to solve a problem using one or more algorithms.

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

Abstraction

A

Identifying the key parts of a problem and hiding those that aren’t important so that it becomes easier to solve.

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