COMPUTER SCIENCE AND ENGINEERING
THEORY OF COMPUTATION
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Selection and iteration
|
|
Names of the modules
|
|
Relationship between modules
|
|
Structure of a program
|
Detailed explanation-1: -The hierarchy chart (also known as a structure chart) shows the relationship between various modules. Its name comes from its general use in showing the organization (or structure) of a business. The President at the top, then vice presidents on the next level, etc.
Detailed explanation-2: -Iteration is when we use loops to repeat code in a program. Selection is when we use conditionals (if/else) to execute different blocks of code in a program.
Detailed explanation-3: -Now our program is using Sequence to provide the order in which we execute our instructions. Selection to allow decisions to be made and Iteration to loop or repeat our instructions as many times as we need.
Detailed explanation-4: -The hierarchy chart does not contain any of the selection or repetion logic required for true algorithm (flowchart or pseudo-code). Such logic is “assumed” to exist inside a higher level component. In theory the sequence of components at the same level under a “higher level” component has no particular significance.