सशर्त कूटलेखन
Conditional Coding
Conditional coding gives a table of coding rules plus exception conditions, and asks you to code a group of letters or digits. Apply the base rule first, then check every exception in the order printed. Most wrong answers come from missing an exception rather than from the base rule.
How to work a conditional set
- Read all the conditions before coding anything.
- Apply the base coding rule to every element.
- Check each condition against the group in the order listed.
- Apply only the first condition that matches, unless the question says otherwise.
Where the exception usually sits
SSC almost always places the exception at the first or last element of the group, or triggers it when two elements of the same type appear together. Check those positions before scanning the middle.
Scan the first and last elements for exception triggers before the middle ones
Worked rule set
Suppose the base rule codes each letter by the symbol beside it, with two conditions: if the group begins with a vowel, the first and last codes are swapped, and if the group ends with a consonant, the last code becomes a star.
| Group | Base code | Condition applied | Final code |
|---|---|---|---|
| A B C D | 1 2 3 4 | Begins with a vowel: swap first and last | 4 2 3 1 |
| B C D E | 2 3 4 5 | None applies | 2 3 4 5 |
| B C D F | 2 3 4 6 | Ends with a consonant: last becomes a star | 2 3 4 star |
Solved examples
Example 1. Using the rule set above, code the group A B C D. It begins with a vowel, so the first and last codes swap, giving 4 2 3 1.
Example 2. Code the group B C D E. It neither begins with a vowel nor ends with a consonant, so the base code stands: 2 3 4 5.
Example 3. Code the group B C D F. It ends with a consonant, so the last code becomes a star, giving 2 3 4 star.
Example 4. If a group satisfies two conditions at once, which applies? Unless the question states otherwise, only the first condition listed is applied, which is why reading the conditions in order matters.
Traps SSC repeats
✗ Apply every condition that seems to match | ✓ Apply only the first one that matches, unless told otherwise
✗ Code the group before reading the conditions | ✓ Read all conditions first, then code
Sabse pehle saari shartein padho, phir code karo. Base rule lagane ke baad shart yaad aana hi sabse mehnga waqt-nuksan hai.
Exam pointer — Conditional coding appears in some shifts and is the slowest form of coding, taking 50 to 70 seconds because of the rule checking. When it appears it is usually as a set of two or three questions sharing one rule table, which makes it worth attempting, since the reading cost is paid once and spread across several marks.
Frequently Asked Questions
How do I approach conditional coding questions?
Read all the conditions before coding anything, apply the base rule to every element, then check the conditions in the order they are printed and apply the first one that matches.
What if two conditions both apply to a group?
Apply only the first one listed, unless the question explicitly says that both should be used. Rule priority is the most common source of error in this topic.
Where are the exceptions usually triggered?
At the first or last element of the group, or when two elements of the same type appear together. Checking those positions first saves time.
Is conditional coding worth attempting under the sectional timer?
Yes, when it appears as a set sharing one rule table, because the reading cost is spread over two or three marks. A single standalone question is a weaker use of 60 seconds.
60-second recap
- Read every condition before coding.
- Apply the base rule, then the conditions in order.
- Only the first matching condition applies by default.
- Exceptions usually sit at the first or last element.
- Worth attempting when several questions share one rule table.
Now practise these coding-decoding questions in the free SSC CGL Tier 1 mock test on ExamAtlas.
हिंदी में — इसी टॉपिक का पूरा हिंदी अनुवाद नीचे दिया गया हौ
सशर्त कूटलेखन
Conditional coding में coding नियमों की एक table के साथ अपवाद वाली शर्तें दी जाती हैं, और अक्षरों या अंकों के एक समूह को code करने को कहा जाता है। पहले base rule लगाओ, फिर हर अपवाद को छपे हुए क्रम में जाँचो। ज्यादातर गलत उत्तर base rule से नहीं, बल्कि कोई अपवाद छूट जाने से आते हैं।
शर्त वाला सेट कैसे हल करें
- कुछ भी code करने से पहले सारी शर्तें पढ़ो।
- हर element पर base coding rule लगाओ।
- हर शर्त को दिए गए क्रम में समूह पर जाँचो।
- जब तक सवाल कुछ और न कहे, सिर्फ पहली मिलती हुई शर्त लगाओ।
अपवाद आमतौर पर कहाँ होता है
SSC लगभग हमेशा अपवाद को समूह के पहले या आखिरी element पर रखता है, या तब लगाता है जब एक ही तरह के दो element साथ आ जाएँ। बीच वाले देखने से पहले इन जगहों को जाँचो।
बीच वाले element से पहले पहले और आखिरी element में अपवाद के संकेत खोजो
हल करके दिखाया गया rule set
मान लो base rule हर अक्षर को उसके सामने लिखे चिह्न से code करता है, और दो शर्तें हैं: अगर समूह vowel से शुरू हो तो पहले और आखिरी code आपस में बदल जाते हैं, और अगर समूह consonant पर खत्म हो तो आखिरी code star बन जाता है।
| समूह | Base code | लगी हुई शर्त | अंतिम code |
|---|---|---|---|
| A B C D | 1 2 3 4 | Vowel से शुरू: पहला और आखिरी बदलो | 4 2 3 1 |
| B C D E | 2 3 4 5 | कोई शर्त नहीं लगती | 2 3 4 5 |
| B C D F | 2 3 4 6 | Consonant पर खत्म: आखिरी star बनेगा | 2 3 4 star |
हल किए हुए उदाहरण
उदाहरण 1. ऊपर वाले rule set से समूह A B C D को code करो। यह vowel से शुरू होता है, इसलिए पहला और आखिरी code आपस में बदलेंगे, यानी 4 2 3 1।
उदाहरण 2. समूह B C D E को code करो। यह न तो vowel से शुरू होता है और न consonant पर खत्म, इसलिए base code ही रहेगा: 2 3 4 5।
उदाहरण 3. समूह B C D F को code करो। यह consonant पर खत्म होता है, इसलिए आखिरी code star बनेगा, यानी 2 3 4 star।
उदाहरण 4. अगर कोई समूह एक साथ दो शर्तें पूरी करता है, तो कौन सी लगेगी? जब तक सवाल कुछ और न कहे, सिर्फ सूची में लिखी पहली शर्त लगती है, इसीलिए शर्तों को क्रम में पढ़ना जरूरी है।
SSC के दोहराए जाने वाले जाल
✗ हर वह शर्त लगा देना जो लगती हुई दिखे | ✓ जब तक कुछ और न कहा जाए, सिर्फ पहली मिलती शर्त लगाओ
✗ शर्तें पढ़ने से पहले ही समूह को code कर देना | ✓ पहले सारी शर्तें पढ़ो, उसके बाद code करो
Sabse pehle saari shartein padho, phir code karo. Base rule lagane ke baad shart yaad aana hi sabse mehnga waqt-nuksan hai.
Exam pointer — Conditional coding कुछ shifts में आता है और coding का सबसे धीमा रूप है, जिसमें नियम जाँचने के कारण 50 से 70 सेकंड लगते हैं। जब यह आता है तो आमतौर पर एक ही rule table पर आधारित दो या तीन सवालों के सेट के रूप में आता है, जिससे यह attempt करने लायक बन जाता है, क्योंकि पढ़ने की लागत एक बार लगती है और कई नंबरों में बँट जाती है।
Frequently Asked Questions
Conditional coding के सवाल कैसे शुरू करूँ?
कुछ भी code करने से पहले सारी शर्तें पढ़ो, हर element पर base rule लगाओ, फिर शर्तों को उसी क्रम में जाँचो जिसमें वे छपी हैं और पहली मिलती हुई शर्त लगा दो।
अगर एक समूह पर दो शर्तें लग रही हों तो?
सिर्फ पहली लिखी शर्त लगाओ, जब तक सवाल साफ न कहे कि दोनों इस्तेमाल करनी हैं। इस topic में सबसे ज्यादा गलती नियमों की प्राथमिकता में ही होती है।
अपवाद आमतौर पर कहाँ से शुरू होते हैं?
समूह के पहले या आखिरी element पर, या तब जब एक ही तरह के दो element साथ आ जाएँ। इन जगहों को पहले जाँचने से समय बचता है।
Sectional timer में conditional coding attempt करना ठीक है?
हाँ, जब यह एक ही rule table वाले सेट के रूप में आए, क्योंकि पढ़ने की लागत दो या तीन नंबरों में बँट जाती है। अकेला एक सवाल 60 सेकंड का कमजोर इस्तेमाल है।
60-second recap
- code करने से पहले हर शर्त पढ़ो।
- पहले base rule, फिर शर्तें क्रम में लगाओ।
- आमतौर पर सिर्फ पहली मिलती शर्त ही लगती है।
- अपवाद ज्यादातर पहले या आखिरी element पर होते हैं।
- कई सवाल एक ही rule table पर हों तो attempt करने लायक।
अब इन coding-decoding सवालों का अभ्यास ExamAtlas पर मुफ्त SSC CGL Tier 1 mock test में करो।
