2.2 programming fundamentals Flashcards
What is an integer?
A whole number
What is real?
A number with decimals
What is boolean?
True or false
What is a character?
A letter, number or symbol in the given character set.
What is casting?
Changing the data type of a piece of data from one type to another.
What is a string?
A sequence of characters
What are the 3 programming constructs?
Sequence, selection and iteration
What is sequence?
All lines are executed
What is a selection?
Decisions made that determine the execution
What is iteration?
Code is repeated (‘looped’) until specified conditions are met.
What are the 2 types of iteration?
Count controlled loop
Condition loops
What is a variable?
a named data location in a program for a value that can be change during the program.
What is a constants?
They are named data which value remains the same throughout the program.
what does == mean?
equal to
what does != mean
not equal to
What does < mean?
Less than