Algorithm structure with only 1 entry & 1 exit point.
40
New cards
Sequence construct
Construct with multiple consecutive instructions performed in strict order.
41
New cards
Branch
Instruction sequence diverted from main flowchart due to decision symbol.
42
New cards
Selection construct
Construct picking between branches based on certain condition.
43
New cards
Iterate
Repeat.
44
New cards
Iteration construct
Construct repeating instructions while a condition is fulfilled.
45
New cards
Dry run
Process running through steps set manually.
46
New cards
Test data
Input data for performing dry run.
47
New cards
Trace table
Tabulating variable changes & algorithm outputs during dry run.
48
New cards
Pseudo-code
Algorithm description using mixture of natural language & constructs (sequence, selection, iteration).
49
New cards
Instruction set
Basic command/instruction set understood directly by processor represented in byte form.
50
New cards
Machine code
Instructions run directly on computer processor.
51
New cards
Program
Instructions set computers use performing specific tasks.
52
New cards
Programming language
Human communicate instructions to computers language.
53
New cards
Source code
Instructions in programming language both humans & computers can understand.
54
New cards
Syntax
Rules determining words & symbols arrangement in valid instruction.
55
New cards
Syntax error
Incorrect source code not following language rules.
56
New cards
Compiler
Code translator program completely translating source code into machine code before running it.
57
New cards
Interpreter
Code translator program translating source code into machine code & running it simultaneously.
58
New cards
Command line interface
Medium of interaction with program with commands represented as lines of text.
59
New cards
Graphical user interface
Medium of interaction with program with commands represented as visuals.
60
New cards
Syntax highlighting
Display of different source code parts differently using different colours & fonts according to programming language rules to ease difficulties in reading.
61
New cards
Interactive mode
Python feature allowing entering of source code line by line to immediately run & show results.
62
New cards
Comment
Part of source code explaining program but not translated or run.
63
New cards
Identifier
Character sequence following specific rules that may be used as variable name.
64
New cards
Keyword (Programming)
Specific words reserved by programming language for running code & cannot be used as identifier.
65
New cards
Variable (Python)
Name with assigned value that may be modified while program runs.
66
New cards
Constant (Programming)
Name with assigned value that cannot be modified while program runs.
67
New cards
Naming convention
Guidelines on how identifiers & names should be chosen.
68
New cards
Floating-point number (float)
Data type representing numbers with decimals.
69
New cards
Integer (int)
Data type representing whole numbers.
70
New cards
Literal
Value represented directly in source code.
71
New cards
String (str)
Data type representing text as sequence of characters or symbols.
72
New cards
Escape code
Character sequence inputted difficult to type out as literal or creates syntax errors if not treated uniquely.
73
New cards
Type casting
Conversion process between 2 data types.
74
New cards
Boolean (bool)
Data type representing True or False.
75
New cards
Array
Sequence of same sized items arranged consecutively in memory. Sometimes interchangeably used with list.
76
New cards
List (programming)
Data type storing multiple sequencial values.
77
New cards
Argument
Additional value used as input for function call.
78
New cards
Function
Reusable instructions set assigned to a name.
79
New cards
Function call
Process assigning arguments to new variables & running instructions assigned to function.
80
New cards
Nested function call
Resultant value of function call used as argument for another function call.
81
New cards
Return value
Function output, or presumed function call value after its assigned instructions are completed.
82
New cards
Body (functions)
Statements sequence in user-defined function.
83
New cards
Indentation
Spaces number in front of each source code line.
84
New cards
User-defined function (UDF)
Programming language user provided function.
85
New cards
Parameter
UDF special variable with argument assignment when UDF is called.
86
New cards
Signature (programming)
UDF first line specifying UDF name & its parameters.
87
New cards
Return instruction
Instruction immediately ending function treating subsequent value as provided return value.
88
New cards
Local variable
Variable internally created in UDF & can only be used within UDF.
89
New cards
Global variable
Variable externally created outside & before UDF & is usable both inside & outside UDF.
90
New cards
Binary operator
Operator only taking 2 inputs as values.
91
New cards
Operator
Performing instructions symbol using different syntax from function.
92
New cards
Floor division
Division operator rounding down result to nearest integer.
93
New cards
Sequence
Any data type storing multiple sequencial values.
94
New cards
Concatenation
Joining 2 sequences forming longer sequence.
95
New cards
Slice operator
Operator returning extracted sequence from longer sequence.
96
New cards
Index
Integer value representing value sequence position.
97
New cards
Index operator
Operator returning value from within sequence.
98
New cards
Immutable
Unchangeable from creation.
99
New cards
Mutable
Can be changed even after creation.
100
New cards
Control flow statement
Programming instruction changing instructions run order.