Vidyalelo
R Programming · all questions

Control Structures in R Programming
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

207

Questions

10/11

Page

Pick an option on a question to see the right answer and solution.

Point out the correct statement?

Select an option to see the answer and solution.

Which of the following statement can be used to explicitly control looping?

Select an option to see the answer and solution.

. . . . . . . . prints out the function call stack after an error occurs.

Select an option to see the answer and solution.

. . . . . . . . allows you to insert debugging code into a function a specific places

Select an option to see the answer and solution.

What will be the output of log (-5.8) when executed on R console?

Select an option to see the answer and solution.

Which of the following R syntax is correct for while loop?

Select an option to see the answer and solution.

Point out the wrong statement?

Select an option to see the answer and solution.

Which package can be integrated with dplyr for large fast tables?

Select an option to see the answer and solution.

Which package in R supports the exploratory analysis of genomic data?

Select an option to see the answer and solution.

Point out the correct statement?

Select an option to see the answer and solution.

Which function basically finds the intersection between two different sets of data?

Select an option to see the answer and solution.

. . . . . . . . can contain heterogeneous inputs.

Select an option to see the answer and solution.

. . . . . . . . is one type of the simplest machine learning classification algorithms that is a subset of supervised learning based on lazy learning.

Select an option to see the answer and solution.

hat will be the output of the following R code?
> centre <- function(x, type) {
+ switch(type,
+        mean = mean(x),
+        median = median(x),
+        trimmed = mean(x, trim = .1))
+ }
> x <- rcauchy(10)
> centre(x, "mean")

Select an option to see the answer and solution.

Point out the wrong statement?

Select an option to see the answer and solution.

What are the data types in R on which binary operators can be applied?

Select an option to see the answer and solution.

Point out the correct statement?

Select an option to see the answer and solution.

. . . . . . . . function is used for reading the .csv file in R language.

Select an option to see the answer and solution.

If a programmer wants the output to be a list then . . . . . . . . function is used.

Select an option to see the answer and solution.

R code can be tested using . . . . . . . . package.

Select an option to see the answer and solution.