Key words and terms Flashcards
What is an array?
Data structure for storing finite / ordered set of data using same data type.
Compare local variables with global variables.
Local:
- Limited scope - only accessed within subroutine they are defined.
Global:
- Accessed throughout whole program. Useful for values accessed by multiple parts of program.
Local > Global:
- Local are self contained - not affected outside of subroutine
- Global can be unintentionally overwritten.
- Global not deleted until program terminates - uses more memory.
What is a Boolean?
Data type that can only store 2 possible values (1 / 0, TRUE / FALSE)
What is a character?
Data type for storing a letter / number or special character
What is a data type?
Attribute determining what type of data is being stored
What is a pointer / reference?
Data type used to store memory addresses of objects created at runtime
What are records?
Data structure which stores related data in ‘fields’ - organised based on attributes.
What is assignment?
Statement for giving created variable value consistent with data type.
What is constant declaration?
Statement for creating a constant in a program
What is iteration?
Programming structure where set of statements are repeated in fixed number of times.
What is selection?
Programming structure for deciding which statements to perform next based on certain conditions.
What are subroutines
Uniquely named section of code written to perform a set of conditions.
What are stackframes?
Store return addresses, parameters and local variables for each subroutine call.
What is variable declaration?
Statement for creating a variable in a program
What is an arithmetic operator?
Operator taking 2 numeric values and performing some form of mathematical manipulation.
What is truncation?
Removing decimal place without rounding
What is concatenation?
Process of combining 2 strings into a singular larger string.
What is exponentiation?
Arithmetic Operator that raises numeric value to power of other numeric value and returns result.
What is modulo?
Arithmetic operator that divides numeric value by another and returns remainder.