Flowcharts and Data Types Flashcards

1
Q

Define integer

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Floating point numbers

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a variable

A

Variables are data entities whose values can be changed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define real/float

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define Boolean

A

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’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a string

A

A string represents text in a program.
A string is composed of a set of characters e.g. ‘Hamburger’ or
‘I ate 5 hamburgers’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define what a constant is

A

Data entities whose values cannot be altered

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the symbol for ‘start’ , ‘end’ , ‘process’ and ‘decision’ in a flow chart

A

‘start’ and ‘end’=curved rectangle
‘Process’=rectangle
‘Decision’=diamond

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Define a decision in flow charts

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a sequence

A

A sequence is a set of instructions or actions in order.

Meaning each action follows the previous action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an array

A

An array is an ordered arrangement of data elements that are accessible by referring their location within the array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Define selection

A

A selection control structure involves a choice. (If—then—else)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Define a process in a flow charts

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is iteration

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a while statement

A

While statement are efficient loops that will continue to loop until the condition is false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly