R Programming Mcqs
Q.1: Which of the following commands is used to load the "xlsx" package into the R workspace?X
A. install.packages('xlsx')
B. any(grepl('xlsx'.installed.packages()))'
C. read.xlsx()
D. library('xlsx')
Q.2: Which of the following options is used for checking the directory to which the R workspace is pointing?g
A. dir
B. getwd
C. user.dir
D. getcwd
Q.3: Which of the following control structures is used to execute an infinite loop?N
A. next
B. for
C. while
D. repeat
Q.4: In R programming language. which of the following are the loop control statements?R
A. repeat
B. while
C. break
D. break
Q.5: To create a relationship model, the lrn() function is used in R. Which of the following are the valid parameters for this function?
A. formula, which is a symbol. presenting the relation between x and y.D
B. data. which is the vector on which the formula will be applied.?
C. object, which is the formula that is already created using the lm0 function.L
D. newdata, which is the vector containing the new value for the predictor variable.Q
Q.6: In R programming language, the library(x) function:3
A. will load specified data sets. &
B. will load add-on packages
C. will load the datasets written with save. ,
D. will start the HTML version of help.$
Q.7: In R programming. which of the following are the valid values for the data type, Numeric?Y
A. 123L
B. 1 1 123
C. 999L
D. 2 999
Q.8: In R programming. which of the following functions are included in the standard Strings Library?`
A. grep(pattern.x)
B. match(x,table)
C. merge(a,b)
D. choose(n, k)
Q.9: Which of the following statements is/are correct?1
A. print(rootnode[[1]]11]]) will get the first element of the second nodeL
B. printfrootnodeflimm) will get the first element of the first node.T
C. xmlToDataFrarnefinputxml
D. xmlSize(rootnode) will find the number of child nodes under the root node.Q
Q.10: Which of the following functions is used for variable conversions?B
A. as.array
B. ls.data.frame
C. class(x)
D. whichmax(x)

Related Mcqs

All Subject Mcqs