Mr Hylton J277 Unit 2

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

1/89

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

90 Terms

1
New cards

Abstraction

Removing the irrelevant details to simplify a tasks

2
New cards

Decomposition

Breaking a task down to a series of smaller tasks

3
New cards

Algorithmic Thinking

The process of solving problems using a series of steps.

4
New cards

Binary Search

An ordered list is divided in 2 with each comparison. The list must be sorted before

5
New cards

Linear Search

Starting at the beginning of the data set, each item of data is examined until a match is made or the end of the list is reached

6
New cards

Bubble Sort

Moving through a list repeatedly, comparing elements and swapping elements that are in the wrong order.

7
New cards

Merge Sort

Breaking your list down in to pairs, putting the pairs in order and then merging them together, each time, putting them in order

8
New cards

Insertion Sort

Each items is take in turn, compare to the items in a sorted list and placed in the correct position.

9
New cards

Line

Connects the objects

<p>Connects the objects</p>
10
New cards

Process

Performs calculations, assigns and sets variables

<p>Performs calculations, assigns and sets variables</p>
11
New cards

Sub-program

Used to call or define a subprogram

<p>Used to call or define a subprogram</p>
12
New cards

Input/output

Used to take data in, print or return data

<p>Used to take data in, print or return data</p>
13
New cards

Decision

Used for if a decision needs to be make:

If or Loop

<p>Used for if a decision needs to be make:</p><p>If or Loop</p>
14
New cards

Terminal

Start/Stop

<p>Start/Stop</p>
15
New cards

Pseudocode

An outline of the basic ideas behind how algorithms will work.

16
New cards

Flowchart

A diagram that shows step-by-step progression through a procedure or system especially using connecting lines and a set of conventional symbols.

17
New cards

Structure Diagram

A diagram used to display a decomposed problem. Each node becomes a sub program

<p>A diagram used to display a decomposed problem. Each node becomes a sub program</p>
18
New cards

Translator

Converts high level code to low level, machine code

19
New cards

Interpreter

Converts line by line. Does not create output code

20
New cards

Assembler

A program that translates an assembly-language program (e.g little man computer) into machine code. Uses an assembly table

21
New cards

Compiler

A program that translates code in a high-level language (such as Java) to machine code. Creates object code. E.g .exe file

22
New cards

high-level language

A programming language like Python that resembles natural language

23
New cards

low-level language

A programming language that is in machine code

24
New cards

Assembly Language

Programming language that has the same structure and set of commands as machine languages (mnemonics) but allows programmers to use symbolic representations of numeric machine code.

25
New cards

Integrated Development Environment (IDE)

Provides a developer with a way to create a program, run the program, and debug the program all within one application.

26
New cards

Editor

Somewhere to edit, create or write code

27
New cards

Error Diagnostics (/Debugging Tools)

Help find and fix errors in a program by telling the location of the errors and often suggests how to fix it

28
New cards

Run time environment

A feature of an IDE that allows you to run your code

29
New cards

Translator

A feature of an IDE that allows you code to be converted to a low level language

30
New cards

Features of an IDE

1) Editor

2) Error diagnostics

3) Run time environment

4) Translators

31
New cards

AND - Conjunction gate

Both inputs must be positive for a positive outcome

<p>Both inputs must be positive for a positive outcome</p>
32
New cards

OR - Disjunction gate

At least one input must be positive for a positive outcome

<p>At least one input must be positive for a positive outcome</p>
33
New cards

NOT - Negation gate

Outputs the opposite of the input

<p>Outputs the opposite of the input</p>
34
New cards

Anticipating misuse

Expecting people to not use your program as intended. This could be malicious or not

35
New cards

Authentication

A method for confirming users' identities. E.g username and password

36
New cards

Comments

Adding notes to your code so that it is easier to maintain in the future and so that others can understand it.

37
New cards

indentation

