Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Implement a custom function to calculate bootstrapped confidence intervals for the mean of a dataset.

Hard

Problem Statement

Implement a custom function to calculate bootstrapped confidence intervals for the mean of a dataset.

Sample Input

Dataset: c(5, 7, 9, 11, 13) 
Bootstrap Samples: 1000 
Confidence Level: 95%

Sample Output

Confidence Interval: 6.6, 11.4

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
bootstrap_ci <- function(data, num_samples, conf_level) { # Your logic here } # Call the function
Log in or sign up to run or submit your code.Log inSign up
Input
Dataset: c(5, 7, 9, 11, 13) 
Bootstrap Samples: 1000 
Confidence Level: 95%
Expected Output
Confidence Interval: 6.6, 11.4