Searching for "B"

Q:

What is busy waiting?

Answer

The repeated execution of a loop of code while waiting for an event to occur is called busy-waiting. The CPU is not engaged in any real productive activity during this period, and the process does not progress toward completion.

Report Error

View answer Workspace Report Error Discuss

Q:

If p:q are the odds in favour of an event,then the probability of that event is:

A) p/q B) p/(p+q)
C) q/(p+q) D) none
 
Answer & Explanation Answer: B) p/(p+q)

Explanation:

Total number of cases=p+q

Favourable cases=p

Probability of that event is=p/(p+q)

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

The probabiltiy that throw of two dice yields a total of 5 or 6 is:

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

Explanation:

Total number of cases=36

Number of favourable cases(sum 5 or 6)=10

P(getting total of 5 or 6)=10/36=5/18

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

What is the Translation Lookaside Buffer (TLB)?

Answer

In a cached system, the base addresses of the last few referenced pages is maintained in registers called the TLB that aids in faster lookup. TLB contains those page-table entries that have been most recently used. Normally, each virtual memory reference causes 2 physical memory accesses- one to fetch appropriate page-table entry, and one to fetch the desired data. Using TLB in-between, this is reduced to just one physical memory access in cases of TLB-hit.

Report Error

View answer Workspace Report Error Discuss

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