Question
A man has 15 friends out of which 7 are his relatives.
In how many ways can he invite his 9 friends in which at least 5 must be his relatives?Solution
relatives =7, not relatives = 15-7=8 You must invite 9 friends, out of which at least 5 must be relatives. You can invite in the following way: 5 out of 7 are related and 4 out of 8 are not related or 6 out of 7 are related and 3 out of 8 are not related or 7 out of 7 are related and 2 out of 8 are not related. =7C5× 8C4 +(7C6×8C3) +(7C7×8C2) =1470+392+28=1890.
What is the primary purpose of Apache Hive in the Hadoop ecosystem?
Which type of relationship does inheritance represent?
What is the primary goal of abstraction in computer science?
Consider three processes P1, P2, and P3 with burst times 10ms, 10ms, and 10ms respectively. If they arrive at time 0 and are scheduled using FCFS (First...
OLAP and OLTP differs in
Which OOP principle allows a class to acquire the properties and behaviors of another class?
Which of the following element in XSLT is used to apply a template repeatedly on each node?
What is the main role of Apache Pig?
Which type of polymorphism in Java is achieved through method overloading?
What is a characteristic feature of a dense index in a database indexing system?