2.2 Programming Techniques Flashcards
What is a string?
Any text
What is an integer?
Whole number
What is a float/real number?
Decimal Number
What is a Boolean statement?
True/False statement
What is a character?
A single character?
What is an exponentiation function?
Raises a number to a power
What is the DIV function?
Gives the whole number with no remainder
What is the MOD function?
Gives the remainder not the whole number
What is the ! operator
Not equal to
What is a local variable?
A variable that can only be used within the structure they are declared in
What is a global variable?
A variable which can be used in any part of the code after they are declared
What is a sequence?
Where there are programming steps that are carried out one after another
What is selection?
Where there are different paths in your code - IF, ELIF, ELSE
What is iteration?
Where there is repetition in loops
What is a WHILE loop?
Doing something WHILE a condition is met
What is a FOR loop?
Count-controlled loop
What is the difference between an array and a list?
List’s can’t handle arithmetic operations
An array is a static structure whilst a list is a dynamic structure
What is a procedure?
Set of instructions under a name
What is a function?
It is like a procedure but always returns a value?
What are records?
Data structures used to store a collection of data
What is a Field?
Each item in a record
Why is SQL used?
It is used to search databases?