Key Definitions - 2.2 Flashcards

1
Q

Variable -

A

Used within a computer program to store a single piece of data. The contents can be changed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Constant

A

Used within a computer program to store a single piece of data. The data does not change within the program (it remains constant)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Operator

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Input

A

Data entered into a computer program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Output

A

Data sent out by the computer program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Assignment

A

When a value is set/given to a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Sequence -

A

When the code/instructions are all in order so that one piece of code executes followed by the next etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Selection -

A
  • when a choice/decision is used within a program, allowing for multiple outcomes dependent on the data that is inputted.

E.g if, else

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Iteration

A
  • When a section of code is repeated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Condition Controlled Iteration

A

This is 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Count Controlled Iteration

A

This is 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

String

A

A data type which is used when storing alphanumeric characters and symbols. E.g. letters, numbers, #?!- etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

String Manipulation

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

String Concentation

A

Refers to when strings are brought together and combined.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

String Splitting

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Text File

A

Used to store data whilst the program is running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Database -

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Record

A

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

19
Q

Field

A

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

20
Q

SQL

A

Structured Query Language - the language used to manage, maintain and query a database.

21
Q

SQL Query

A

Written to extract data from within a database.

22
Q

SELECT

A

An element of a SQL query. Used to determine which field will be extracted.

23
Q

FROM

A

An element of a SQL query. Used to determine which table the data will be extracted from.

24
Q

WHERE -

A

An element of an SQL query. Used to set the criteria for the query. This element may not always come up in a question.

25
Q

List

A

Used within a program. Allows you to store multiple pieces of data in the same location.

26
Q

One Dimensional List

A

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

27
Q

Two Dimensional List

A

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

28
Q

Sub-Program

A

Used within a computer program. It is a section of code that is ‘called upon’ within a program when being executed. It allows for the same piece of code to be used without having to repeatedly write it out.

29
Q

Argument

A

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

30
Q

Parameter

A

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

31
Q

Function

A

A type of sub-program. A function is a sequence of instructions which return a value.

32
Q

Procedure

A

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

33
Q

Data Type -

A

Refers to the way data is stored within a program. The data type determines what type of operations can take place on the data. There are 5 main data types (string, integer, Boolean, real/float, character)

34
Q

Integer

A

A data type, used to store whole numbers.

35
Q

Boolean

A

A data type, used to store a TRUE/FALSE value.

36
Q

Real/Float

A

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

37
Q

Character -

A

A data type used to store a single character.

38
Q

Casting -

A

Altering a variable’s data type within a program.

39
Q

Arithmetic Operator

A

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

40
Q

DIV

A

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

41
Q

MOD

A

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

42
Q

Boolean Operator

A

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

43
Q

Random

A

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