A person has 12 friends out of which 7 are relatives. In how many ways can he invite 6 friends such that at least 4 of them are relatives?
No. of non-relative friends = 12-7=5 He may invite 6 friends in following ways: (a). 4 relatives + 2 non-relatives = 7C 4X5C2 (b). 5 relatives + 1 non-relative = 7C 5X5C1 (c). 6 relatives + 0 non-relative = 7C 6 ∴ Reqd. no. of ways = ( 7C 4X 5C2) + ( 7C 5X5C1)+ 7C 6 =`(35xx10) + (21xx5) + 7 = 462`
Which command is used to display the contents of a file in a Unix/Linux system?
The preorder traversal of a binary search tree is 15, 10, 12, 11, 20, 18, 16, 19. Which one of the following is the postorder traversal of the tree?
What is the role of the shell in an operating system?
What consensus mechanism is used by the Bitcoin blockchain?
Which algorithm is used to search for a specific element in a sorted array by repeatedly dividing the search interval in half?
The SI unit for measuring energy is:
What is the goal of instruction pipelining in a CPU?
In Hadoop, what is the purpose of the MapReduce paradigm?
DCL provides commands to perform which operations?
Which layer of the OSI model is responsible for establishing, managing, and terminating network connections?