Consider the statement S1 Jumps are allowed in the middle of the block S2 Flow…
Consider the statement
S1 Jumps are allowed in the middle of the block
S2 Flow of control must enter through the first instruction of the block
Answer: D. S2 is true — Key concept: A basic block is a straight-line sequence of instructions with a single entry point (the first instruction) and a single exit point. Statement…
- A.
S1 is true
- B.
S2 is false
- C.
Both are true
- D.
S2 is true
Attempted by 69 students.
Show answer & explanation
Correct answer: D
Key concept: A basic block is a straight-line sequence of instructions with a single entry point (the first instruction) and a single exit point.
Statement 'Jumps are allowed in the middle of the block' is false because allowing jumps into the middle would create additional entry points and violate the single-entry property of a basic block.
Statement 'Flow of control must enter through the first instruction of the block' is true because the basic block must have exactly one entry point, namely its first instruction.
Conclusion: The correct answer is the one that affirms the second statement and negates the first.