In: Computer Science
2. What are data elements and records?
3. List three control structures in modular design.
4. Draw a picture which shows an example of iteration structure.
5. Provide an example of structured English?
6. Provide an example of decision tables with three conditions.
7. Provide an example of the decision tree.
2. What are data elements and records?
Ans: A single unit of data defined for processing is known to be as a data element. A data element is defined by size (in character) and type (alphanumeric, numeric only, true/false, date, etc.).
A record is an object that can contain one or more values. Groups of records are then saved in a table; the table defines the data that each record may contain. In a given database, there are multiple tables, each containing multiple records.
3. List three control structures in modular design:
Ans: 1. Sequential control structure
2. Selection control structure
3. Repetition control structure
4. Draw a picture which shows an example of iteration structure
Ans:
5. Provide an example of structured English?
Ans:
Decision Structure - Only IF a condition is true, complete the following statements; otherwise, jump to the ELSE |
IF Condition A is True THEN implement Action A ELSE implement Action B ENDIF |
6. Provide an example of decision tables with three conditions:
Ans:
Condition 1 Y Y
Condition 2 Y Y
Condition 3 Y N
Action 1 X X
The same action occurs whether condition 3 is true or false. As a result, one column can be eliminated from the table as follows:
Condition 1 Y
Condition 2 Y
Condition 3 −
Action 1 X
7. Provide an example of the decision tree.
Ans:
Hope I answered the question.
If you have any doubts, or queries, feel free to ask
I'll respond to you as soon as I can.
Have a nice day