Chapter 8 - Programming Flashcards
What is a variable
Named data store that may change the execution of a program
What is a constant
Named data store that contains a value that does not change during the execution of a program
What are the 5 basic concepts of programming
Data use
Iteration
Sequence
Selection
Operator use
What is data use
Variables, constants and arrays
What is sequence
The order of steps in a task
What is selection
Choosing a path through a program
What is iteration
Repitition of a sequence of steps in a program
What is operator use
Arithmetic for calculations
Logical and boolean for decisions
What does the different data types enable(3)
Data to be stored appropriately
Data to be effectively manipulated
Automatic validation
What are the 5 basic data types
Integer
Real
Char
String
Boolean
What is boolean
A variable constant that can only have 2 values
TRUE or FALSE
What is a string
A variable/constant that is several characters in length or has no characters which is an empty string
What does it mean if a number is stored in a string
The number cannot be used ofr calculations
What is a char
A variable/constant that is a single character
What are the basic concepts to be used when solving a problem (6)
Sequence.
Selection.
Iteration.
Counting and totalling.
String handling.
Use of operators.