Question
How many floors are there between W and S?
Study the following information carefully and answer the below questions Eight persons- T, U, V, W, X, Y, Z, and S are living in the eight-storey building. The lowermost floor is numbered as one and the topmost floor is numbered as eight. No two persons live on the same floor. Z lives three floors above X who lives on an odd numbered floor. Y lives above Z but not on an odd numbered floor. The number of floors above Y is the same as below S. U lives immediately above W. The number of floors between W and T is the same as between S and X. V lives below T.Solution
We have, Z lives three floors above X who lives on an odd numbered floor. From the above condition, there are three possibilities. Again we have, The number of floors above Y is the same as below S. From the above condition, case3a gets eliminated.
Again we have, U lives immediately above W. The number of floors between W and T is the same as between S and X. V lives below T. From the above condition, case2 gets eliminated. case3 shows the final arrangement.
Predict the correct output

In red-black tree, if the parent node is red, colour of child nodes will be?
In tuple calculus, what does the ∃ symbol represent?
What is the purpose of the "self" parameter in a Python class method?
In dynamic programming, what is memoization?
In the context of ADTs, what does "encapsulation" refer to?
What does the "Model" represent in the MVC architecture?
What is the port number for HTTPS?
What this code line say?
int (*p )(char *a)Â Â Â Â Â Â Â Â Â
Which machine learning models are trained to make aseries of decisions based on the rewards and feedback they receive for their actions