250+ MCQs on Designing with State Diagrams and Answers

Software Design Problems 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

Answer: c
Clarification: 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

Answer: b
Clarification: 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

Answer: a
Clarification: 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.

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

Answer: c
Clarification: 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

Answer: d
Clarification: 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.

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

Answer: d
Clarification: 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

Answer: a
Clarification: 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.

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

Answer: b
Clarification: 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

Answer: c
Clarification: 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.

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

Answer: c
Clarification: 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.

Leave a Reply

Your email address will not be published. Required fields are marked *