Neco 2019 Computer Studies Question 19

Practice objective / multiple choice question 19 from the 2019 Neco Computer Studies examination.

Neco 2019 Computer Studies Objective / Multiple Choice Medium Difficulty
Question 19 NECO • 2019 • COMPUTER_STUDIES • objective

A program implements insertion sort on an array of \(n\) distinct integers and counts the number of key comparisons performed. For \(n = 20\) the program reports 190 comparisons. Assuming the input is a random permutation, the expected number of comparisons for insertion sort is \(\frac{n(n-1)}{4}\) and the variance is \(\frac{n(n-1)(2n+5)}{72}\). (a) Compute the expected number of comparisons and the standard deviation for \(n = 20\). (b) State whether the observed count of 190 comparisons lies within one standard deviation of the expected value.

Answer Options

A. Expected = 95; StdDev ≈ 14.00; Not within one standard deviation
B. Expected = 95; StdDev ≈ 15.42; Within one standard deviation
Correct Answer C. Expected = 95; StdDev ≈ 15.42; Not within one standard deviation
D. Expected = 100; StdDev ≈ 15.42; Not within one standard deviation
Correct Answer
C
Correct Option:
Expected = 95; StdDev ≈ 15.42; Not within one standard deviation

About This Question

This is Neco 2019 Computer Studies Question 19. It is one of the objective questions from the 2019 Neco Computer Studies examination.

Difficulty level: Medium .

Master the Exam!

You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.

Unlock Full Access Available for Android & Windows
Chat with Support