OBJECT ORIENTED ANALYSIS AND DESIGN MCQ WITH ANSWERS
JNTUH OOAD MID-2 EXAMINATION OBJECTIVE QUESTION PAPER WITH ANSWERS
UNIT IV
STATE MACHINES: OOAD MCQ
1. ________ can model the behavior of an individual object.
a. Class
b. Use case
c. State machine
d. Activity
2.A ________ is a behavior that specifies the sequence of states an object goes through
during its lifetime in response to events.
a. class
b. state machine
c. use case
d. activity
3. A ________ is a condition during the life of an object during which it satisfies performs some activity or waits for some event.
a. class
b. state
c. actor
d. component
4. A ________ is a relationship between two states indicating that an object in the first s will enter the second state.
a. transition
b. state
c. association
d. generalization
5. A state that has substates, that is nested states, is called ________
a. composite state
b. history state
c. target state
d. source state
6. Inside the states, the events are encountered to handle without leaving the state. This is known as________
a. state machine
b. state transition
c. internal transition
d. external transition
7. ________ is the state that is active after completion of the transition.
a. Composite state
b. History state
c. Target state
d. Source state
8. A ________ describes the aspects of an object whose current behavior depends on its p
a. class
b. state machine
c. use case
d. activity
9. The relationship between two states is called ________
a. transition
b. state
c. association
d. generalization
OOAD MID-2 EXAM QUESTION PAPER WITH ANSWERS
OOAD MCQ UNITWISE
10. ________ are handled without causing a change in state.
a. Transitions
b. Events
c. Signals
d. State
11. A sequential state machine may have ________
a. at most one initial state and one final state n
b. at least one initial state and one final state
c. at most one initial state more than one final state
d. more than one initial state and at most one final state
12. Which of the following is used to model the life time of an object?
a. Use Case
b. Class
c. State Machine
d. Interface
13. State that is active after the completion of the transition is called ________
a. source state
b. target state
c. history state
d. final state
14. Which of the following is present in a nested concurrent state machine?
a. Initial State
b. Final State
c. History State
d. Concurrent sub state
15. Which of the following is wrong with respect to a thread?
a. Threads are light weight
b. Threads are modeled using stereotyped active classes be
c. Threads are nested inside another thread
d. Threads can initiate a control activity
16. Absolute time of an event is modeled as ________
a. timing constraint
b. timing mark
c. timing expression
d. timing semantics
17. ________ is denotation for the time at which an event occurs.
a. Timing mark
b. Timing constraint
c. Timing Expression
d. Timing response
18. Which of the following evaluates to an absolute value of Time?
a. Timing mark
b. Timing Constraint
c. Timing Expression
d. Timing Location
19. A state machine whose actions are all attached to states is called ________
a. Activity diagram
b. Mealy machine
c. Moore machine
d. Component diagram
20. State chart Diagrams are needed ________
a. when a class has complex life cycle
b. when the execution of scenario is to be traced
c. to allocate classes and objects to modules
d. to allocate processes to processors
JNTUH IT 3-2 MID-2 EXAM OBJECTIVE PAPER
JNTUH R16 CSE 3-2 MID-2 EXAM MCQ UNITWISE
JNTU R16 CSE MID-2 EXAM OBJECTIVE PAPER
ANSWERS:
1. Correct Answer : c
3. Correct Answer : b
6. Correct Answer : c
17. Correct Answer : a
20. Correct Answer : a
JNTUH R16 CSE 3-2 MID-2 EXAM MCQ UNITWISE
JNTU R16 CSE MID-2 EXAM OBJECTIVE PAPER
ANSWERS:
1. Correct Answer : c
Individual object's behavior is modeled by a state machine.
2. Correct Answer : b
The sequence of states an object goes through during its lifetime is specified by a state machine.
3. Correct Answer : b
An object which satisfies some condition, performs some activity or waits for some event is a condition of state.
4. Correct Answer : a
Relationship between two states, that an object in the first state will enter the second state is known as transition.
5. Correct Answer : a
A state that has substates, or nested state. A composite state may contain sequential (disjoint) substates.
6. Correct Answer : c
Inside the states, the events are encountered to handle without leaving the state called internal transitions. They are subtly different from self-transitions.
7. Correct Answer : c
Target state is active after completion of the transition.
8. Correct Answer : b
A state machine describes the dynamic aspects of an object whose current behavior depends on its past. It specifies the legal ordering of states an object may go through during its lifetime.
9. Correct Answer : a
Transition is the relationship between two states.
10. Correct Answer : a
Without causing a change in state, internal transitions are handled.
11. Correct Answer : a
At most one initial state and one final state are present in a sequential state machine.
12. Correct Answer : c
To model the life time of an object, the state machine is used.
13. Correct Answer : b
Target state is a state which is active after the completion of the transition.
14. Correct Answer : d
Concurrent sub state is present in a nested concurrent state machine.
15. Correct Answer : c
Threads cannot be nested inside another thread.
16. Correct Answer : a
Timing constraint is a model of the absolute time of an event.
17. Correct Answer : a
When an event occurs, timing mark will be the denotation for the time.
18. Correct Answer : c
An absolute value of time can be evaluated by a timing expression.
19. Correct Answer : c
Moore machine is a state machine whose actions are all attached to states.
20. Correct Answer : a
If the class has a complex life cycle, then the state chart diagrams are used.
OOAD INTERVIEW QUESTIONS UNITWISE
OOAD MCQ PRACTICE QUESTIONS
OBJECT ORIENTED ANALYSIS AND DESIGN OBJECTIVE QUESTIONS
OOAD MULTIPLE CHOICE QUESTIONS WITH ANSWERS