All Exams Test series for 1 year @ ₹349 only
Question

Directions: Study the following information carefully and answer the questions that follow:

There is a matrix of 4*4. The rows are represented as %, $, # and @ from the first to the fourth in the same order and the columns are represented as 1 to 4 from the first to the fourth in the same order.

Following operations are to be performed in the given order to obtain the whole matrix.

1. One diagonal of matrix is IBPS and the other diagonal is 2019 in the same order. Both have their first element in the first Column and 4th column respectively.

2. The immediate neighbor of any alphabet in the same row is the alphabetical position of that number.

3. The remaining places are to be filled by taking the difference between the two numbers surrounding that place in the same row.

In the obtained matrix, the value of the sum of all digits in the second column would be less than that of the third column.

The compiler of a PC will respond to the input by calculating the value of the string as per the following conditions.

1. If there are equal number of even and odd numbers in the string, then value of the string will be the absolute difference between all the even numbers and all the odd numbers.

2. If there are equal number of alphabets and numbers in the string, then the value of string will be the absolute difference between the alphabetical position of all the alphabets and all the numbers.

3. If there is only one even number in the string, then the value of string will be the addition of all the numbers in that string.

4. If there is a vowel in the string, then value of the string will be the alphabetical position of that vowel.

5. If none of the above mentioned conditions follow, then the value of the string will be obtained by subtracting the lowest number from the highest number in that string.

Note:

1. The value of an input is obtained by adding the values of all the strings and then the digits in that value is added up to the point where it becomes a single digit number and then it is taken as an input.

2. If only a single string is given, then the digits in that value is added upto the point where it becomes a single digit number and then it is taken as input.

3. If the value of an input is a prime number, then the program will be executed.

If the value of an input is an even number, then program will not be executed.

If the value of an input is both even and prime number, then program will be executed but it will show an error.

If the value of an input is other than the above mentioned values, then PC will hang.

Let us assume a matrix:

1

 2

3

4

%

1

2

C

4

$

J

6

7

8

#

9

10

T

12

@

O

14

15

16

AA = $3 @2 %1 #2, BB = @1 $3 %2

$3 denotes value in second row and column 3 which will be equal to 7.

Therefore AA = 7 14 1 10

So, this is satisfying condition 1. Hence the sum = (14 + 10) – (7 + 1) = 16

BB = O 7 2

So, this is satisfying condition 4. Thus, frequency = alphabetical position of O = 15

The values of AA and BB are added, and the final frequency is 16 + 15 = 31 which is a two digit number, So again adding them 3 + 1 = 4, which is a non-prime even number so the program will not be executed.

Consider the following four strings for all questions:

AA = $2 #1 @3 #3

BB = @1 %4 @3 %3

CC = $4 @2 #4 %1

DD = %4 @2 @4 #2

What is the correct option if only signal CC is taken into account?

The correct answer is

The PC will hang..

Understanding the Matrix Construction

The problem requires us to first construct a 4x4 matrix based on a set of given rules. The rows are labeled %, $, #, and @, and the columns are 1, 2, 3, and 4.

  1. Diagonal Elements: One diagonal (%,1 to @,4) is 'IBPS', and the other diagonal (%,4 to @,1) is '2019'.
  2. Alphabet Neighbors: The immediate neighbor of any alphabet in the same row is filled with the alphabetical position of that alphabet. This rule applies to empty neighbors.
  3. Remaining Elements: Remaining empty cells are filled by taking the difference between the two nearest numerical values surrounding that cell in the same row.

Let's construct the matrix step-by-step:

Step 1: Fill Diagonals (Rule 1)

Based on the first element positions (%,1 and %,4):

  • %,1 = I, $,2 = B, #,3 = P, @,4 = S
  • %,4 = 2, $,3 = 0, #,2 = 1, @,1 = 9

Initial matrix:

1 2 3 4
% I ? ? 2
$ ? B 0 ?
# ? 1 P ?
@ 9 ? ? S

Step 2: Apply Alphabet Neighbor Rule (Rule 2)

Fill empty neighbors of existing alphabets with their alphabetical position:

  • %,1 = I (pos 9). Empty neighbor %,2 gets 9.
  • $,2 = B (pos 2). Empty neighbor $,1 gets 2.
  • #,3 = P (pos 16). Empty neighbor #,4 gets 16.
  • @,4 = S (pos 19). Empty neighbor @,3 gets 19.

