logo

AQA A-Level Computer Science practice

Which UML notation represents composition?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Programming paradigms

Exam-style question

Try this first

Which UML notation represents composition?.

  1. A.A black diamond line
  2. B.A white diamond line
  3. C.A plus sign beside a member
  4. D.A hash symbol beside a member

Answer and explanation

Concise answer

A black diamond line

Why this is correct

In UML, composition is represented by a black diamond line. Aggregation is represented by a white diamond line.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions