gs gs110 Control Structures, Functions, Scoping Rules, Loop Functions and Debugging - Loop Functions - Quiz No.2

gs gs110 R Language Quiz

Online Quizzes Preparation

This quiz belongs to book/course code gs gs110 R Language of gs organization. We have 87 quizzes available related to the book/course R Language. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Control Structures, Functions, Scoping Rules, Loop Functions and. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.

NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.

Question 1: What will be the output of the following R code?

 > x <- list(a = 1:4, b = rnorm(10), c = rnorm(20, 1), d = rnorm(100, 5)) > lapply(x, mean) 
Question 2: Point out the wrong statement?
Question 3: What will be the output of the following R code?

 > x <- 1:4 > lapply(x, runif) 
Question 4: Which of the following R code will print the following result?

 [[1]] [1] 2.263808 [[2]] [1] 1.314165 9.815635 [[3]] [1] 3.270137 5.069395 6.814425 [[4]] [1] 0.9916910 1.1890256 0.5043966 9.2925392 
Question 5: Point out the correct statement?
Question 8: Which of the following is valid body of split function?
Question 9: What will be the output of the following R code?

 > f <- function(elt) { + elt[, 1] + } > lapply(x, f) 
Question 10: What will be the output of the following R code?

 > x <- list(a = 1:4, b = rnorm(10), c = rnorm(20, 1), d = rnorm(100, 5)) > sapply(x, mean) 


Online Quizzes of gs110 R Language

Other LANG related online quizzes

Other categories of gs Online Quizzes

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background