Question
Who among the following person likes yellow?
Study the following information carefully and answer the given below. Six persons – A, B, C, D, E and F are living in a six-storey building, but not necessarily in the same order. They like different colours – Pink, Green, Red, Yellow, Black and White. The lower-most floor is numbered as 1 and the floor immediately above is numbered as 2 and so on. Only two persons live between the one who likes red and E, who lives above the third floor. D lives immediately below the one who likes red. The one who likes yellow lives two floors above D. A lives three floors above the one who likes pink. A doesn’t like yellow. No one lives between the one who likes black and white. Only three persons live between B and the one who likes white. The one, who likes pink, lives on the adjacent floor of C.Solution
We have, Only two persons live between the one who likes red and E, who lives above the third floor. D lives immediately below the one who likes red. From this condition, there are two possibilities
Again we have, The one who likes yellow lives two floors above D. A lives three floors above the one who likes pink. A doesn’t like yellow.
Again we have, No one lives between the one who likes black and white. Only three persons live between B and the one who likes white. The one, who likes pink, lives on the adjacent floor of C. From the above condition, case 1 gets eliminated. 
The "load factor" of a hash table is a critical metric. What does it represent?
Predict the output
list1 = ['physics', 'chemistry', 1997, 2000]
list2 = [1, 2, 3, 4, 5, 6, 7 ]
print "list1[0]: ", list1[0]Â Â Â ...
Which of the following is a default connector for Shielded twisted pair?
Consider a singly linked list: 1 -> 2 -> 3 -> 4 -> None. If a delete_node(head, 3) function is called (which deletes the node with value 3), what will b...
Which type of inheritance in C++ allows a class to inherit from more than one base class?
Which of these is a key characteristic of SaaS (Software as a Service)?
Which of the following best explains why communication latency is generally higher in microservices compared to monolithic architectures?Â
A C function attempts to find a substring.
#include
#include
char* find_substring(char* haystack, char* needle...
In a common backtracking approach to generate permutations of a string, elements are swapped to explore different arrangements. Complete the line that s...
When a large number of analog signal is to be converted to digital form, an analog multiplexer is used. The best suites analog to digital converter for ...