MCQs R Debugging 6

In R Language, the debug() function allows the user to step through the function’s execution, line by line. At any point, we can print out values of variables or produce a graph of the results within the function. These MCQs are about Debugging in R language using different functions.

MCQs about Debugging and Traceback in R Language

1. Which of the following functions initiates an interactive debugging environment that allows you to step through code one expression at a time?

 
 
 
 

2. Which of the following functions allows you to temporarily insert pieces of code into other functions to modify their behavior?

 
 
 
 

3. Debugging is the process of

 
 
 
 

4. What is the microbenchmark package useful for?

 
 
 
 

5. What does the traceback( ) function do?

 
 
 
 

6. Which function is better for analyzing fast-running functions: profvis( ) or microbenchmark( )?

 
 
 
 

7. What does the profvis( ) function do?

 
 
 
 

8. When should the traceback( ) function be called?

 
 
 
 

9. What does calling trace(“f”) for function “f( )” do

 
 
 
 

10. What does the Rprof( ) function do?