OCR GCSE Computer Science Revision Flashcards - 2.1 to 2.5

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/112

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts from OCR GCSE Computer Science Revision Guide (J277) Sections 2.1 Algorithms to 2.5 Programming Languages and Integrated Development Environments

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

113 Terms

1
New cards

A set of instructions, all placed in order, to complete a task.

What is an Algorithm?

2
New cards

Plain English, Pseudocode, Flow Diagram

Name three ways to represent an algorithm

3
New cards

Being able to think logically and critically when solving a problem. Being able to analytically solve a problem.

What is Computational Thinking?

4
New cards

Abstraction, Decomposition, Algorithmic Thinking

List the three thought processes of computational thinking

5
New cards

The process of removing any unnecessary elements to a problem, so you only focus on what is necessary and important.

What is Abstraction?

6
New cards

The process of breaking a large problem down into lots of smaller problems.

What is Decomposition?

7
New cards

The process of building a solution to solve a problem, where each of the stages/instructions are all in order.

What is Algorithmic Thinking?

8
New cards

Used to look for and find a specific piece of data within a data set (multiple pieces of data).

What is a Searching Algorithm?

9
New cards

Binary Search and Linear Search

What are the two searching algorithms?

10
New cards

A search algorithm that locates the midpoint within a data set, removing irrelevant halves until the piece of data is found. Requires the data set to be in order!

What is a Binary Search?

11
New cards

An algorithm that simply goes down the list checking each piece of data in turn until the data is found. The data set does not need to be in order!

What is a Linear Search?

12
New cards

Better for searching through large data sets as it is quicker in locating data.

When is Binary Search Better?

13
New cards

Can be used on any list, whether it is sorted or unsorted and Better for searching through small data sets

When is Linear Search Better?

14
New cards

Used to rearrange/reorder the data within a data set into a specific order (e.g. smallest to largest, alphabetical order etc.)

What is a Sorting Algorithm?

15
New cards

Bubble Sort, Merge Sort, Insertion Sort

What are the three sorting algorithms?

16
New cards

Looks at two pieces of data in turn, rearranging them if needed before moving onto the next two pieces of data. The process is called a pass and is repeated until no pieces of data are moved.

What is a Bubble Sort?

17
New cards

Breaks the data set up into pairs, rearranges those pairs, begins merging those pairs together, and repeats the process until the whole data set is merged back together and rearranged.

What is a Merge Sort?

18
New cards

Creates a temporary list, works through the data set, and places each piece of data into the correct location in the temporary list.

What is an Insertion Sort?

19
New cards

variablename = 3

State the pseudocode command to store an integer variable

20
New cards

variablename = 'string'

State the pseudocode command to store a string variable

21
New cards

CONST variablename = 3

State the pseudocode command to create a constant

22
New cards

str(20)

State the pseudocode command to cast an integer to a string

23
New cards

int(“20”)

State the pseudocode command to cast a string to an integer

24
New cards

variablename = input()

State the pseudocode command to get input from the user

25
New cards

print(“Hello”)

State the pseudocode command to output a string

26
New cards

print(5)

State the pseudocode command to output an integer

27
New cards

if … then, elseif … then, else, endif

State the pseudocode command used to create selection?

28
New cards

while …, endwhile

State the pseudocode commands used to create a while loop

29
New cards

for …, endfor

State the pseudocode commands used to create a for loop

30
New cards

Terminal, Process, Decision, Input/Output, Sub-Routine, Arrow

What shapes are associated with creating a flowchart?

31
New cards

Oval shape, used to start and end the flowchart

What is the Terminal shape and its function?

32
New cards

Rectangle shape, used to show a process (something being calculated)

What is the Process shape and its function?

33
New cards

Diamond shape, used to represent a decision (yes or no)

What is the Decision shape and its function?

34
New cards

Parallelogram shape, used to represent input and output of data

What is the Input/Output shape and its function?

35
New cards

Rectangle with lines down each side, used to represent the call to a sub-routine

What is the Sub-Routine shape and its function?

36
New cards

Used to simulate the execution of an algorithm and looking for any logic errors that may be hiding in the algorithm which is an error that causes the program to work incorrectly.

What is a Trace Table?

37
New cards

Used to store a single piece of data, but the contents can be changed.

What is a Variable?

38
New cards

Used to store a single piece of data, but the data does not change within the program (it remains constant/the same).

What is a Constant?

39
New cards

Used to represent an action e.g. + which represents addition

What is an Operator?

40
New cards

Data which is entered into the computer program

What does Input refer to?

41
New cards

Data which is sent out by the computer program

What does Output refer to?

42
New cards

This is when a value is set/given to a variable

What does Assignment refer to?

43
New cards

A basic programming construct, this is when the code/instructions are all in order, so that one piece of code executes, followed by the next etc.

Expand on Sequence

44
New cards

A basic programming construct, this is when a choice/decision is used within a program, allowing for multiple outcomes dependent on the data that is inputted

Expand on Selection

45
New cards

A basic programming construct, this is when a section of code is repeated.

Expand on Iteration

46
New cards

A type of iteration, where the code is repeated until a certain condition is met. This means the code could execute any number of times, as it relies on the condition being met before stopping.

Expand on Condition Controlled Iteration

47
New cards

A type of iteration, where the code is repeated a specific number of times. This means the code will only execute this number of times before stopping.

Expand on Count Controlled Iteration

48
New cards

A data type which is used when storing alphanumeric characters and symbols.

What is a String?

49
New cards

Refers to when a string is altered or edited to suit the means of the program.

