Software Design Questions and Answers – Designing with State Diagrams

This set of Software Design Problems focuses on “Designing with State Diagrams”.

1. Finite automata can be divided into which of the following groups?
a) Acceptors or recognizers
b) Transducers
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: Finite automata can be divided into the following groups – acceptors or recognizers and transducers.

2. What is a Recognizer?
a) Finite automata that both respond to events and generate actions
b) Finite automata that respond to events but generate no actions
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: b
Explanation: Finite automata that both respond to events and generate actions are called transducers and finite automata that respond to events but generate no actions are called acceptors, or recognizers.

3. What is a transducer?
a) Finite automata that both respond to events and generate actions
b) Finite automata that respond to events but generate no actions
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: a
Explanation: Finite automata that both respond to events and generate actions are called transducers and finite automata that respond to events but generate no actions are called acceptors, or recognizers.
advertisement
advertisement

4. What among these follows acceptor model?
a) They often model the behavior of small software modules
b) A common use of models is to design a lexical analyzer, which is a program component that transforms a character stream into a stream of tokens, which are symbols recognized by the program
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: Acceptors often model the behavior of small software modules and a common use of acceptors is to design a lexical analyzer, which is a program component that transforms a character stream into a stream of tokens, which are symbols recognized by the program.

5. Which of these represents Transducers?
a) They can be used to model state-based behavior throughout software design
b) In product design, they model the state-based behavior of entire products
c) They are also useful for modeling software components
d) All of the mentioned
View Answer

Answer: d
Explanation: Transducers can be used to model state-based behavior throughout software design. In product design, transducers model the state-based behavior of entire products and transducers are also useful for modeling software components.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. What are dialog maps?
a) It is a state diagram whose nodes represent user interface state
b) They are thus used to model user interface behavior
c) They are not useful for modeling software components
d) All of the mentioned
View Answer

Answer: d
Explanation: Dialog Map is a state diagram whose nodes represent user interface state and they are used to model user interface behavior

7. What is a user interface diagram?
a) It is a drawing of (part of) a product’s visual display when it is in a particular state
b) It is a note attached to a line or arrow picking out part of a diagram
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: a
Explanation: A user interface diagram is a drawing of (part of) a product’s visual display when it is in a particular state and a callout is a note attached to a line or arrow picking out part of a diagram.
advertisement

8. What is callout?
a) It is a drawing of (part of) a product’s visual display when it is in a particular state
b) It is a note attached to a line or arrow picking out part of a diagram
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: b
Explanation: A user interface diagram is a drawing of (part of) a product’s visual display when it is in a particular state and a callout is a note attached to a line or arrow picking out part of a diagram.

9. What are the specifications of user interface should satisfy?
a) Every user interface diagram should specify the visual form of a state in a dialog map
b) Every state in a dialog map should have its visual form specified by a user interface diagram
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: Every user interface diagram should specify the visual form of a state in a dialog map and every state in a dialog map should have its visual form specified by a user interface diagram are the conditions that should be satisfied.
advertisement

10. Which of the following are the uses for Dialog maps?
a) Dialog maps are useful whenever the behavior of a program’s user interface is under study
b) They can be used to help elicit stakeholder needs and desires and to model them to make sure they are well understood and documented
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: Dialog maps are useful whenever the behavior of a program’s user interface is under study and they can be used to help elicit stakeholder needs and desires and to model them to make sure they are well understood and documented.

Sanfoundry Global Education & Learning Series – Software Architecture and Design.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.