Q. An Object-oriented program is structured as a community of interacting agents, called ________

  • (A) objects
  • (B) classes
  • (C) functions
  • (D) statements
πŸ’¬ Discuss
βœ… Correct Answer: (A) objects

Q. UML is useful to ________ a system as it is or as we want it to be.

  • (A) visualize
  • (B) specify
  • (C) document
  • (D) all of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) visualize

Q. ________ is the state that is active after completion of the transition.

  • (A) composite state
  • (B) history state
  • (C) target state
  • (D) source state
πŸ’¬ Discuss
βœ… Correct Answer: (C) target state

Q. A ________ describes the aspects of an object whose current behavior depends on its p

  • (A) class
  • (B) state machine
  • (C) use case
  • (D) activity
πŸ’¬ Discuss
βœ… Correct Answer: (B) state machine

Q. The relationship between two states is called ________

  • (A) transition
  • (B) state
  • (C) association
  • (D) generalization
πŸ’¬ Discuss
βœ… Correct Answer: (A) transition

Q. ________ are handled without causing a change in state.

  • (A) transitions
  • (B) events
  • (C) signals
  • (D) state
πŸ’¬ Discuss
βœ… Correct Answer: (A) transitions

Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (A) at most one initial state and one final state n

Q. Which of the following is used to model the life time of an object?

  • (A) use case
  • (B) class
  • (C) state machine
  • (D) interface
πŸ’¬ Discuss
βœ… Correct Answer: (C) state machine

Q. State that is active after the completion of the transition is called ________

  • (A) source state
  • (B) target state
  • (C) history state
  • (D) final state
πŸ’¬ Discuss
βœ… Correct Answer: (B) target state

Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (D) concurrent sub state

Jump to