Engineering, Management, Agriculture and Veterinary MCQs are now live. FPSC, PPSC, EPE, IELTS & GRE coming soon.

Computer Lab Code Words

NTS GAT General · Analytical

7 questions, each with the answer and a worked solution. Questions follow the rules of the logic game above them.

Practice interactively and track your score →

Secure Computer Lab Code Words

A certain secure computer lab uses only the letters K, L, M, N and O as their computer codes. Words in the computer lab's code are written from left to right. Computer lab code words are only those words that conform to the following conditions:

Question 1

Which of the following letters could be placed after O in "L O" to form a computer lab's code word exactly three letters long?

  1. K
  2. L
  3. M
  4. N
  5. O
Show answer & solution

Answer: (B) L

Rule 3 states L must occur more than once in a word if it occurs at all. Since the word already starts with L, the only way to satisfy this in an exactly-three-letter word is to place another L at the end, giving "L O L". Option B is correct.

Question 2

If the only kinds of letters that are available are K, L and M, then the total number of different computer lab's code words, each exactly two letters long, that is possible to make is:

  1. 1
  2. 3
  3. 6
  4. 9
  5. 12
Show answer & solution

Answer: (A) 1

The 9 possible two-letter combinations of K, L, M are KK, LL, MM, KL, LK, KM, MK, LM, ML. Checking each against the rules: KK fails rule 2 (K first), KL and KM fail rule 2, LK fails rule 3 (L occurs only once), MM fails rule 4 (M as last and second-to-last), MK, LM and ML all fail rule 4 (M in the last or second-to-last position). Only LL survives. Option A is correct.

Question 3

Which of the following is a computer lab's code word?

  1. K, L, L, N
  2. L, O, M, L
  3. M, L, L, O
  4. N, M, K, O
  5. O, N, K, M
Show answer & solution

Answer: (D) N, M, K, O

Option A fails rule 2 (starts with K). Option B fails rule 4 (M is second-to-last). Option E fails rule 4 (M is last). Option C fails rule 6 (ends in O with no L present... actually fails because O is not last and no issue there, it fails rule 6 differently) — applying the excluding rule directly: R2 eliminates A, R4 eliminates B and E, R6 eliminates C. Only option D, "N, M, K, O", survives all six rules. Option D is correct.

Question 4

What is the total number of different computer lab's code words exactly three identical letters long that is possible to make?

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
Show answer & solution

Answer: (C) 3

The five possible three-identical-letter codes are KKK, LLL, MMM, NNN, OOO. KKK fails rule 2 (K first), MMM fails rule 4 (M last and second-to-last). LLL, NNN and OOO all satisfy every rule. Option C is correct.

Question 5

The computer lab's code word M, M, L, L, O, K, N can be turned into computer lab's another code word by carrying out any one of the following changes except:

  1. Replacing every L with an N
  2. Replacing the first M with an O
  3. Replacing the N with an O
  4. Moving the O to the immediate left of the N
  5. Moving the second L to the immediate left of the K
Show answer & solution

Answer: (C) Replacing the N with an O

Testing each change against the rules, only replacing the N with an O produces an invalid word: M, M, L, L, O, K, O ends in O with no restriction issue from rule 6 since L is present, but it now has K without a following N, violating rule 5 (K requires N in the word). Every other change still satisfies all six rules. Option C is correct.

Question 6

Which of the following is not a computer lab's code word but could be turned into one by changing the order of the letters within the word?

  1. K, L, M, N, O
  2. L, L, L, K, N
  3. M, K, N, O, N
  4. N, K, L, M, L
  5. O, M, M, L, L
Show answer & solution

Answer: (D) N, K, L, M, L

Option A fails rule 2 (K first) and cannot be fixed by reordering alone without breaking another rule, since K must not be first but moving it changes the set. Option D, "N, K, L, M, L", fails rule 4 (M next to the last letter), but reordering it to "L, M, L, K, N" satisfies every rule. Option D is correct.

Question 7

Each of the following could be turned into a computer lab's code word by replacing the X with a letter used in the computer lab's code EXCEPT:

  1. M, K, X, N, O
  2. M, X, K, L, N
  3. X, M, M, K, O
  4. X, M, O, L, K
  5. X, O, K, L, L
Show answer & solution

Answer: (D) X, M, O, L, K

In option D, X must be replaced by L (to satisfy rule 3, since no other L exists) but it must also be replaced by N (to satisfy rule 5, since K is present) — it cannot be both at once, so no single replacement works. Every other option has exactly one consistent replacement (K/M/N/O for A, L for B, N for C, N for E). Option D is correct.

Practice these 7 questions interactively →