Question
Two Dice are thrown simultaneously. Find the probability
that the number on the first dice is more than the number of 2nd Dice.Solution
When two Dice are thrown simultaneously then – Total number of possible cases =62 =36 Number of favorable cases – (2,1) (3,1) (3,2) (4,1) (4,2) (4,3) (5,1) (5,2) (5,3) (5,4) (6,1) (6,2) (6,3) (6,4) (6,5) Total number of favorable cases = 15 Probability = 15/36 =5/12
What does Polymorphism mean in the context of OOP?
What is the purpose of a heuristic function in AI search algorithms?
In a nodal analysis a circuit with 10 nodes will have _______ unknown voltage and _______equation.Â
Which heuristic search strategy uses both cost so far and estimated cost to goal?
Consider the following C code snippet designed to calculate the sum of digits of a non-negative integer:
  #include
  in...
A C function insert(Node* root, int data) for a BST.
#include
typedef struct Node {
  int data;
  struct ...
What is the main drawback of the Minimax algorithm?
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...
The kelvin double bridge is used for______
You encounter a bug that only appears intermittently and is difficult to reproduce. What is this type of bug often called?