What does String Manipulation refer to?

50
New cards

Refers to when strings are brought together and combined

What does String Concatenation refer to?

51
New cards

Refers to when a string is split at specific points, separating the single string into multiple strings

What does String Splitting refer to?

52
New cards

Used to store data beyond whilst the program is running

What is a Text File?

53
New cards

Used to store large amounts of data beyond whilst the program is running. Offers a more secure way of storing data

What is a Database?

54
New cards

Refers to all data stored about a single data subject within a table and is often seen as a single row within a table.

What does Record refer to in databases?

55
New cards

Refers to the various categories for which data is collected and is often seen as a single column within a table.

What does Field refer to in databases?

56
New cards

The language used to manage, maintain, and query a database.

What is SQL?

57
New cards

Used to determine which fields will be extracted

What does SELECT do in an SQL query?

58
New cards

Used to determine which table the data will be extracted from

What does FROM do in an SQL query?

59
New cards

Used to set the criteria for the query, but is not necessarily needed.

What does WHERE do in an SQL query?

60
New cards

Allows you to store multiple pieces of data in the same location

What is a List?

61
New cards

Stores one piece of data per data subject, identified using a single index

What is a One Dimensional List?

62
New cards

Stores multiple pieces of data per data subject, identified using two indices

What is a Two Dimensional List?

63
New cards

A section of code that is ‘called upon’ within a program when being executed, allowing for the same piece of code to be used without having to repeatedly write it out

What is a Sub-Program?

64
New cards

Data that is passed into a sub-program to be used within the sub-program

What is an Argument?

65
New cards

The variables that are passed into a sub-program to be used within the sub-program

What is a Parameter?

66
New cards

A type of sub-program which is a sequence of instructions which returns a value

What is a Function?

67
New cards

A type of sub-program which is a sequence of instructions which do not return a value

What is a Procedure?

68
New cards

Refers to the way data is stored within a program and determines what type of operations can take place on the data.

What is Data Type?

69
New cards

A data type, used to store whole numbers

What is an Integer?

70
New cards

A data type, used to store a TRUE/FALSE value A data type, used to store numbers that require decimal places

What is a Boolean?

71
New cards

A data type, used to store numbers that require decimal places

What is Real/Float?

72
New cards

A data type, used to store a single character

What is a Character?

73
New cards

Refers to the process of altering a variables data type within a program

What is Casting?

74
New cards

Refers to the various operators used to perform arithmetic calculations within a program (+, -, *, /)

What is an Arithmetic Operator?

75
New cards

Is short for Quotient, and is used to find the whole number of a division

What does DIV mean?

76
New cards

Is short for Modulus, and is used to find the remainder of a division

What does MOD mean?

77
New cards

Refers to the various operators used to perform comparisons on data within a program which provides more focused results (AND, OR, NOT)

What is a Boolean Operator?

78
New cards

A function built into python which allows for random choices to be made, used during random number generation

Expand on Random

79
New cards

The process of ‘cleaning up’ a user’s input so it is in a suitable format ready for processing

What is Input Sanitisation?

80
New cards

The process of checking the user has inputted data in the correct format

What is Validation?

81
New cards

The process of having a ‘back up plan’ in case the original plan fails

What is Contingency Planning?

82
New cards

When a user does not use the program the way it was designed to be used

What does Misuse refer to?

83
New cards

The process of ensuring a user has the rights/permissions to access a program

What is Authentication?

84
New cards

This refers to ensuring the program can be easily updated, improved, and fixed

What does Maintainability refer to?

85
New cards

Used within a program to help briefly identify what a section of code does

What are Comments?

86
New cards

A ‘rule of thumb’ programmers will use when writing in a specific language, following certain rules when naming identifiers such as use of lowercase/uppercase characters, underscores etc.

What are Naming Conventions?

87
New cards

The process of assessing whether a program works correctly and the way it should work, aiming to find ‘bugs’ and rectify them so the program is faultless

What is Testing?

88
New cards

A type of testing that is carried out throughout the development of the program in multiple ‘mini tests’ on sections of code

What is Iterative Testing?

89
New cards

A type of testing takes place once the program has been completed and tests the whole program at the end of its development

What is Final/Terminal Testing?

90
New cards

An error within the code, meaning the code has been incorrectly written and will stop the program from working

What is a Syntax Error?

91
New cards

An error that does not stop the program from working, but stops the program from working the way it should do

What is a Logic Error?

92
New cards

The data that is selected to be used when testing a program What is Normal Data? A type of test data, this data is correct and should be accepted by the program

What is Test Data?

93
New cards

A type of test data, this data is of the correct data type but outside of the requirements set

What is Invalid Data?

94
New cards

A type of test data, this is data that is on the edge of a range specified by the program and therefore should be accepted

What is Boundary Data?

95
New cards

A type of test data, this is data that is of the incorrect data type and therefore should be rejected

What is Erroneous Data?

96
New cards

This is the language of the computer. Binary is used to represent all data within a computer system using 1/0.

What is Binary?

97
New cards

A way we can represent Boolean operations consisting of AND, OR, and NOT

What is Logic Diagram/Gate?

98
New cards

A type of logic gate in which both inputs must be TRUE (ON or 1) for the output to be TRUE (ON or 1)

Expand on the AND Gate

99
New cards

A type of logic gate in which one or both inputs must be TRUE (ON or 1) for the output to be TRUE (ON or 1)

Expand on the OR Gate

100
New cards

A type of logic gate that the output is the opposite of the input

Expand on the NOT Gate