Professional Documents
Culture Documents
1. Program
Definition:
2. Pseudocode
Definition:
Method that uses English words and mathematical notations to design the steps of a
program.
3. Flowcharts
Definition:
Diagram that designs the steps of a program by using a standard set of symbols joined by
lines to show the direction of flow.
4. Trace Table
Definition:
• Table that can be used to record the results from each step in an algorithm
• It is used to record the value of a variable each time it changes
5. Variable
Definition:
A named data store that contains a value that can change during the execution of a program.
6. Constant
Definition:
A named data store that contains a value that does not change during the execution of a
program.
221
Definitions Eng. Omar El Safty
Hello World
String A sequence of characters
A312_@odq
8. Sequential statements
Definition:
Statements are executed one after another according to their order.
9. Conditional/Selection statements
Definition:
Selective statement(s) are executed depending on meeting certain criteria.
Purpose:
To allow different paths through a program depending on meeting certain criteria.
Purpose:
It allows for checking complex conditions.
222
Definitions Eng. Omar El Safty
Purpose:
Used to test for a large number of discrete values.
Purpose:
To repeat same or similar code a number of times, which allows for shorter code.
223
Definitions Eng. Omar El Safty
Differences between REPEAT ... UNTIL and WHILE ... DO ... ENDWHILE:
• In WHILE the criteria is pre-tested but in REPEAT..UNTIL the criteria is post-tested
• WHILE may never run while REPEAT.. UNTIL runs at least once
• WHILE iterates whilst a condition is TRUE but REPEAT UNTIL iterates till a condition is
TRUE
16. Totaling
Definition:
The process of summing a list of number.
Example:
Sum ß Sum + Num
17. Counting
Definition:
The process of finding how many items are in a list.
Example:
Count ß Count + 1
18. Array
Definition:
A data structure that holds a number of elements of the same data type
Purpose:
• To store multiple values under the same identifier making the code shorter
• Allows for simpler programming
Index definition
The position of an element in an array
Dimension definition
The number of indexes required to access an element in an array
224
Definitions Eng. Omar El Safty
225
Definitions Eng. Omar El Safty
23. Subroutine
Definition:
• Sub-program
• Used to perform a frequently used operation within a program
• Given a name and can be called when needed
• Can be reused by another program
• Written in High Level Language
24. Function
Definition:
A subroutine that always returns a value.
25. Procedure
Definition:
A subroutine that doesn’t return a value.
26. Database
Definition:
A structured collection of related data that allows people to extract information in a way that
meets their needs.
226
Definitions Eng. Omar El Safty
• Student name
A column that contains one specific piece of
Field • Student ID
information and has one data type
• Age
• Address
• Gender
A row within a table that contains data about a Details (all information) of
Record
single item, person or event one student
227
Definitions Eng. Omar El Safty
28. Validation
Definition:
The automated checking by a program that data to be entered is sensible.
Checks that the data entered has the A person’s age should be a
Type Check
appropriate data type number not text.
Checks that some data has been entered An email address must be
Presence Check
and the value has not been left blank given for an online transaction
It makes sure that no duplicate values are An entry in a primary key field
Uniqueness
entered in a specific field must be unique
228
Definitions Eng. Omar El Safty
30. Verification
Definition:
Checking that the data has not changed during input to a computer or during transfer
between computers.
Purpose:
To ensure the accuracy of transcription.
Types:
• Screen/Visual Check
• Double Data Entry
229
Definitions Eng. Omar El Safty
Correct data that should be The month can be any whole number
Normal Data
accepted in the range of 1 to 12
• Non-integer values
(e.g., 3.5,10.75, etc.)
Data at the limits of acceptability and The extreme values of month can be
Extreme Data
it should be accepted either 1 or 12
230
Theory Questions Eng. Omar El Safty
Theory Questions
231
Theory Questions Eng. Omar El Safty
232
Theory Questions Eng. Omar El Safty
5
4
6
5
233
Theory Questions Eng. Omar El Safty
234
Theory Questions Eng. Omar El Safty
10
11
235
Theory Questions Eng. Omar El Safty
12
236
Theory Questions Eng. Omar El Safty
13
237
Theory Questions Eng. Omar El Safty
14
15
238
Theory Questions Eng. Omar El Safty
16
17
239
Theory Questions Eng. Omar El Safty
18
19
240
Theory Questions Eng. Omar El Safty
20
21
241
Theory Questions Eng. Omar El Safty
22
……………………………………………………………………………………………………
……………………………………………………………………………………………………
………………………………………………………………………………………………...2]
242
Theory Questions Eng. Omar El Safty
24 Use the following list of words and phrases to complete the paragraph below
Each word or phrase can be used once, more than once or not at all
.....................................
243