Multiple choice technology programming languages

Wrong pair of symbol-visibility scope ?

  1. +public

  2. #protected

  3. !package

  4. -private

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In UML class diagrams, visibility symbols are: + (public), - (private), # (protected), and ~ (package/default). Option B claims # represents protected, but # actually IS the correct UML symbol for protected. The question asks for the WRONG pair, and + for public, ! for package, and - for private are all correct. Only # for protected is correctly represented, making B the wrong statement if it claimed otherwise.