Flashcards
Chapter 8 - Programming
Cards in this deck (40)
- 1SequenceThe order in which a set of instructions is carried out in an algorithm.
- 2SelectionA way of creating multiple paths and decisions in an algorithm.
- 3IterationA way of repeating a set of instructions in an algorithm.
There are two types of iteration:
for-to-next counting loops
while-endwhile condition loops - 4ConditionA feature in an algorithm that can be met, or not met, causing a different action to be taken.
- 5LoopA sequence of instructions that is continually repeated a set number of times, or until a condition is met.
- 6VariableA named storage location that contains a value that can change during the execution of a program.
- 7IntegerWhole numbers only
.e.g. 0, 1 ,2, 3 - 8Real/FloatNumbers that can have decimal parts as well .e.g. 0.1, 1.2, 3.4
- 9BooleanTwo values only, true and false
.e.g. True/False, Y/N - 10CharacterA single letter, number or symbol
.e.g. A, B, C - 11StringA single letter, number or symbol
.e.g. A, B, C - 12ConstantA named storage location that contains a value that cannot be changed during the execution of a program.
- 13ArrayA set of data that is stored together, that is of the same data type.
- 14AssignmentThis is setting or resetting a value to a data location, such as a variable.
- 15Local variableA variable that is declared within a function or procedure and therefore can only be used within that function or procedure.
- 16Global variableA variable that is visible throughout the whole of the program.
- 17ProcedureA named section of instructions that preform a specific task.
- 18Dynamic arrayAn array that does not have a fixed length applied to it when its declared.
- 19Static arrayAn array that has a fixed length applied to it when its declared.
- 20ConcatenationThe joining together or characters in a spring.
- 21Sub-programs-----
- 22FunctionA named section of instructions that preform a specific task and return a value from this.
- 23Syntax errorAn error in the language written in a program.
- 24Logical errorAn error in a program that causes it to produce unexpected results.
- 25TranslatorSoftware that translates a program written in a programming language into machine code that can be understood by a computer.
- 26DatabaseA structured way of storing data.
- 27Input sanitationTechnique of modifying input to ensure it is valid.
- 28ValidationTechniques to check if the input meets a set of criteria.
- 29Common validation rulesLength check - checks the data contains a
set number of characters.
Range check - Checks the data entered is within a certain number range
Type check - Checks the data entered is a certain data type.
Format check - Checks the data entered has a particular format .e.g. has a symbol. - 30AuthenticationTechniques used to confirm a users' identify.
- 31Types of testingNormal test data - refers to data that the program should process normally (data that it should accept).
Erroneous test data - refers to data that the program shouldn't accept (data that it should reject).
Extreme test data - refers to data that will fall on the edge, or boundary, of any ranges or limits that have been set. - 32High-level languageA computer language, in which programs are written, that is closer to human language.
- 33Low-level languageA computer language, in which programs are written, that is closer to what a computer understands.
- 34TranslatorsThere are 3 types of translator that can be used;
a compiler
an interpreter
an assembler - 35CompilerSoftware that translates a high-level language into machine code.
- 36InterpreterSoftware that translates a high-level language by analysing and executing it line by line.
- 37AssemblerSoftware that translates assembly code into machine code.
- 38IDE--------
- 39Describe what is meant by the term 'selection'. [2]Selection is used to change the path or flow of data in a program. There are two types of selection:
if-then-else statements
switch-case statements - 40Explain two ways in which a origrammer can make sure that a prograamme
Information
- Description
- Computer Science Flashcards on Chapter 8 - Programming , created by Caitlin Mulhall on 09/08/2019.
- Created by
- Caitlin Mulhall
- Views
- 1
- Rating