BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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

Posted by Bo on May 14, 2026 at 09:29 PM

Choose the correct answer: OpaqueExpression can use which languages?

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).


Get Premium OMG-OCUP2-FOUND100 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
31 comments · newest first
CH
Chauncey 7 hours ago
I feel like B) only programming languages could be a trap answer.
CO
Colton 5 days ago
But OCL is limiting! D) covers more options.
LE
Leslee 11 days ago
I'm leaning towards A) only OCL. Seems more specific.
JO
Jose 16 days ago
I agree, D) makes sense. It can adapt to various contexts.
OL
Olive 21 days ago
I think it's D) any language. OpaqueExpression is flexible.
MI
Mila 26 days ago
Definitely D). It’s meant to be versatile for different contexts.
LA
Lashanda 1 month ago
I feel like B) only programming languages could be a trap answer.
EL
Elfriede 1 month ago
But OCL is just one option. D) makes more sense overall.
LO
Lon 1 month ago
I'm leaning towards A) only OCL. It seems more specific.
LE
Lennie 2 months ago
I agree! It can handle various languages, not just one type.
JU
Julio 2 months ago
I think the answer is D) any language. OpaqueExpression is flexible.
WI
Willodean 2 months ago
I’m leaning towards B) only programming languages. Feels more specific.
CH
Chauncey 2 months ago
D) makes the most sense. Why restrict it?
JA
Jacklyn 2 months ago
But what if it's limited? A) onlyOCL seems safer.
EV
Evan 2 months ago
I feel like D) is the best choice too. It covers all bases.
GW
Gwenn 3 months ago
I agree, but some might argue for A) onlyOCL.
SC
Scarlet 3 months ago
I think it's D) any language. OpaqueExpression is versatile.
DA
Daren 3 months ago
I always thought it was limited to programming languages.
EL
Elsa 3 months ago
Wait, can it really use any language? That seems too broad.
KA
Katina 3 months ago
I disagree, it can handle more than just OCL!
AL
Alease 3 months ago
Definitely A) onlyOCL, that's the standard.
MA
Matthew 4 months ago
I think it's D) any language.
SH
Sharee 4 months ago
I always thought it was limited to programming languages.
ST
Stevie 4 months ago
Wait, can it really use any language? That seems too broad.
VA
Vallie 4 months ago
I disagree, it can handle more than just OCL!
SH
Sharee 4 months ago
Definitely A) onlyOCL, that's the standard.
CA
Catherin 4 months ago
I think it's D) any language.
AM
Ammie 5 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.
SH
Shakira 5 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?
SH
Shasta 5 months ago
I remember practicing a question about OpaqueExpression, and it mentioned something about OCL specifically. Could it be that it only uses OCL?
KR
Kristal 7 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.
0/2000 characters

Save Cancel