OCR GCSE CS Paper 2

5.0(1)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/39

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

40 Terms

1
New cards

Abstraction

Simplifying a problem by ignoring unnecessary information

2
New cards

What is decomposition

Breaking a problem down into smaller tasks so that it is easier to solve

3
New cards

What is alogithmic thinking

Following logical steps to solve a problem

4
New cards
<p>What does this do in a flowchart</p>

What does this do in a flowchart

Start/stop terminator

5
New cards
<p>What does this do in a flowchart</p>

What does this do in a flowchart

Process

6
New cards
<p>What does this do in a flowchart</p>

What does this do in a flowchart

Decision (if statement)

7
New cards
<p>What does this do in a flowchart</p>

What does this do in a flowchart

Input/Output

8
New cards

What does this do in a flowchart

Subroutine

<p>Subroutine</p>
9
New cards

What is an algorithm

A set of instructions in a logical sequence used to solve a problem

10
New cards

How does binary search work

Selects the midpoint of the list, compares to the value, removes part of the list depending on whether the data was higher or lower

11
New cards

How does merge sort work

‘Divide and conquer’, divides a list in half over and over until everything is separate, then everything is merged together again in order

12
New cards

How does bubble sort work

Repeated passes through the data set, swapping items if they are not in the correct order.

Stops when a pass occurs with no changes made

13
New cards

How does insertion sort work

Starting from the first value, compare a value to everything before it and move it into the correct position

<p>Starting from the first value, compare a value to everything before it and move it into the correct position</p>
14
New cards

Advantages of local variables

Saves memory, easier to debug, subroutines using them can be reused

15
New cards

Advantages of global variables

Variables can be used anywhere, can be used for constants

16
New cards

What does // do

Integer division - shows the ‘whole number of times’ a number goes into another

15 // 6 = 2

17
New cards

What does % do

Modulo division - shows remainder

15 % 6 = 3

18
New cards

What is the word for datatype conversion

Casting

19
New cards

In a 2D array table, what is the order to read it?

Row then column

<p>Row then column</p>
20
New cards

What is the basic SQL structure

SELECT FROM WHERE

21
New cards

What is an example of a wildcard in SQL

*

22
New cards

What are the things to consider to ensure a program is secure and robust

Anticipating misuse

Input sanitisation

Validation

Verification

Authentication

Maintainable code

23
New cards

What are the types of input validation

Range check

Type check

Format check

Presence check

Lookup table to limit inputs

Length check

24
New cards

What makes programs maintainable

Subroutines

Indentation

Naming conventions

Comments

Constants

25
New cards

Types of testing

Iterative testing

Final testing

26
New cards

Four types of test data

Normal data

Boundary data

Invalid data

Erroneous data

27
New cards

Why do programmers use high level languages

Easier readability as closer to human language

Faster development

Portability across different platforms

28
New cards

What are low level languages for

Speed or direct interaction with hardware e.g. drivers

29
New cards

Two types of low-level language

Machine code, Assembly language

30
New cards

What is machine code

0111001001010101010010101010010010100101001

31
New cards

What does a translator do

Changes a program to another language, usually machine code

32
New cards

Interpreter

Converts high level language one line at a time and executes it

33
New cards

Compiler

Converts high level language at once for execution at a later date

34
New cards

Interpreter vs compiler complexity

Interpreters are smaller, simpler programs

35
New cards

Interpreter vs compiler execution speed

Interpreters must translate every time, compilers create more efficient code making the programs run faster

36
New cards

Interpreter vs compiler error reporting

Compiler analyses the entire program and records location of errors in an error file

Interpreter stops the program from running when it reaches an error

37
New cards

Interpreter vs compiler repetition

Compilers must recompile whenever a change is made, however does not have to recompile whenever the program is run

Interpreters have to translate every time they are run even without changes

38
New cards

IDE features

Editor

Translators

Break point

Variable watch

Trace

Error diagnostics and debugger

39
New cards

Editor purpose

Editing cos

40
New cards

Low level language definition

A language close to the computer’s instruction set