4.2.1 - Dialog Notation.
1. What is the primary purpose of using unique notation for human-computer dialogues?
Correct Answer: (B) To simplify analysis and design.
2. Which programming construct is heavily criticized in the mortgage repayment calculator example?
Correct Answer: (B) Goto statements.
3. In the provided mortgage repayment calculator, which variable represents the interest rate?
Correct Answer: (C) rate.
4. What does the term "input" signify in the dialogue notation context?
Correct Answer: (B) User interaction or response.
5. Which element indicates the user's choice in the mortgage calculator?
Correct Answer: (C) if-then statements.
6. What challenge does the program primarily face according to the text?
Correct Answer: (A) Error checking and correction.
7. What does the "print" statement do in the mortgage calculator?
Correct Answer: (B) Displays information to the user.
8. What is a potential benefit of using dialogue notation in program design?
Correct Answer: (C) Improved communication among design team members.
9. Why is a structured programming approach mentioned as an alternative in the mortgage calculator example?
Correct Answer: (C) To improve program readability.
10. What is the main reason for separating dialogue components from computational elements?
Correct Answer: (C) To facilitate easier analysis and interface adjustments.
11. What task might be unexpectedly challenging when analyzing the mortgage calculator's dialogue?
Correct Answer: (B) Providing repayment options for different loan terms.
12. What is indicated by the condition "if answer == 'yes'" in the program?
Correct Answer: (A) User's willingness to proceed with a loan.
13. What aspect of the program is seen as “cryptic” according to the text?
Correct Answer: (B) Program structure.
14. What does the dialogue notation allow designers to do prior to program writing?
Correct Answer: (B) Record the dialogue structure.
15. What does the term "semantics" refer to in the context of dialogue notation?
Correct Answer: (C) Meaning and context of the dialogue.
16. What indicates an invalid response from the user in the mortgage calculator?
Correct Answer: (B) Answering with a non-"yes" or "no" input.
17. Which programming language feature is suggested as being necessary to improve the mortgage calculator?
Correct Answer: (C) Structured programming constructs.
18. What is indicated by the use of the "goto" statement in the mortgage calculator?
Correct Answer: (B) Poor program structure.
19. What should be considered when adjusting an interface for an existing program?
Correct Answer: (B) Ease of analysis and modifications.
20. In what context is dialogue notation particularly useful during the design process?
Correct Answer: (C) In the prototyping phase.