They primary R system is available from the . . . . . . . .
Select an option to see the answer and solution.
What is the function used to test objects (returns a logical operator) if they are NaN?
A. as.nan()
B. is.na()
C. as.na()
D. is.nan()
Select an option to see the answer and solution.
Dataframes can be converted into a matrix by calling the following function data . . . . . . . .
A. matr()
B. matrix()
C. matrixf()
D. matrixfunc()
Select an option to see the answer and solution.
Advanced programmers can write . . . . . . . . code to manipulate R objects.
A. Python
B. Java
C. C
D. Java Script
Select an option to see the answer and solution.
What will be the output of the following R code?
y <- c(TRUE, 2)A. [1] "TRUE" "2"
B. [1] "TRUE" 2
C. [1] "0" "2"
D. [1] 1 2
Select an option to see the answer and solution.
Point out the WRONG statement?
A. Early versions of the S language contain functions for statistical modeling
B. The book Programming with Data by John Chambers documents S version of the language
C. In 1993 Bell Labs gave StatSci (later Insightful Corp.) an exclusive license to develop and sell the S language
D. The book Programming with Data by IBM documents S version of the language
Select an option to see the answer and solution.
The most convenient way to use R is at a graphics workstation running a . . . . . . . . system.
A. windowing
B. running
C. interfacing
D. matrix
Select an option to see the answer and solution.
If a command is not complete at the end of a line, R will give a different prompt, by default it is . . . . . . . .
Select an option to see the answer and solution.
Which one of the following is not a basic datatype?
A. Numeric
B. Character
C. Data frame
D. Integer
Select an option to see the answer and solution.
In which IDE we can interact with R?
A. R studio
B. Console
C. GCC
D. Power shell
Select an option to see the answer and solution.
If commands are stored in an external file, say commands.R in the working directory work, they may be executed at any time in an R session with the command . . . . . . . .
A. source("commands.R")
B. exec("commands.R")
C. execute("commands.R")
D. exect("command.R")
Select an option to see the answer and solution.
Point out the wrong statement?
A. The grammar of the language determines whether an expression is complete or not
B. The <- symbol is the assignment operator in R
C. The ## character indicates a comment
D. R does not support multi-line comments or comment blocks
Select an option to see the answer and solution.
Which of the following will start the R program?
Select an option to see the answer and solution.
What will be the output of the following R function?
nchar()A. no. of characters
B. first 5 characters
C. last 5 characters
D. Does not exist
Select an option to see the answer and solution.
What is the meaning of the following R function?
print( sqrt(2) )A. 1.414314
B. 1.414214
C. Error
D. 14.1414
Select an option to see the answer and solution.
What is the function to set row names for a data frame?
A. row.names()
B. colnames()
C. col.names()
D. column name cannot be set for a data frame
Select an option to see the answer and solution.
R is mostly used in . . . . . . . .
A. Problem solving
B. Statistics
C. Probability
D. All of the mentioned
Select an option to see the answer and solution.
What will be the output of the following R function?
ab <- list(1, 2, 3, "X", "Y", "Z")
dim(ab) <- c(3,2)
print(ab)A. 1 "X"
2 "Y"
3 " Z"
B. 1 "X"
2 "Y"
3 " Y"
C. 1 "W"
2 "Y"
3 " Z"
D. Error
Select an option to see the answer and solution.
Point out the wrong statement?
A. Key feature of R was that its syntax is very similar to S
B. R runs only on Windows computing platform and operating system
C. R has been reported to be running on modern tablets, phones, PDAs, and game consoles
D. R functionality is divided into a number of Packages
Select an option to see the answer and solution.
. . . . . . . . programming language is a dialect of S.
Select an option to see the answer and solution.