Join 60,000+ competitive exam aspirants
In this question, a group of numbers/symbols is coded using letter codes as per the codes given below and the conditions which follow. The correct combination of codes following the conditions is your answer. If none of the conditions follow, then codes for the respective Number/Symbol are to be followed directly as given in the table. Number/symbol 2 @ 5 8 9 & \% # 6 + 7 3 1 \text{Code} P T F J W A E R D Q S B U L \text{Conditions}: If the first element is a number and the last a symbol, the codes for these two (\text{the first and the last elements}) are to be interchanged. \text{If the first element is an even number and the last an odd number}, the first and last elements are to be coded as. If both the second and third elements are perfect cubes, the third element is to be coded as the code for the second element. What is the code for the following group of numbers/symbols? 28%5
PRJF
RJ
PJRF
JR
JR
First check for specific conditions (even/odd/cubes) before mapping direct codes, as conditions override standard assignments.
First check for specific conditions (even/odd/cubes) before mapping direct codes, as conditions override standard assignments.
Analyze Input and Conditions
The input group is 2 8% 5. 2 is an even number (first element) and 5 is an odd number (last element). Condition 2 states: If the first element is an even number and the last an odd number, the first and last elements are to be coded as $.
Apply Rules to Intermediate Elements
The first element '2' becomes ''. The middle elements '8' and '%' remain unchanged as per their direct table mappings. Code for 8 is 'J' and code for % is 'R'. and the last element '5' becomes '$'. The middle elements '8' and '%' remain unchanged as per their direct table mappings. Code for 8 is 'J' and code for % is 'R'.
Final Assembly
Combining the modified first/last codes and the direct middle codes gives: (from2)+J(from8)+R(from%)+ (from 5), resulting in JR.
A: PRJF ignores the condition requiring for┬аevenтИТoddendpoints.B:RJ$ swaps the order of the middle characters J and R. C: PJRF fails to apply the condition for even-odd endpoints at all.
D is correct because applying the even-odd condition results in the first and last elements becoming $, while the middle elements 8 and % map directly to J and R respectively.
Always verify condition-based coding questions for overriding rules before applying static dictionary mappings to avoid common errors.