It is a poorly worded Q. Using output they are accessible and not without. But the Q only asks if they "are accessible" which is A. If the Q added "by default" on the end, then it would be B.
B. False
Variables declared within a module are not accessible outside of the module by default. To expose the values of those variables to other modules or the root configuration, you need to use output values. Output values are declared using the output block in the module, and they serve as a way to expose certain values from a module so that they can be consumed by other modules or configurations.
B. False.
Variables declared within a module have module-level scope and can only be accessed within the module. If a variable in a module needs to be accessed outside of the module, it must be exposed as an output.
It is a bit confusing question, as you pointed out, they are accessible if they are passed out as output variables. so yes, they are. I am not sure if that's the "catch" of this question ..
these variables are not automatically accessible outside of the module unless they are explicitly passed out as output variables
upvoted 4 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Mail1964
Highly Voted 1 year, 4 months agocamps
Highly Voted 1 year, 7 months agoprincajen
Most Recent 1 year, 9 months agolezgino
1 year, 9 months agomocnak
1 year, 10 months agoInformationOverload
1 year, 10 months ago