Direction: 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 DRAG and the other diagonal is 2021 in the same order. Both have their first element in the first column and 4th column respectively.
2. The immediate neighbour 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 sum of the two numbers surrounding that place in the same row.
In the obtained matrix, the value of the sum of all digits in the third column would be less than that of the second 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 product of average of all the even numbers and average of 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 product of the sum of the alphabetical position of all the alphabets and sum of all the numbers.
3. If there is only one even number in the string, then the value of string will be the average 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 multiplying 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
|
%
|
4
|
C
|
2
|
1
|
#
|
12
|
10
|
T
|
9
|
@
|
15
|
16
|
14
|
O
|
$
|
J
|
8
|
7
|
9
|
AA = $3 @2 %1 #2, BB = @1 %4 $1 #3
$3 denotes value in second row and column 3 which will be equal to 7.
Therefore AA = 7 16 4 10
So, this is satisfying condition 5. Hence, multiplying the lowest number and the highest number in that string = 4 × 16 = 64
BB = 15 1 J T → 15 1 10 20
So, this is satisfying condition 2.
Sum of 15 + 1 = 16; Sum of 10 + 20 = 30
The product of the sum of the alphabetical position of all the alphabets and sum of all the numbers = 30 × 16 = 480
The values of AA and BB are added, and the final frequency is 64 + 480 = 544 which is a two digit number, So again adding them 5 + 4 + 4 = 13, again adding 1 + 3 = 4 which is not a prime number so the program will not be executed.
Consider the following four strings for all questions:
AA = @1 $3 %3 #4
BB = %2 @3 #3 $2
CC = %4 $2 @3 $4
DD = $2 #1 @1 $1