Question
Who among the following sits at extreme end of the
row? Read the following information carefully and answer the given questions. Ten people are seating on two parallel rows. M, N, O, P and Q are sitting in row 1 and facing towards south. F, G, H, J and K are sitting in row 2 and facing north. They like different colours - White, Green, Blue, Red, Yellow, Brown, Purple, Black, Pink and Magenta (not necessarily in the same order). M likes White and sits one of the extreme end of the row. Only two persons sit between the one who likes Magenta and the one who likes Pink. The one who likes Blue faces the one who sits immediate right of the one who likes Black. There are only two persons sit between M and the one who likes Red. J sits third to the left of F. G likes Yellow and sits one of the extreme end of the row. Only two persons sit between M and P. The one who likes Magenta sits diagonally opposite to the one who likes Brown. The one who like Green faces north. The one who likes Pink is not an immediate neighbour of M. The one who likes Purple faces the person who likes Blue. H is not an immediate neighbour of the one who likes Magenta. J neither likes Magenta nor Brown. Q sits third to the right of the one who likes Black. K doesn’t face N.Solution
Explanation : (i)- By using definite conditions, M likes White and sits one of the extreme end of the row (thus in case1-A either sit at the extreme right end and in case2- M sits at the extreme left end of the row). Only two persons sit between M and P. There are only two persons sit between M and the one who likes Red (that means P likes Red). (ii)- G likes Yellow and sits one of the extreme end of the row. J sits third to the left of F. J neither likes Magenta nor Brown (from all these conditions case1 will be eliminated and in case2- G sits at the extreme left end of the row then J sits to its immediate right and F at the right end of the row). The one who likes Magenta sits diagonally opposite to the one who likes Brown. Now in case2, there will be two possible cases, case-2(a) and case2 (b); as shown below: Case 2(a)
(iii)- H is not an immediate neighbour of the one who likes Magenta. Only two persons sit between the one who likes Magenta and the one who likes Pink. The one who likes Pink is not an immediate neighbour of M (from this case2 (a) will be eliminated). Q sits third to the right of the one who likes Black (Q likes Brown is fixed). The one who likes Green faces north (thus it is fixed in row-2). Now, the one who likes Purple faces the person who likes Blue. The one who likes Blue faces the one who sits immediate right of the one who likes Black (from this it is clear that the one who likes Black faces the one who likes Green). K doesn’t face N (thus K faces O). The final arrangement will be:
Which of the following is defined as an attempt to steal, spy, damage or destroy computer systems, networks, or their associated information?
Operator overloading in C++
In the context of Intelligent Systems, which of the following algorithms is primarily used for real-time pathfinding in robotics?
Given the following code snippet, what will be the output when the function findMax is called with the array arr = [1, 5, 3, 9, 2]?
def findMax...
- Which attack type specifically targets application-layer protocols like HTTP, DNS, and SMTP?
When using virtual memory, what happens when a page fault occurs and the operating system cannot find a free frame in physical memory?
Which of the following accurately describes the primary benefit of server virtualization in a data center environment?
Which database management system feature helps ensure that all transactions are completed successfully and consistently?
...Divide and conquer is used by
Which of the following is NOT a responsibility of the operating system's kernel?