AI InterviewSearch…Search problems, topics, or pages…Ctrl KGet started
Mediumpermutations

~60s

Signals from flags

How many different signals can be made using 3 flags out of 5 different flags, where order matters?

Show the answer and the worked solution

Correct answer: C.

60

Worked solution

  1. P(5,3) = 5 × 4 × 3 = 60.

Answer: 60.

The idea

Signals depend on the order of the flags, so this is a permutation. C(5,3) = 10 would be the answer if order were irrelevant.

Shortcut. Fill the three positions in order: 5 choices, then 4, then 3 — 60.

Common trap. "125" — allowing a flag to be used more than once (5 × 5 × 5); there are only 5 different flags, each used once.

Permutations & Combinations

34 of 35

Level

Medium

Target time

~60s

Signals from flags — Aptitude Question

Signals from flags: How many different signals can be made using 3 flags out of 5 different flags, where order… Answer and worked solution on CodeKairo.

Question

How many different signals can be made using 3 flags out of 5 different flags, where order matters?

Options

  1. 10
  2. 20
  3. 60
  4. 125
Show the answer and the worked solution

Correct answer: C. 60

Worked solution

  1. P(5,3) = 5 × 4 × 3 = 60.

Answer: 60.

The idea

Signals depend on the order of the flags, so this is a permutation. C(5,3) = 10 would be the answer if order were irrelevant.

Shortcut. Fill the three positions in order: 5 choices, then 4, then 3 — 60.

Common trap. "125" — allowing a flag to be used more than once (5 × 5 × 5); there are only 5 different flags, each used once.

All Permutations & Combinations questions · placement mock tests