Searching for "and"

Q:

What is pre-emptive and non-preemptive scheduling?

Answer

Preemptive scheduling: The preemptive scheduling is prioritized. The highest priority process should always be the process that is currently utilized.


Non-Preemptive scheduling: When a process enters the state of running, the state of that process is not deleted from the scheduler until it finishes its service time.

Report Error

View answer Workspace Report Error Discuss

Q:

A box contains 100 balls, numbered from 1 to 100. If three balls are selected at random and with replacement from the box, what is the probability that the sum of the three numbers on the balls selected from the box will be odd?

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

Explanation:

P(odd) = P (even) =12 1(because there are 50 odd and 50 even numbers)

 

Sum or the three numbers can be odd only under the following 4 scenarios:

 

Odd + Odd + Odd = 12*12*1218

 

Odd + Even + Even = 12*12*12=18

 

Even + Odd + Even = 12*12*12=18

 

Even + Even + Odd = 12*12*12 = 18

 

Other combinations of odd and even will give even numbers. 

 

Adding up the 4 scenarios above:

 

1818+1818 = 48 = 12

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

Differentiate between Complier and Interpreter?

Answer

An interpreter reads one instruction at a time and carries out the actions implied by that instruction. It does not perform any translation. But a compiler translates the entire instructions

Report Error

View answer Workspace Report Error Discuss

Q:

What is logical and physical addresses space?

Answer

Logical address space is generated from CPU; it bound to a separate physical address space is central to proper memory management. Physical address space is seen by the memory unit. Logical address space is virtual address space. Both these address space will be same at compile time but differ at execution time.

Report Error

View answer Workspace Report Error Discuss

Q:

If x is chosen at random from the set {1,2,3,4} and y is to be chosen at random from the set {5,6,7}, what is the probability that xy will be even?

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

Explanation:
 

S ={(1,5),(1,6),(1,7),(2,5),(2,6),(2,7),(3,5),(3,6),(3,7),(4,5),(4,6),(4,7)}
Total element n(S)=12

xy will be even when even x or y or both will be even.
Events of x, y being even is E.
E ={(1,6),(2,5),(2,6),(2,7),(3,6),(4,5),(4,6),(4,7)}
n(E) = 8

P(E)=n(E)n(S)=812 = 4/3

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

A card is drawn from a pack of 52 cards. The card is drawn at random. What is the probability that it is neither a spade nor a Jack?

A) 9/13 B) 4/13
C) 10/13 D) 8/13
 
Answer & Explanation Answer: A) 9/13

Explanation:
 

There are 13 spade and 3 more jack


Probability of getting spade or a jack:
=13+352=1652=413

 

So probability of getting neither spade nor a jack:
=1−413 = 9/13

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

What is hard disk and what is its purpose?

Answer

Hard disk is the secondary storage device, which holds the data in bulk, and it holds the data on the magnetic medium of the disk.Hard disks have a hard platter that holds the magnetic medium, the magnetic medium can be easily erased and rewritten, and a typical desktop machine will have a hard disk with a capacity of between 10 and 40 gigabytes. Data is stored onto the disk in the form of files.

Report Error

View answer Workspace Report Error Discuss

Q:

A bag contains 12 white and 18 black balls. Two balls are drawn in succession without replacement. What is the probability that first is white and second is black?

A) 6/145 B) 36/145
C) 18/95 D) 12/145
 
Answer & Explanation Answer: B) 36/145

Explanation:
 

The probability that first ball is white:
=C112C130=1230=25


Since, the ball is not replaced; hence the number of balls left in bag is 29.
Hence the probability the second ball is black:
=C118C129=1829


Required probability =(25)×(1829)


=36/145

Report Error

View Answer Report Error Discuss