Flowcharts and Data Types Flashcards
Define integer
An integer data type deals which numbers(not decimals).
A complete unit of entity’s (1,2,3,-1,0)
A member of the set of positive whole numbers, negative while numbers and zero
Floating point numbers
Floating-point numbers have no fixed number if digits before and after the decimal point.
The decimal point can float e.g.
4.0,-133.8
What is a variable
Variables are data entities whose values can be changed
Define real/float
A data type containing numerical data in a decimal form. E.g.
4.1,3.1459
Used in situations where more accurate information is required
Define Boolean
A days type that represents the values of ‘true or false’ ,
‘yes or no’ or ‘on or off’
AND=true only if both sides are true
OR= true if either side is true
NOT= changes ‘true’ to ‘false’ and ‘false’ to ’true’
What is a string
A string represents text in a program.
A string is composed of a set of characters e.g. ‘Hamburger’ or
‘I ate 5 hamburgers’
Define what a constant is
Data entities whose values cannot be altered
What is the symbol for ‘start’ , ‘end’ , ‘process’ and ‘decision’ in a flow chart
‘start’ and ‘end’=curved rectangle
‘Process’=rectangle
‘Decision’=diamond
Define a decision in flow charts
A decision symbol represents a Boolean choice:
Has exactly 2 inputs and outputs
Contains a question with only 2 answers
The 2 outputs are labelled with the 2 answers to the question
What is a sequence
A sequence is a set of instructions or actions in order.
Meaning each action follows the previous action
What is an array
An array is an ordered arrangement of data elements that are accessible by referring their location within the array
Define selection
A selection control structure involves a choice. (If—then—else)
Define a process in a flow charts
A process symbol represents some operations that is carried out on an element of data:
It has exactly 1 inputs and 1 output
It contains a brief description describing the process being carried out on the data
What is iteration
Iteration is where a statement is executed in a loop until the program reaches a certain state or the intended operation has been applied to every data element of an array
What is a while statement
While statement are efficient loops that will continue to loop until the condition is false