MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

THEORY OF COMPUTATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What does a hierarchy chart not show?
A
Selection and iteration
B
Names of the modules
C
Relationship between modules
D
Structure of a program
Explanation: 

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.

There is 1 question to complete.