gcse computer science paper 2

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 26

flashcard set

Earn XP

27 Terms

1

Ask user for an integer input

int(input()

New cards
2

When would you use a while loop?

When it is not known how many times iteration will occur.

New cards
3

while loop which will add 1 onto 0 until it reaches 8

number = 0 
while number != 8:
number = number + 1
print ("The number is",number)

New cards
4

while loop

condition controlled

New cards
5

for loop

count controlled

New cards
6

count controlled meaning

you specify the number of times that you wish the iteration to be repeated

New cards
7

for loop, repeat 10 times until it reaches 5

for i in range(10):
if i == 5:
break
print(i)

New cards
8

MOD definition (%)

calculates the remainder of a division

New cards
9

iteration

The repetition of a block of statements within a computer program.

New cards
10

selection

the process of making a decision which result will decide which path it takes next

New cards
11

sequence

a set of instructions that follow on one from another

New cards
12

nesting

one programming construct within another

New cards
13

start/end

knowt flashcard image
New cards
14

process

<p></p>
New cards
15

input/output

knowt flashcard image
New cards
16

if

knowt flashcard image
New cards
17

flow

knowt flashcard image
New cards
18

Abstraction

Removing the unnecessary parts of a problem so that you only focus on the important parts

New cards
19

Decomposition

Breaking a complex problem down into smaller problems so that it is more manageable/easier to solve

New cards
20

Binary Search

A type of searching algorithm. In order to use a binary search the data set must be in order.

New cards
21

Linear Search

A type of searching algorithm. The data set does not need to be in order when using a linear search.

New cards
22

Sorting Algorithm

A type of algorithm used to sort a data set into a specific order

New cards
23

Bubble Sort

A type of algorithm used to sort a data set into a specific order. The data set is passed through, and two pieces of data are looked at in turn. The process does not stop until a pass is completed without moving any data.

New cards
24

Merge Sort

A type of algorithm used to sort a data set into a specific order. The data set it broken up into pairs. Each pair is reorganised in turn. Pairs are then merged together and reorganised. This process is repeated until the whole data set is merged and reorganised

New cards
25

Insertion Sort

A type of algorithm used to sort a data set into a specific order. A new, temporary list is created, and each piece of data is placed into the correct place in the new list.

New cards
26

Trace Table

Used to test an algorithm for logic errors by simulating the flow of execution.

New cards
27
New cards
robot