Question
Two dice are thrown simultaneously. Find the probability
that sum of the numbers appeared on both the dice is at least 7.Solution
Total number of outcomes = 6 x 6 = 36
Favourable outcomes = {(1,6), (2,5), (2,6), (3,4), (3,5), (3,6), (4,3), (4,4), (4,5), (4,6), (5,2), (5,3), (5,4), (5,5), (5,6), (6,1), (6,2), (6,3), (6,4), (6,5), (6,6)}
=> Number of favourable outcomes = 21
Required probability = 21/36 = 7/12
The Banker's Algorithm is primarily used for:
Method overriding is an example of which type of polymorphism?
Which of the following scheduling algorithms minimizes average seek time?
What is the primary function of a router in a network?Â
What is a best practice for securing remote access in Windows and Unix/Linux environments?Â
What does Polymorphism mean in the context of OOP?
The latency of a network isÂ
What does "optimal substructure" mean in the context of Dynamic Programming?
Which of the following describes a major benefit of Continuous Integration (CI) in the software development lifecycle?Â
Consider the following C++ code:
#include
class Base {
public:
  virtual void show() = 0;
};
cl...