Question
Seven persons M, N, O, P, Q, R and S sit in a linear row
but not necessarily in the same order. Each of them faces towards the north. R sits second from an extreme end of the row. Three persons sit between R and Q. N sits immediate right of Q. P sits third to the right of O. P sits neither at the end of the row nor adjacent to N. M sits to the left of S. Who among the following sits at extreme left end of the row?Solution
R sits second from an extreme end of the row. Three persons sit between R and Q. N sits immediate right of Q.R sits either second from the extreme left end or extreme right end.Q sits either fourth to the right or left of R. ____ R ____ _____ ____ Q N ……. CASE 1 .____ Q N ____ ____ R ____ ……. CASE 2. P sits third to the right of O. P sits neither at the end of the row nor adjacent to N. M sits to the left of S. P sits second to the right of R and O sits immediate left of R. M sits immediate right of R. S sits immediate right of P. O R M P S Q N ……. CASE 1. Case 2 will get discarded . ____ Q N ____ ____ R ____ ……. CASE 2. Final arrangement O R M P S Q N
Which of the following is the primary reason why polymorphism is useful in Object-Oriented Programming (OOP)?
What is the primary purpose of an abstract class?
What is the space complexity of storing an adjacency matrix for a graph with V vertices and E edges?
What is the time complexity of inserting an element at the beginning of a singly linked list?
Which of the following is NOT a type of graph representation?
In a data analysis scenario involving a fixed-size dataset where elements need to be accessed frequently by their position, which data structure is gene...
In C++, which access specifier makes members accessible only from within the class itself and from friend functions/classes?
Deletion in Red-Black Tree may require:
Which data structure uses FIFO (First In, First Out)?
Which traversal method visits the root node first in trees?