Paper 1 Theory Flashcards
Master 30 cards per day (294 cards)
What is the concept of a data type?
Defined by the values it can take and the operations that can be performed on it.
What is the definition of an integer data type?
A whole number, positive or negative, including zero.
What is the definition of a real/float data type?
A positive or negative number which can have a fractional part.
What is the definition of a Boolean data type?
A value which is either true or false.
What is the definition of a character data type?
A single number, letter or symbol.
What is the definition of a string data type?
A collection of characters.
What is the definition of a date/time data type?
A way of storing a point in time, many different formats are used.
What is the definition of a pointer/reference data type?
A way of storing memory addresses.
What is the definition of a records data type?
A collection of fields, each of which could have a different data type.
What is the definition of an arrays data type?
A finite, indexed set of related elements each of which has the same data type.
What is a user-defined data type based on built-in types?
A data type derived from existing language-defined data types.
In programming concepts, what is variable declaration?
Creating a variable for the first time, giving it a name and sometimes a data type.
In programming concepts, what is constant declaration?
Creating a constant for the first time, similar to variable declaration.
In programming concepts, what is assignment?
Giving a constant or variable a value.
In programming concepts, what is iteration?
Repeating an instruction.
In programming concepts, what is selection?
Comparing values and choosing an action based on those values.
What is a subroutine in programming?
A named block of code containing a set of instructions for a frequently used operation.
What is definite iteration?
Iteration where the number of repetitions is known before the loop starts.
What is indefinite iteration?
Iteration where the number of repetitions is not known before the loop starts.
What are nested structures in programming?
Selection or iteration structures placed within another structure.
Why is indentation important in nested structures?
It makes the code easier for humans to understand.
Why are meaningful identifier names important for constants, variables, and subroutines?
It makes it easier for others to understand the named object’s purpose.
What is addition in programming?
Adding together two numbers.
What is subtraction in programming?
Taking one number away from another.