JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
R interview questions part 33
R interview questions part 33
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Point out the correct statement :
A. The Rprofiler() function starts the profiler in R
B. Using system.time() allows you to test certain functions or code blocks to see if they are taking excessive amounts of time
C. R must not be compiled with profiler support
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Using system.time() allows you to test certain functions or code blocks to see if they are taking excessive amounts of time
2. R comes with a ________ to help you optimize your code and improve its performance.
A. debugger
B. monitor
C. browser
D. profiler
Show Correct Answer
Correct Answer is :
debugger
3. The _______ function computes the time (in seconds) needed to execute an expression.
A. system.timedeb()
B. system.time()
C. system.datetime()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
system.time()
4. Point out the correct statement :
A. Rprofiler() tabulates how much time is spent inside each function
B. Rprof() keeps track of the function call stack at regularly sampled intervals
C. By default, the profiler samples the function call stack every 2 seconds
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Rprof() keeps track of the function call stack at regularly sampled intervals
5. system.time function returns an object of class _______ which contains two useful bits of information.
A. debug_time
B. proc_time
C. procedure_time
D. all of the mentioned
Show Correct Answer
Correct Answer is :
proc_time
6. _________ time is time charged to the CPU(s) for the R expression.
A. elapsed
B. user
C. response
D. all of the mentioned
Show Correct Answer
Correct Answer is :
elapsed
7. The elapsed time may be ________ than the user time if your machine has multiple cores/processors
A. smaller
B. greater
C. equal to
D. all of the mentioned
Show Correct Answer
Correct Answer is :
smaller
8. Parallel processing is done via __________ package can make the elapsed time smaller than the user time.
A. parallel
B. statistics
C. distributed
D. none of the mentioned
Show Correct Answer
Correct Answer is :
parallel
9. You can time ________ expressions by wrapping them in curly braces within the call to system.time().
A. smaller
B. longer
C. error
D. all of the mentioned
Show Correct Answer
Correct Answer is :
longer
10. The profiler can be turned off by passing _________ to Rprof().
A. 0
B. 1
C. 2
D.
Show Correct Answer
Correct Answer is :
11. Point out the correct statement :
A. Rprof() is used to turn off the profiler
B. At each line of the output, the profiler writes out the function call stack
C. The summaryprof() function tabulates the R profiler output
D. All of the mentioned
Show Correct Answer
Correct Answer is :
At each line of the output, the profiler writes out the function call stack
12. How many methods exist for normalizing the data ?
A. one
B. two
C. three
D. profiler
Show Correct Answer
Correct Answer is :
two
13. _______ divides the time spend in each function by the total run time
A. “by.sum”
B. “by.total”
C. “by.self”
D. All of the mentioned
Show Correct Answer
Correct Answer is :
“by.total”
14. Point out the correct statement :
A. “by.total” first subtracts out time spent in functions above the current function in the call stack
B. The summaryRprof() function calculates how much time is spend in which function
C. By default, the profiler samples the function call stack every 0.02 seconds
D. None of the mentioned
Show Correct Answer
Correct Answer is :
By default, the profiler samples the function call stack every 0.02 seconds
15. Which of the following function actually fits the linear model ?
A. lm.time()
B. lm.date()
C. lm.fit()
D. All of the mentioned
Show Correct Answer
Correct Answer is :
lm.fit()
16. _________ time is time charged to the CPU(s) for the R expression.
A. elapsed
B. user
C. response
D. all of the mentioned
Show Correct Answer
Correct Answer is :
elapsed
17. The final bit of output that summaryRprof() provides is the ______ interval and the total runtime.
A. response
B. sampling
C. processing
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sampling
18. Which of the following statement gives sampling interval ?
A. $sampling.interval
B. $sampling.time
C. $sampling.date
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$sampling.time
19. Which of the following code is not profiled ?
A. C
B. C++
C. Java
D. All of the mentioned
Show Correct Answer
Correct Answer is :
C
20. The ________ function takes an arbitrary number of arguments and concatenates them one by one into character strings.
A. copy()
B. paste()
C. bind()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
copy()
Similar Interview Questions
Search for latest jobs
Find Jobs