1. Point out the wrong statement :
Correct Answer is : R provides only two tools to help you with debugging your code
2. Which of the following is primary tool for debugging?
Correct Answer is : debug()
3. ________ allows you to insert debugging code into a function a specific places
Correct Answer is : trace()
4. Point out the correct statement :
Correct Answer is : The traceback() function must be called immediately after an error occurs
5. _______ allows you to modify the error behavior so that you can browse the function call stack
Correct Answer is : recover()
6. ______ suspends the execution of a function wherever it is called and puts the function in debug mode
Correct Answer is : browser()
7. debug() flags a function for ______ mode in R mode.
8. What would be the output of the following code ?
> mean(x)
Error in mean(x) : object 'x' not found
> traceback()
Correct Answer is : 1: mean(x)
9. The recover() function will first print out the function call stack when an _______ occurs.
Correct Answer is : Error
10. The _______ and ________ of a discrete random variable is easy to compute at the console.
Correct Answer is : Mean, Variance
11. Which of the following simple the square root of σ square?
Correct Answer is : Standard deviation
12. The abbreviation of Cumulative Distributive Function is ________
13. Which function is used to simulate discrete uniform random variables?
Correct Answer is : Sample
14. The binomial distribution is based on _______ trial.
Correct Answer is : Bernoulli
15. The corresponding R function for the PMF is __________
Correct Answer is : Dbinom
16. The corresponding R function for the CDF is __________
Correct Answer is : Pbinom
17. Random variables defined via the _______ package.
Correct Answer is : Distr
18. MGF means _____________
Correct Answer is : Moment Generating Functions
19. The empirical cumulative distribution function can be called as __________
20. Two important methods in analysis is differentiation and __________ transformation.
Correct Answer is : Fourier