Question
Six persons D, E, F, M, N and O live in a six storey
building but not necessarily in the same order. The bottommost floor is numbered as 1st and the topmost floor is numbered as 6th. F lives two floors above N. M lives just below O. O lives on a prime numbered floor. E lives below F but above D. D doesn't live below M. Who lives on 4 th floor?Solution
F lives two floors above N. M lives just below O. O lives on a prime numbered floor.
We will have three cases, first, when O lives on 2 nd floor, second, when O lives on 3 rd floor and third when O lives on 5 th floor.
E lives below F but above D. D doesn't live below M.
Case 3 gets eliminated.
In case 1, F lives on 6 th floor, E lives on 5 th floor.
In case 2, E lives on 5 th floor and D lives on 1 st floor but this case will get discarded as D doesn't live below M.
The final arrangement is as follows. 
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?