1. fundamentals of programming Flashcards
array
a data structure for storing a finite, ordered set of data of the same data type within a single identifier
boolean
a data type that can only store one of two possible values (true or false)
character
a data type for storing a letter, number or special character
real/float
a data type for storing numbers with decimal or fractional parts
integer
a data type for storing whole number values (positive or negative) with no decimal parts.
data type
an attribute of data that determines what sort of data is being stored that tells the compiler how it will be used in a program
date/time
a data type for storing date or time values in an identifiable format
records
a data structure that stores related data items in elements called fields, organised based on attributes
string
a data type for storing a sequence of alphanumeric characters or symbols within quotation marks
algorithm
is a set of rules or a sequence of steps specifying how to solve a problem
pseucode
a sort of half way house between english and program statements
comments
anything following # will be treated as a comment and will have no effect on the running of the program.
they can explain how any tricky bits of the program work.
user-defined data types
custom data types designed by the user by combining existing data types, for the bespoke needs of their program
aassignment
a statement in which a value is assigned to a variable
constant declaration
a statement for creating a constant in a program.
iteration
a programming structure where a set of statements are repeated a fixed number of time (definite iteration), or until a condition is met (indefinite iteration)
indefinite iteration
where the iteration continues until some specified condition is met e.g. while loops
definite iteration
where the number of times the loop is to be executed is decided in advance e.g. for loop
nested iteration
a programming structure of placing selection statements within other selection statements
selection
a programming structure for deciding which statements to perform next based on a certain condition or set of conditions
subroutines
a named section/block of code that is written to perform a specific task within a program that can be called by using its name in a programming statement
variable declaration
a statement for creating a variable in a program
addition
an arithmetic operator that returns the sum of two numeric values
arithmetic operator
an operator that takes two numeric values and performs some form of mathematical manipulation (adding, subtracting, multiplying, dividing) to return a numerical value