Chapter 7 Flashcards

1
Q

Algorithm

A

A series of steps to solve a problem. Can be expressed in structured English, pseudocode or as a flowchart (also called flow diagram).

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

Flowchart/Flow Diagram

A

A diagram using commonly defi ned symbols to express an algorithm.

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

Structured English

A

A way of writing an algorithm in natural language using some basic programmingconstructs such as IF…THEN…ELSE and loops. More structured than just natural language/prose.

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

Pseudocode

A

A way of writing an algorithm that is close to actual programming language, usingcoding-style constructs such as IF…THEN…ELSE, loops and array notation as appropriate.

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

Hungarian Notation

A

The convention of prefi xing identifiers to indicate what type of object they are.Commonly used with forms where, for example the prefix txt might indicate a textbox and lst might prefix a list box. The prefix is conventionally in lowercase.

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

camelCase

A

The use of capital letters in an identifier to make them more readable. With camelCase the first word is not capitalised:txtCustomer, lstCounty, frmAddCustomer, btnSubmit

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

PascalCase

A

The use of capital letters in an identifier to make it more readable. For example,variable and procedure identifiers: StudentNumber, ProductID, StartPoint, CalcTotal

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

(programming) Sequence

A

Where instructions are executed one after another in series.

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

(programming) Selection

A

Where the program will execute certain instructions based on conditions. Selectionstatements include: IF…THEN…ELSE and CASE…OF to select which commands to execute.

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

(programming) Iteration

A

Where a program will execute a group of instructions zero or more times based on a condition. FOR loops will execute instructions a specific number of times, REPEAT…UNTIL loops one or more times and WHILE…DO loops zero or more times.

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

(programming) Condition

A

A boolean expression that controls an iteration or selection statement. Forexample, REPEAT…UNTIL X=10, where X=10 is the condition.

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

(programming) Boolean Expression

A

An expression that is true or false. For example: continue=”Y”Expressions can be more complex, containing several parts: ((continue=”Y”) or (continue=”y”)) and (tries

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

High Level Programming Language

A

A programming language where programming constructs are written in a waythat is close to natural language instead of in mnemonics or machine code. For example, Delphi, Pascal, Visual Basic, Java, C++.

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

Imperative Language

A

Programming language such as Python or Delphi which uses a sequence of statements to determine how to reach a certain goal or solve a problem.

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

Assembly Language

A

Second generation programming language where instructions are in the form ofmnemonics.

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

Mnemonics

A

Abbreviations representing commands used in assembly language programming.For example, LDA, STO, ADX.

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

Machine Code

A

First generation code; binary instructions where some bits are used to define theoperation (called the “opcode”) and some bits define the data to be used.

18
Q

Translator

A

The piece of systems software used to convert different programming languagesinto machine code. Three types: assembler, interpreter and compiler.

19
Q

Interpreter

A

A translator that converts high level languages into machine code one line at a time, checking syntax, converting to machine code and executing the code.

20
Q

Compiler

A

A translator that converts high level languages into machine code. Works through the whole program (source code) checking the syntax, then converting to machine code and creating the executable object code, which can be saved. The object code is executed, not the source code.

21
Q

Source Code

A

The original high level program.

22
Q

Object Code

A

The executable version of the program after it has been compiled.

23
Q

Assembler

A

The translator that converts assembly language programs into machine code.

24
Q

Identifier

A

A unique name for something (variable, constant, program, procedure etc.) withinthe program.

25
Q

Constant

A

A named value within a program that has a specific value. Its value does notchange while the program is running.

26
Q

Variable

A

An identifier associated with a particular memory location, used to store data. Itsvalue may change as the program is run and new values are assigned to it.

27
Q

Data Type

A

A formal description of the type of data being stored in a variable. It defines theamount of memory required and the type of operations that can be performed onthat variable. Typical data types include Integer, real, string, boolean

28
Q

Integer

A

Data type for whole numbers. Typically uses 2 bytes.

29
Q

Real

A

Data type for fractional numbers. Typically uses 4 bytes.

30
Q

Char

A

Data type for a single character. Typically uses 1 byte.

31
Q

String

A

Data type for text, zero or more characters. Typically uses 1 byte per character.

32
Q

(programming) Operations

A

The actions that can be performed on a variable.

33
Q

Arithmetic Operations

A

Add, subtract, multiply, divide, integer division (DIV) and modulus (MOD)

34
Q

Comparison Operations

A

= =

35
Q

Logical Operators

A

NOT AND OR

36
Q

Array

A

A group of data items of the same data type that use a single identifi er. Individualdata items are accessed using a subscript.

37
Q

Syntax

A

A set of rules that defi nes how program statements must be written in order for the translator to understand them.

38
Q

Syntax Errors

A

An error in the format of the program statements such as missing semicolons orkeywords spelt incorrectly.

39
Q

Logic Errors

A

An error in the algorithm that means the outcome is not as expected, even thoughthe program will run.

40
Q

Valid Data

A

Data that should be allowed by the program. For example, if a range of 1 to 10 isallowed, then valid data will be any number between 1 and 10 inclusive.

41
Q

Invalid Data

A

Data that is not valid and should be rejected by the program. For example, if arange of 1 to 10 is allowed, then invalid data will include abc, -251, 0, and 11

42
Q

Boundary Data

A

Data either side of the range extremes. For example in a range of 1 to 10 boundarydata will include 0, 1, 10 and 11