Question
Eight friends S, T, U, V, W, X, Y and Z are sitting in a
straight line facing north, but not necessarily in the same order. U sits third from the left end. Only one person sits between U and Y. W sits on immediate left of T. Z sits on the immediate right of X. Z sits on the left of V. Only one person sits between V and S. V is not on the left S. Who among the following sits between U and Y? Read the directions carefully and answer the following question.Solution
U sits third from the left end. _ _ U _ _ _ _ _ Only one person sits between U and Y. Here Y is possible in two places which are given below in Case(i) and Case(ii). Case(i) Y _ U _ _ _ _ _ Case(ii) _ _ U _ YÂ _ _ _ Only one person sits between V and S. V is not on the left S. Z sits on the left of V. Z sits on the immediate right of X. In Case(ii), S and V are possible in two places which are given below in Case(ii)(a) and Case(ii)(b). Case(i) Y _ U X Z S _ V Case(ii)(a) X Z U S YÂ V _ _ Case(ii)(b) X Z U _ YÂ S _ V W sits on immediate left of T. In Case(i) and Case(ii)(b), W and T are not possible as per the above given condition. So these cases are eliminated. Â X Z U S YÂ V W T So according to the above arrangement, S sits between U and Y.
Which of the following statements about normalization in relational databases is correct?
The amortized cost of appending an element at the end of a dynamic array is:
Which of the following scenarios violates Boyce-Codd Normal Form (BCNF) in a relational schema?
What is a key challenge in applying Natural Language Processing (NLP) techniques to real-world text data?
Which protocol is used by devices to obtain an IP address automatically in a network?
In a data warehouse, which of the following best describes the concept of "data granularity"?
What is the primary purpose of an Entity-Relationship (ER) Diagram in database design?
Which design pattern is best suited for managing the creation of objects without specifying their concrete classes?
Which SOLID principle emphasizes that a class should have only one reason to change?
Which of the following best illustrates Encapsulation in Object-Oriented Programming?