ReasoningHardSSC CGL · IBPS PO Mains · SBI PO

A three-digit number is coded by this rule: if the sum of the digits is even, every odd digit is increased by 1 (even digits stay); if the sum is odd, every even digit is decreased by 1 (odd digits stay). What is the code for 298?

  1. A. 218
  2. B. 197
  3. C. 892
  4. D. 982

Correct answer: B. 197

For 298 the digits are 2, 9, 8 (sum 19). Checking the condition picks one branch of the rule and gives 197.

हिंदी में

एक तीन अंकों की संख्या इस नियम से कूटबद्ध की जाती है: यदि अंकों का योग सम है तो प्रत्येक विषम अंक में 1 जोड़ा जाता है (सम अंक वैसे ही रहते हैं); यदि योग विषम है तो प्रत्येक सम अंक में से 1 घटाया जाता है (विषम अंक वैसे ही रहते हैं)। 298 का कूट क्या होगा?

  1. A. 218
  2. B. 197
  3. C. 892
  4. D. 982

उत्तर: B. 298 के अंक 2, 9, 8 हैं (योग 19)। शर्त की जाँच नियम की एक शाखा चुनती है और 197 देती है।

More Coding–Decoding questions

Exams that ask this topic