Question 10Asked in UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)

A computer program select an integer in the set {k : 1≤ k ≤10,00,000} at random and prints out the result. This process is repeated 1 million times. What is…

A computer program select an integer in the set {k : 1≤ k ≤10,00,000} at random and prints out the result. This process is repeated 1 million times. What is the probability that the value k = 1 appears in the printout at least once?
  1. A0.5
  2. B0.704
  3. C0.632121
  4. D0.68
Show answerHide answer

Correct answer: (C) 0.632121

Explanation

Probability of k = 1 in one trial = 1/1000000 = 10⁻⁶, so the probability of k ≠ 1 is 1 – 10⁻⁶. Probability that 1 is never printed in 10⁶ printouts = (1 – 10⁻⁶)^(10⁶) ≈ 1/e. Probability that 1 is printed at least once = 1 – (1 – 10⁻⁶)^(10⁶) ≈ 1 – 1/e = 0.632121.

From UGC NET Computer Science PYQ, December 2014 (Paper II & III, Selected Questions)

This is question 10 of UGC NET Computer Science PYQ, December 2014 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.