Question
Who lives in Flat-A of 3rd
floor? Answer the questions based on the information given below. Ten persons namely, M, N, O, P, Q, R, S, T, U and V live in a building of five floors in Silicon Valley Society in Bangalore. The ground floor is considered as 1st floor, the floor above it as 2nd floor and so on. Each floor consists of two types of flats i.e. Flat-A and Flat-B. On every floor, Flat A is in the west of Flat-B. The dimensions of each of the flats are same. Only one person lives in each flat. U lives on 2nd floor. R lives two floors above S such that they both live in either Flat-A or Flat-B of their floors. Q lives in the west of O on an odd numbered floor. V, who lives in the same type of flat as that of Q, lives either three floors below or above M in the same type of flat as that of M. N and O live in the same type of flats such that N lives two floors above O. T lives neither on the topmost floor nor to the east of M.Solution
Q lives in the west of O on an odd numbered floor. V, who lives in the same type of flat as that of Q, lives either three floors below or above M in the same type of flat as that of M. It implies that Q, V, M live in flat-A of their floors while N, O live in flat-B of their floors. . R lives two floors above S such that they both live in either Flat-A or Flat-B of their floors. The next point is that V and M have two floors in between them and Q lives on an odd numbered floor. So, if we start placing Q, V, M, we can never place R and S who are two floors apart from each other in flat-A of their floors. So, it clearly means that R, S live in Flat-B. Thus, we finally get two cases: Case 1: V, M live on 5, 2 floors in any order. And U lives on 2nd floor. Now, if we see the first case R and V by placing N and O on odd numbered floors.U lives on 2nd floor , we will never be able to place U on 2nd floor.So, the first case gets rejected. We are left with Case 2 only. Case 2: Thus, U lives in flat-A on 2nd floor.
What will be the output of the code
int main(){
int x= 10;
int y=10;
int s=-(-x-y)
cout<
return 0;
}
In a virtual memory system, what is a "page fault"?
Which type of transistor is less susceptible to thermal runaway?
What is the unit of electric current?
Which transport layer protocol provides connection-oriented, reliable, and ordered delivery of data packets between applications?
The result of SQL select statement is?
What is an ER diagram used for?
Which routing protocol is commonly used within an autonomous system (AS) to determine the best path for data packets?
Which distribution is used to model the number of successful outcomes in a fixed number of independent Bernoulli trials?
Which component in the MVC architecture communicates directly with the database?