Paper 1 Revision (Not needed) Flashcards
What is a data type?
A data type defines the values that can be stored and the operations that can be performed on the data.
What is the description of the real/float data type?
The real/float data type represents positive or negative numbers that can have a fractional part.
What is the description of the boolean data type?
The boolean data type represents a value that can be either true or false.
What is the description of the character data type?
The character data type represents a single number, letter, or symbol.
What is the description of the string data type?
The string data type represents a collection of characters.
What is the description of the date/time data type?
The date/time data type represents a point in time and can have various formats.
What is the description of the pointer/reference data type?
The pointer/reference data type is used to store memory addresses
What is the description of the records data type?
The records data type represents a collection of fields, each with a potentially different data type, similar to a row in a table.
What is the description of the arrays data type?
The arrays data type represents a finite, indexed set of related elements, all having the same data type.
What are user-defined data types?
User-defined data types are created by deriving from existing data types to create customized data structures
How can user-defined data types be used?
User-defined data types can be used to create customized data structures, such as creating a “Customer” data type with attributes like Forename, Surname, and EmailAddress.
What is variable declaration?
Variable declaration is the process of creating a variable for the first time, giving it a name and sometimes a data type, and allocating memory for it.
What is constant declaration?
Constant declaration is similar to variable declaration but used for creating constants. The value of a constant does not change during program execution.
What is assignment?
Assignment is the process of giving a constant or variable a value.
What is iteration?
Iteration is the process of repeating a block of code. It can be definite (with a known number of repetitions) or indefinite (with an unknown number of repetitions).
What is definite iteration?
Definite iteration is a type of iteration where the number of repetitions required is known before the loop starts. Examples include for loops.
What is indefinite iteration?
Indefinite iteration is a type of iteration where the number of repetitions required is not known before the loop starts. Examples include while loops.
What are nested structures in programming?
Nested structures refer to placing one selection or iteration structure within another. It is identified by different levels of indentation in code.
Why is it important to use meaningful identifier names?
It is important to use meaningful identifier names for constants, variables, and subroutines to improve code readability and make it easier for others to understand the purpose of named objects in the program.
What does the rounding operation do?
The rounding operation limits the degree of accuracy of a number to a specified number of significant figures
What does the truncation operation do?
The truncation operation removes the decimal part of a number and returns only the whole part.
What does the NOT boolean operation do?
The NOT operation returns the opposite of a boolean value.
What does the AND boolean operation do?
The AND operation returns true if both boolean values are true.
What does the OR boolean operation do?
Answer: The OR operation returns true if at least one of the boolean values is true.