Matrix after applying Rule 2:

  1 2 3 4
% I 9 ? 2
$ 2 B 0 ?
# ? 1 P 16
@ 9 ? 19 S

Remaining empty cells are %,3, $,4, #,1, @,2.

Step 3: Apply Difference Rule (Rule 3)

Fill remaining cells by the difference between the two nearest numbers in the row, ignoring alphabets in between:

  • %,3: Between 9 (%,2) and 2 (%,4). Difference = |9 - 2| = 7. %,3 = 7.
  • @,2: Between 9 (@,1) and 19 (@,3). Difference = |9 - 19| = 10. @,2 = 10.
  • $,4: Nearest numbers in row $ are 2 ($,1) and 0 ($,3). Difference = |2 - 0| = 2. $,4 = 2.
  • #,1: Nearest numbers in row # are 1 (#,2) and 16 (#,4). Difference = |1 - 16| = 15. #,1 = 15.

Final constructed matrix:

  1 2 3 4
% I 9 7 2
$ 2 B 0 2
# 15 1 P 16
@ 9 10 19 S

Matrix Check Condition: The sum of digits in the second column should be less than that in the third column.

  • Second Column Values: I, 2, 1, 10. Sum of digits of numbers = 2 + 1 + (1+0) = 4. (Alphabetical position of I is 9, but the condition specifies "sum of all digits", implying only digits from numbers).
  • Third Column Values: 7, 0, P, 19. Sum of digits of numbers = 7 + 0 + (1+6) + (1+9) = 7 + 0 + 7 + 10 = 24.

Is 4 < 24? Yes. The matrix construction is consistent with the check condition.

Calculating the String Value (CC)

The given string is CC = $4 @2 #4 %1.

From the constructed matrix, the values are:

  • $4 = 2
  • @2 = 10
  • #4 = 16
  • %1 = I

So, the string CC consists of the elements: 2, 10, 16, I.

Applying Compiler Rules

The string CC is "2 10 16 I". It contains numbers (2, 10, 16) and an alphabet (I).

Let's evaluate the compiler rules in order:

  1. Equal number of even and odd numbers? Numbers are 2, 10, 16. All are even (3 even, 0 odd). Not equal.
  2. Equal number of alphabets and numbers? 1 alphabet (I), 3 numbers (2, 10, 16). Not equal (1 vs 3).
  3. Only one even number? Numbers are 2, 10, 16. There are three even numbers. Not applicable.
  4. Is there a vowel in the string? The alphabet is I. I is a vowel. Yes.

Rule 4 applies: If there is a vowel in the string, the value is the alphabetical position of that vowel.

The vowel is I. The alphabetical position of I is 9.

The value of string CC is 9.

Determining Program Execution

Note 2 states that if only a single string is given, the digits in its value are added up to a single digit, which is then taken as the input.

The value of CC is 9. This is already a single-digit number.

The input value for program execution is 9.

Now, let's check the program execution conditions based on the input value 9:

  • If the value is a prime number (like 2, 3, 5, 7, etc.), the program will be executed. 9 is not a prime number (it is divisible by 3).
  • If the value is an even number, the program will not be executed. 9 is an odd number.
  • If the value is both even and prime (only the number 2 fits this), the program will be executed but will show an error. 9 is neither.
  • If the value is other than the above mentioned values, the PC will hang.

Since 9 is not prime, not even, and not both even and prime, it falls into the category of "other than the above mentioned values".

Therefore, the PC will hang.

Was this answer helpful?

Important Questions from Conditional Matrix

  1. Select the set in which the numbers are related in the same way as are the numbers of the following sets.

    (30, 14, 8)

    (84, 12, 36)

  2. Select the option in which the numbers are related in the same way as are the numbers of the following sets.

    (NOTE: Operations should be performed on the whole numbers, without breaking down the numbers into its constituent digits. E.g. 13 – Operations on 13 such as adding /deleting /multiplying etc. to 13 can be performed. Breaking down 13 into 1 and 3 and then performing mathematical operations on 1 and 3 is not allowed)

    (24, 8, 96)

    (36, 4, 72)

  3. What is the value of input if only signal AA and BB is taken into account?

  4. What is the correct option if both signals AA and DD is taken as input?

  5. What will be the value of string if all four signals given is taken as input?

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App