Question
7 children are to be selected from a group of 8 boys and
6 girls. In how many ways will the children with at most 3 girls and at least 4 boys be selected?Solution
Case I:  4 boys and 3 girls can be selected, Number of ways of selection = 8C4 × 6C3 = 70 × 20 = 1400 Case II: 5 boys and 2 girls can be selected, Number of ways of selection = 8C5 × 6C2 = 56 × 15 = 840 Case III: 6 boys and 1 girl can be selected, Number of ways of selection = 8C6 × 6C1 = 28 × 6 = 168 Case IV: 7 boys can be selected, Number of ways of selection = 8C7 = 8 So, total number of ways of selecting the children = 1400 + 840 + 168 + 8 = 2416 ways
The major drawback of Shortest Remaining Time First is:
Long average turnaround time
Which of the following characteristics is NOT essential for cloud computing?
A system uses paging with a logical address space of 2^26 bytes and a page size of 4 KB. How many bits are required for the page number in the logical a...
Which data structure is most commonly used to efficiently implement a priority queue?
Which of the following real-world applications commonly uses a queue data structure to manage its operations?
Complete the Java code to replace all occurrences of a specific word (case-insensitive) in a string.
public class RegexReplacer {
  pu...
Backtracking is an algorithmic technique often used for problems that involve:
Consider the following code snippet (Java-like):
  class Animal {
    public void makeSound() {
      Syste...
What is the main purpose of Inheritance in OOP?
Consider the array arr = [1, 2, 3, 4, 5] and the following operations:
1. arr.insert(2, 9) (inserts 9 at index 2)
2. arr.pop(3) (remov...