JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
R interview questions part 1
R interview questions part 1
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. The most convenient way to use R is at a graphics workstation running a ________ system.
A. windowing
B. running
C. interfacing
D. all of the mentioned
Show Correct Answer
Correct Answer is :
windowing
2. Point out the wrong statement :
A. Setting up a workstation to take full advantage of the customizable features of R is a straightforward thing
B. q() is used to quit the R program
C. R has an inbuilt help facility similar to the man facility of UNIX
D. None of the mentioned
Show Correct Answer
Correct Answer is :
q() is used to quit the R program
3. Which of the following statement is alternative to ?solve
A. help(solve)
B. print(solve)
C. bind(solve)
D. matrix(solve)
Show Correct Answer
Correct Answer is :
help(solve)
4. Which of the following is default prompt for UNIX environment ?
A. >
B. >>
C. <
D. All of the mentioned
Show Correct Answer
Correct Answer is :
>
5. Which of the following will start the R program ?
A. $ R
B. > R
C. * R
D. All of the mentioned
Show Correct Answer
Correct Answer is :
$ R
6. Point out the wrong statement :
A. Windows versions of R have other optional help system also
B. The help.search command (alternatively ??) allows searching for help in various ways
C. R is case insensitive as are most UNIX based packages, so A and a are different symbols and would refer to different variables
D. All of the mentioned
Show Correct Answer
Correct Answer is :
R is case insensitive as are most UNIX based packages, so A and a are different symbols and would refer to different variables
7. Elementary commands in R consist of either _______ or assignments.
A. utilstats
B. language
C. expressions
D. none of the mentioned
Show Correct Answer
Correct Answer is :
expressions
8. If a command is not complete at the end of a line, R will give a different prompt, by default it is :
A. *
B. –
C. #ERROR!
D. All of the mentioned
Show Correct Answer
Correct Answer is :
#ERROR!
9. Command lines entered at the console are limited to about ________ bytes.
A. 3000
B. 4095
C. 5000
D. None of the mentioned
Show Correct Answer
Correct Answer is :
4095
10. ._____ text editor provides more general support mechanisms via ESS for working interactively with R.
A. EAC
B. Emacs
C. Shell
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Emacs
11. What is output of getOption(“defaultPackages”) in R studio?
A. Installs a new package
B. Shows default packages in R
C. Error
D. Nothing will print
Show Correct Answer
Correct Answer is :
Shows default packages in R
12. What is the output of the following code? x <- c(3, 7, NA, 4, 7) y <- c(5, NA, 1, 2, 2) x + y
A. Symbol
B. Missing Data
C. 5
D. 15.5
Show Correct Answer
Correct Answer is :
Missing Data
13. R language is a dialect of which of the following languages?
A. S
B. C
C. MATLAB
D. SAS
Show Correct Answer
Correct Answer is :
S
14. R language has superficial similarity with _________
A. C
B. Python
C. MATLAB
D. SAS
Show Correct Answer
Correct Answer is :
C
15. What is the mode of ‘a’ in the following code? a <- c(1,” a”, FALSE)
A. Numeric
B. Character
C. Integer
D. Logical
Show Correct Answer
Correct Answer is :
Character
16. What is the length of b? b <- 2:7
A. 4
B. 5
C. 6
D. 0
Show Correct Answer
Correct Answer is :
6
17. What is the mode of b in the following code? b <- c(TRUE, TRUE, 1)
A. Numeric
B. Character
C. Integer
D. Logical
Show Correct Answer
Correct Answer is :
Numeric
18. What are the typeof(x) and mode(x) in the following syntax? x<-1:3
A. Numeric, Integer
B. Integer, Numeric
C. Integer, Integer
D. Numeric, Numeric
Show Correct Answer
Correct Answer is :
Integer, Numeric
19. How many atomic vector types does R have?
A. 5
B. 6
C. 8
D. 10
Show Correct Answer
Correct Answer is :
6
20. 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
Show Correct Answer
Correct Answer is :
row.names()
Similar Interview Questions
Search for latest jobs
Find Jobs