Indenting/ tabbing your code in to show which part of a code if ran in which section. E.g If and loops in Python

38
New cards

Input Validation

Ensuring data input by the user meets specific criteria before processing. Range check. E.g. between 1 and 31. Type check. E.g. number not symbol. Presence check. E.g. data has been input. Format check. E.g. postcode is LLN(N) NLL.

39
New cards

Naming conventions

Making sure that all variable names and sub programme names are written in a specific forma. e.g all lowercase, all begin with var, so that others programmers can understand

40
New cards

Iterative Testing

This is testing the code as you create it

41
New cards

Final testing

Testing that is applied to what is believed to be the finished system

42
New cards

Testing

What is done to find errors with a programme or, check that it works

43
New cards

Test data

What you use to test a programme. E.g using 10 to check a year group field

44
New cards

Normal data

Test data that should be accepted

45
New cards

Erroneous data

Test data that should not be accepted

46
New cards

Boundary data

Testing the extremes of a range. E.g year group could be 7 and 13

47
New cards

Erroneous/Invalid test

Tests that should result in some sort of rejection. You do this to make sure invalid data is not accepted

48
New cards

Syntax Error

An error in the code which means the code cannot run

49
New cards

logical error

An error in the code which leads to an unexpected output. The code still runs

50
New cards

Sequence

Putting instructions in order to complete a task

51
New cards

Selection

Making a decision based on a test. e.g an IF

52
New cards

Iteration

when code is executed repeatedly

53
New cards

Count Controlled Iteration

A loop that uses a counter (typically the letter "I" in programming) to keep track of how many times the algorithm has iterated. E.g For Loop

54
New cards

Condition Controlled Iteration

A loop that will continue to iteration through an algorithm until a condition has been met. For example a While Loop

55
New cards

AND - Conjunction

^ Gives a positive output when both inputs are positive

56
New cards

OR - Disjunction

V Gives a positive output when at least 1 input is positive

57
New cards

NOT - Negation

¬ Outputs the opposite of the input

58
New cards

==

Equal to

59
New cards

!=

Not equal to

60
New cards

Less than or equal to

61
New cards

<

Less than

62
New cards

>=

Greater than or equal to

63
New cards

-

Subtraction

64
New cards

*

Multiplication

65
New cards

+

Addition

66
New cards

MOD Modulus

Returns the remainder

67
New cards

/

Division

68
New cards

DIV/Quotient

Returns only the integer of the division

69
New cards

^ Exponentiation

(to the power)

70
New cards

Integer

Data Type- Whole number

71
New cards

Real

Data Type- Decimal

72
New cards

Boolean

Data Type- True or False

73
New cards

Character

Data Type- A single keyboard character

74
New cards

String

Data Type- Several characters together

75
New cards

Open text file

variable=open("Text file name","open mode")

76
New cards

Read text file

New Variable= TextVariable.READ()

77
New cards

Write to a text file

TextVariable.Write(Text or variable)

78
New cards

Close text file

TextVariable.close()

79
New cards

record

A collection of arrays that appear as a row in a database or table.

80
New cards

SQL

Language for managing databases by typing commands.

81
New cards

*

Wild card used in databases. Means all

82
New cards

SELECT

SQL- States which fields to include

83
New cards

FROM

SQL- States which tables to get fields from

84
New cards

WHERE

SQL- Search criteria for SQL

85
New cards

Array

A variable that stores multiple items

variable name=[item 1,item 3,item 3]

print (variable name[0])

86
New cards

Variable

A labelled area of memory, that can be changed by the program

87
New cards

Constant

A labelled area of memory, that cannot be changed by the program

88
New cards

Functions/procedure/Sub programme/Subroutine

Re callable code written to perform a function

89
New cards

2D Array

variable name=[item 1,item 3,item 3],[item 1,item 3,item 3]

print(variable name[0,2]

90
New cards

Random number generation

import random

number=randbetween(0,10