Question
Seven person namely β A, B, C, D, E, F and G are
sitting in a row facing north. Each person likes different colour viz. White, Black, Red, Green, Orange, Yellow and Pink. All the given information are not necessary in same order. One who likes White sits third from right end. E, who doesnβt sit neighbor of one who likes White, sits second to left of one who likes Red. Only three person sits between C and one who likes White. E likes Pink. Only two person sits between D and one who likes Red. How many person sits right of one who likes Yellow? Statement I: B, who neither sits adjacent to one who likes Pink nor one who likes Red, sits second to right of one who likes Black. Only three person sits between one who likes Orange and A, who sits adjacent to E. Statement II: Only two person sits between D and G, who sits with one who likes Black. Only one person sits between one who likes Black and one who likes Green. Each of the questions below consists of a question and two statements numbered I and II given below it. You have to decide whether the data provided in the statements are sufficient to answer the question:Solution
We have: One who likes White sits third from right end. Only three person sits between C and one who likes White, that means C sits at extreme left end.Β E, who doesnβt sit neighbor of one who likes White, sits second to left of one who likes Red. E likes Pink, that means E sits second from left end. Β Only two person sits between D and one who likes Red, that D sits at extreme right end. Based on above given information we have: From Statement I:
Clearly, one person sits immediate right of one who likes Yellow. Hence, statement I and II together sufficient.
Which design pattern is most suitable for controlling access to a resource by limiting the number of clients that can use it concurrently?
The time complexity of binary search is:
In a binary tree, what is the maximum number of children a node can have?
Which type of AI is primarily used for adaptive mobile applications like virtual assistants?
Which of the following techniques is primarily used to address overfitting in machine learning models?
A data analysis algorithm requires processing data in a Last-In, First-Out (LIFO) manner. Which operation is used to get the most recently added element...
What type of relationship is represented by Aggregation in Object-Oriented Programming?
Consider the following sequence of stack operations:
PUSH(10) β PUSH(20) β PUSH(30) β POP() β PUSH(40) β POP() β POP()
What is...
Which of the following is true about triggers in a relational database?
Union-Find with path compression achieves nearly constant time because its complexity is: