Skip to main contentSkip to solution

A security door opens for some badges and not for others. Every badge has three attributes, with permitted values as given below:

AttributePermitted values
Shapecircle or square or triangle
Colourred or blue or green
Bordersolid or dashed

The door's rule has the following characteristics:

  • The rule carries at most one condition per attribute.
  • A condition names a single permitted value for that attribute.
  • An attribute carrying no condition is unrestricted.
  • The door opens only for those badges that satisfy every condition in the rule.

For example, one possible rule is "green and solid", which would open for every green badge with a solid border, of any shape. Another possible rule is "triangle", which would open for every triangular badge, irrespective of its colour and border.

Two badges have been tested with the present rule. The attributes of the badges and the corresponding results are given below.

Badge No.AttributesResult
1circle, red, soliddoes not open
2circle, green, dashedopens

Which badge(s) among the following combination of attributes is/are certain not to open the door?

(i) triangle, blue, dashed

(ii) square, green, solid

Solution

✅ Correct Option: 2

The 6 possible rules (from the two tests) are:

RuleShapeColourBorder
R1anygreenany
R2anyanydashed
R3anygreendashed
R4circlegreenany
R5circleanydashed
R6circlegreendashed

A badge is certain not to open only if it fails under every one of these rules.

(i) triangle, blue, dashed → opens under R2 ("dashed"). Not certain to fail.

(ii) square, green, solid → opens under R1 ("green"). Not certain to fail.


Therefore, the answer is Neither (i) nor (ii).

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question