2.2 Programming Fundamentals Flashcards
term
definition
Programming basics
Fundamentals of writing programs, including using functions like print() and input(), and repeating instructions using loops like for and while.
Structured Query Language (SQL)
A language used to query databases. SQL commands can retrieve data and modify databases using SELECT, INSERT, UPDATE, and DELETE commands.
SQL SELECT command
The SELECT command retrieves fields from a database based on specific conditions defined using the WHERE clause.
Variable assignment
Assigning a value to a variable, which stores information during program execution.
Initialisation
Assigning a variable with its first value when a program starts.
Constant
A variable that holds a value which stays the same throughout the program’s execution.
Iteration
The process of repeating a set of instructions, often using loops like for or while to perform repetitive tasks.
Selection
Choosing which part of the program to follow based on certain conditions, using if, elif, and else statements.
String Manipulation
Manipulating strings of text, such as joining or slicing strings to form new values.
SQL wildcard
The * wildcard in SQL retrieves all records from a database.
Data Structures
Organized sets of data, such as lists or arrays, that can be easily modified and accessed.
To iterate through a list of values
You must use a loop (for or while) to go through the list and access each value, depending on how many values are present.
Sub-programs
Small blocks of code with a unique name that can be called multiple times throughout the program.
Parameters
Variables that are passed into sub-programs to give them the necessary data to perform tasks.
Arguments
The actual values passed into a sub-program to be used by the parameters.
Local Variables
Variables that are only accessible within a certain section of code or sub-program.
Global Variables
Variables that can be accessed by the entire program, including all sub-programs.
Pseudocode
A plain-language description of a program or algorithm, often used for planning before actual coding.
Random number generation
Using functions like random_int() to generate random numbers within a specified range.
While loops
A loop that repeats a set of instructions as long as a specified condition remains true.
For loops
A loop used to repeat a set of instructions a specific number of times, usually with a counter.
Writing to files
Using programming functions like openWrite and file.writeLine to store data into files.
Flowcharts
Diagrams used to represent the flow of a program using different symbols for processes, inputs, outputs, and decisions.
Data Types
Different types of data used in programming: String (text), Integer (whole numbers), Real (decimals), Boolean (true/false).