Mr Hylton J277 Unit 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 / 89

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

90 Terms

1

Abstraction

Removing the irrelevant details to simplify a tasks

New cards
2

Decomposition

Breaking a task down to a series of smaller tasks

New cards
3

Algorithmic Thinking

The process of solving problems using a series of steps.

New cards
4

Binary Search

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

New cards
5

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

New cards
6

Bubble Sort

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

New cards
7

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

New cards
8

Insertion Sort

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

New cards
9

Line

Connects the objects

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

Process

Performs calculations, assigns and sets variables

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

Sub-program

Used to call or define a subprogram

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

Input/output

Used to take data in, print or return data

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

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>
New cards
14

Terminal

Start/Stop

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

Pseudocode

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

New cards
16

Flowchart

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

New cards
17

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>
New cards
18

Translator

Converts high level code to low level, machine code

New cards
19

Interpreter

Converts line by line. Does not create output code

New cards
20

Assembler

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

New cards
21

Compiler

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

New cards
22

high-level language

A programming language like Python that resembles natural language

New cards
23

low-level language

A programming language that is in machine code

New cards
24

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.

New cards
25

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.

New cards
26

Editor

Somewhere to edit, create or write code

New cards
27

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

New cards
28

Run time environment

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

New cards
29

Translator

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

New cards
30

Features of an IDE

1) Editor

2) Error diagnostics

3) Run time environment

4) Translators

New cards
31

AND - Conjunction gate

Both inputs must be positive for a positive outcome

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

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>
New cards
33

NOT - Negation gate

Outputs the opposite of the input

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

Anticipating misuse

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

New cards
35

Authentication

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

New cards
36

Comments

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

New cards
37

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

New cards
38

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.

New cards
39

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

New cards
40

Iterative Testing

This is testing the code as you create it

New cards
41

Final testing

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

New cards
42

Testing

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

New cards
43

Test data

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

New cards
44

Normal data

Test data that should be accepted

New cards
45

Erroneous data

Test data that should not be accepted

New cards
46

Boundary data

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

New cards
47

Erroneous/Invalid test

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

New cards
48

Syntax Error

An error in the code which means the code cannot run

New cards
49

logical error

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

New cards
50

Sequence

Putting instructions in order to complete a task

New cards
51

Selection

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

New cards
52

Iteration

when code is executed repeatedly

New cards
53

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

New cards
54

Condition Controlled Iteration

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

New cards
55

AND - Conjunction

^ Gives a positive output when both inputs are positive

New cards
56

OR - Disjunction

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

New cards
57

NOT - Negation

¬ Outputs the opposite of the input

New cards
58

==

Equal to

New cards
59

!=

Not equal to

New cards
60

Less than or equal to

New cards
61

<

Less than

New cards
62

>=

Greater than or equal to

New cards
63

-

Subtraction

New cards
64

*

Multiplication

New cards
65

+

Addition

New cards
66

MOD Modulus

Returns the remainder

New cards
67

/

Division

New cards
68

DIV/Quotient

Returns only the integer of the division

New cards
69

^ Exponentiation

(to the power)

New cards
70

Integer

Data Type- Whole number

New cards
71

Real

Data Type- Decimal

New cards
72

Boolean

Data Type- True or False

New cards
73

Character

Data Type- A single keyboard character

New cards
74

String

Data Type- Several characters together

New cards
75

Open text file

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

New cards
76

Read text file

New Variable= TextVariable.READ()

New cards
77

Write to a text file

TextVariable.Write(Text or variable)

New cards
78

Close text file

TextVariable.close()

New cards
79

record

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

New cards
80

SQL

Language for managing databases by typing commands.

New cards
81

*

Wild card used in databases. Means all

New cards
82

SELECT

SQL- States which fields to include

New cards
83

FROM

SQL- States which tables to get fields from

New cards
84

WHERE

SQL- Search criteria for SQL

New cards
85

Array

A variable that stores multiple items

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

print (variable name[0])

New cards
86

Variable

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

New cards
87

Constant

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

New cards
88

Functions/procedure/Sub programme/Subroutine

Re callable code written to perform a function

New cards
89

2D Array

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

print(variable name[0,2]

New cards
90

Random number generation

import random

number=randbetween(0,10

New cards
robot