Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

OMG-OCUP2-FOUND100 Exam - Topic 8 Question 46 Discussion

Choose the correct answer: OpaqueExpression can use which languages?
D) any language
A) onlyOCL
B) only programming languages
C) only Mathematical Expressions

OMG-OCUP2-FOUND100 Exam - Topic 8 Question 46 Discussion

Actual exam question for OMG's OMG-OCUP2-FOUND100 exam
Question #: 46
Topic #: 8
[All OMG-OCUP2-FOUND100 Questions]

Choose the correct answer: OpaqueExpression can use which languages?

Show Suggested Answer Hide Answer
Suggested Answer: D

An OpaqueExpression in UML 2 is used to specify behavior in a textual form when it is not necessary to specify which language is used, or when it is not possible to use graphical notation. According to the UML 2 specification, an OpaqueExpression is not limited to any particular language; it can represent expressions written in any language.

The key characteristics of an OpaqueExpression are as follows:

The 'body' of an OpaqueExpression is a sequence of strings, where each string could be written in a different language. This means it has the capacity to include multiple languages simultaneously.

The 'language' attribute is optional and is used to indicate the languages of the respective 'body' parts.

The allowance for any language is clearly stated in the UML 2 Infrastructure Specification. OpaqueExpression is designed to be a flexible way to capture expressions that are not readily expressible in UML or when using a language outside the scope of UML (e.g., mathematical expressions, programming languages, or other domain-specific languages).


Contribute your Thoughts:

0/2000 characters
Elsa
3 days ago
Wait, can it really use any language? That seems too broad.
upvoted 0 times
...
Katina
8 days ago
I disagree, it can handle more than just OCL!
upvoted 0 times
...
Alease
14 days ago
Definitely A) onlyOCL, that's the standard.
upvoted 0 times
...
Matthew
19 days ago
I think it's D) any language.
upvoted 0 times
...
Sharee
24 days ago
I always thought it was limited to programming languages.
upvoted 0 times
...
Stevie
29 days ago
Wait, can it really use any language? That seems too broad.
upvoted 0 times
...
Vallie
1 month ago
I disagree, it can handle more than just OCL!
upvoted 0 times
...
Sharee
1 month ago
Definitely A) onlyOCL, that's the standard.
upvoted 0 times
...
Catherin
1 month ago
I think it's D) any language.
upvoted 0 times
...
Ammie
2 months ago
I thought it was limited to programming languages, but now I’m questioning that. I need to double-check my notes on this topic.
upvoted 0 times
...
Shakira
2 months ago
I’m leaning towards the idea that it can use multiple languages, but I’m confused about the specifics. Wasn’t there a similar question on our last quiz?
upvoted 0 times
...
Shasta
2 months ago
I remember practicing a question about OpaqueExpression, and it mentioned something about OCL specifically. Could it be that it only uses OCL?
upvoted 0 times
...
Kristal
4 months ago
I think OpaqueExpression can use any language, but I’m not entirely sure. It seems like it could be more flexible than just one type.
upvoted 0 times
...

Save Cancel