Question
At the conclusion of a party, a total number of 28
handshakes were exchanged. Every person in the party shook hands with every other person who atended the party. What was the total number of persons who atended the party?Solution
Let n be the number of people present. For every handshake, 2 persons are required. Since each handshake is between two persons, the total number of handshakes = nC2 =28 n! /{(n-2)! * 2!} = 28 n(n-1) = 56 So, n =8
In mobile computing, which type of network allows devices to connect directly to each other without using a central router or switch?
Which type of Memory is typically the fastest in a computer system?
In C, what is the output of printf("%d", 5/2);?
Which of the following is correct about C++ constructors?
Which of the following is used to handle exceptions in Java?
In Python, what does len() function do?
Which of the following is used to declare a list in Python?
Which of the following algorithms is commonly used in Machine Learning for clustering tasks?   Â
Which of the following is true about MergeSort?
In Java, which method is used to start a thread?