Software Design Questions and Answers – UML State Diagrams

This set of Software Design Multiple Choice Questions & Answers (MCQs) focuses on “UML State Diagrams”.

1. Which of the following statement is true?
a) A transition is a change from one state to another
b) Transitions may be spontaneous, but usually some event triggers them
c) An event is a noteworthy occurrence at a particular time; events have no duration
d) All of the mentioned
View Answer

Answer: d
Explanation: All the mentioned statements are true.

2. Every finite automaton specification must contain which of the following?
a) Descriptions of the automaton’s states in a way that allows them to be distinguished, such as by naming each one;
b) Descriptions of transitions indicating each transition source state, its target state, and the events that trigger it;
c) Designation of an initial state, the starting place for state transitions
d) All of the mentioned
View Answer

Answer: d
Explanation: Every finite automaton specification contains – Descriptions of the automaton’s states in a way that allows them to be distinguished, such as by naming each one;Descriptions of transitions indicating each transition source state, its target state, and the events that trigger it; and Designation of an initial state, the starting place for state transitions.

3. What does deterministic and non deterministic automation?
a) A non-deterministic finite automaton is a finite automaton that has no spontaneous transitions and has a single transition that it must make in response to every event in each of its states
b) A deterministic finite automaton is one with multiple transitions
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: d
Explanation: A deterministic finite automation is a finite automaton that has no spontaneous transitions and has a single transition that it must make in response to every event in each of its states and A non-deterministic finite automaton is one with multiple transitions.
advertisement
advertisement

4. Which of the following determines the state diagram?
a) The UML notation for specifying finite automata is the state diagram
b) In state diagrams, states are represented by rounded rectangles
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: All of the mentioned are true for the state diagram.

5. Which of the following represents the State Diagram?
a) The finite automaton initial state is designated by a special initial pseudo-state depicted as a large black dot at the tail of an arrow pointing at the initial state
b) A finite automaton may execute forever or it may halt in a final state
c) Transitions are represented by solid arrows labeled with one or more transition strings that describe the circumstances under which the transition is triggered and the actions that may ensue
d) All of the mentioned
View Answer

Answer: d
Explanation: All of the mentioned are true for state diagram.

6. Which of the statements state the name compartment?
a) The first compartment is the name compartment
b) It contains the state name; State names are optional and may be path names
c) The name compartment can never be omitted
d) The first compartment is the name compartment, It contains the state name; State names are optional and may be path names
View Answer

Answer: d
Explanation: State name compartment is the first compartment that contains state name, name compartment may be omitted.

7. Which of the following is true?
a) A state symbol without a nested state compartment represents a complex state
b) One with a nested state compartment represents a simple state
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: d
Explanation: A state symbol without a nested state compartment represents a simple state and One with a nested state compartment represents a complex state.
advertisement

8. Which of the following are composite states?
a) A sequential composite state
b) A concurrent composite state
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: There are two kinds of composite states -A sequential composite state and A concurrent composite state.

9. What is sequential and concurrent composite state means?
a) A concurrent composite state contains a single state diagram composed of sub-states or inner states and the transitions between them
b) A sequential composite state contains two or more sequential state diagrams in regions separated by dashed lines called concurrent region boundary lines
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: d
Explanation: A sequential composite state contains a single state diagram composed of sub-states or inner states and the transitions between them and A concurrent composite state contains two or more sequential state diagrams in regions separated by dashed lines called concurrent region boundary lines.
advertisement

10. Sequential composite states simplify state models in two ways?
a) They organize states into hierarchies
b) They consolidate many transitions
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: All of the mentioned are the two ways to simplify sequential composite states.

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.