Searching for "M"

Q:

What is a binary semaphore? What is its use?

Answer

A binary semaphore is one, which takes only 0 and 1 as values. They are used to implement mutual exclusion and synchronize concurrent processes.

Report Error

View answer Workspace Report Error Discuss

Q:

Explain Belady's Anomaly?

Answer

Also called FIFO anomaly. Usually, on increasing the number of frames allocated to a process virtual memory, the process execution is faster, because fewer page faults occur. Sometimes, the reverse happens, i.e., the execution time increases even when more frames are allocated to the process. This is Belady's Anomaly. This is true for certain page reference patterns.

Report Error

View answer Workspace Report Error Discuss

Q:

What is the probability of getting 53 Mondays in a leap year?

A) 1/7 B) 3/7
C) 2/7 D) 1
 
Answer & Explanation Answer: C) 2/7

Explanation:

1 year = 365 days . A leap year has 366 days

A year has 52 weeks. Hence there will be 52 Sundays for sure.

52 weeks = 52 x 7 = 364days

366 – 364 = 2 days

In a leap year there will be 52 Sundays and 2 days will be left.

These 2 days can be:

1. Sunday, Monday

2. Monday, Tuesday

3. Tuesday, Wednesday

4. Wednesday, Thursday

5. Thursday, Friday

6. Friday, Saturday

7. Saturday, Sunday

Of these total 7 outcomes, the favourable outcomes are 2.

Hence the probability of getting 53 days = 2/7

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

Find the probability that it is either white or red ball when,one ball is drawn at random in a bag that contains 3 black,4 white and 5 red balls

A) 0.5 B) 0.75
C) 0.25 D) 0.8
 
Answer & Explanation Answer: B) 0.75

Explanation:

P(red ball) = 5/12

P(white ball) = 4/12

P(red or white ball) = 5/12 + 4/12 = 3/4 = 0.75

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

A bag contains 3 black, 4 white and 5 red balls. One ball is drawn at random. Find the probability that it is either black or red ball:

A) 2/3 B) 1/4
C) 5/12 D) 1/2
 
Answer & Explanation Answer: A) 2/3

Explanation:

P(black ball)=3/12

P(red ball)=5/12

P(black or red)=3/12+5/12=2/3

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

From well shuffled standard pack of 52 playing cards,one card is drawn. What is the probability that it is either a red card or black card?

A) 1/2 B) 3/4
C) 1 D) 1/3
 
Answer & Explanation Answer: C) 1

Explanation:

P(red cards)=26/52

P(black cards)=26/52

P(red or black cards)=26/52+26/52=1

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

What is the probability that it is either a heart card or diamond card, when a card is drawn from a well shuffled standard pack of 52 playing cards?

A) 1 B) 1/2
C) 3/4 D) 1/3
 
Answer & Explanation Answer: B) 1/2

Explanation:

P(heart cards)=13/52

P(diamond cards)=13/52

P(heart or diamond)=13/52+13/52=1/2

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

What is the probabiltiy of getting a mutliple of 2 or 5 when an unbiased cubic die is thrown?

A) 1/3 B) 1/2
C) 2/3 D) 1/6
 
Answer & Explanation Answer: C) 2/3

Explanation:

Total numbers in die=6

P(multiple of 2)=1/2

P(multiple of 5)=1/6

P(multiple of 2 or 5)=2/3

Report Error

View Answer Report Error Discuss

Filed Under: Probability