OMG um0-300 practice test

OMG-Certified UML Professional Advanded Exam


Question 1

The OCL dot operator may NOT traverse which classifier property?

  • A. queries
  • B. attributes
  • C. operations
  • D. association ends
Answer:

C

Discussions

Question 2

What is an abstract type in OCL?

  • A. Set
  • B. Bag
  • C. Integer
  • D. Sequence
  • E. Collection
Answer:

E

Discussions

Question 3

What happens if the explicit context declaration is omitted from an OCL statement on a diagram?

  • A. Statement is malformed.
  • B. Last identified context is used.
  • C. Nearest classifier is made the context.
  • D. Nearest operation is made the context.
  • E. Context may be specified by a dashed line.
Answer:

E

Discussions

Question 4

How does OCL. refer to the contextual instance & the OCL expression?

  • A. me
  • B. this
  • C. self
  • D. context
  • E. yourself
Answer:

C

Discussions

Question 5

Which statements are true about OCL? (Choose three)

  • A. OCL is a typed language.
  • B. OCL is a query language.
  • C. OCL is a procedural language.
  • D. OCL is a specification language.
  • E. OCL is a programming language.
  • F. OCL is a programming and procedural language.
Answer:

A, B, D

Discussions

Question 6

When can an OCL expression be used to special a state change?

  • A. never
  • B. in all circumstances
  • C. when the stereotype <<volatile>> is used
  • D. when expressing the preconditions or an operation
  • E. when expressing the postconditions or an operation
Answer:

E

Discussions

Question 7

Evaluating OCL expressions may cause side effects in which situations?

  • A. never
  • B. in all circumstances
  • C. only when the stereotype <<volatile>> is used
  • D. only when expressing the algorithm of a behavior
  • E. only when expressing the postconditions of an operation
Answer:

A

Discussions

Question 8

What correctly describes the relationship between UML and the Object Constraint Language (OCL)?

  • A. The abstract syntax of the UML metamodel is expressed using OCL.
  • B. The well4ormedness rules of the UML metamodel are expressed using OCL only.
  • C. The abstract syntax of the UML metamodel are expressed using OCL and natural language.
  • D. The well-formedness rules of the UML metamodel are expressed using OCL and natural language.
  • E. Both the abstract syntax and concrete syntax of the UML metamodel are expressed using OCL.
Answer:

D

Discussions

Question 9

What are the names of the three compliance levels that organize the UML superstructure packages?

  • A. primary, secondary, tertiary
  • B. basic, intermediate, complete
  • C. partial, complete, interchange
  • D. basic, intermediate, advanced
  • E. simple, intermediate, advanced
Answer:

B

Discussions

Question 10

Which UML superstructure packages are mandatory compliance points?

  • A. The Kernel package.
  • B. The Classes, UseCases and Interactions packages.
  • C. All basic layer packages are mandatory compliance points.
  • D. All superstructure packages are optional compliance points.
  • E. All superstructure packages are mandatory compliance points.
Answer:

A

Discussions
To page 2