R Programming MCQ Questions And Answers
This section focuses on "Basic" of R Programming. These Multiple Choice Questions (MCQ) should be practiced to improve the R Programming skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. R was created by?
A. Ross Ihaka
B. Robert Gentleman
C. Both A and B
D. Ross Gentleman
View Answer
Ans : C
Explanation: R was created by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand, and is currently developed by the R Development Core Team.
2. R allows integration with the procedures written in the?
A. C
B. Ruby
C. Java
D. Basic
View Answer
Ans : A
Explanation: R allows integration with the procedures written in the C, C++, .Net, Python or FORTRAN languages for efficiency.
3. R is free software distributed under a GNU-style copy left, and an official part of the GNU project called?
A. GNU A
B. GNU S
C. GNU L
D. GNU R
View Answer
Ans : B
Explanation: R is free software distributed under a GNU-style copy left, and an official part of the GNU project called GNU S.
4. R made its first appearance in?
A. 1992
B. 1995
C. 1993
D. 1994
View Answer
Ans : C
Explanation: R made its first appearance in 1993.
5. Which of the following is true about R?
A. R is a well-developed, simple and effective programming language
B. R has an effective data handling and storage facility
C. R provides a large, coherent and integrated collection of tools for data analysis.
D. All of the above
View Answer
Ans : D
Explanation: All of the above statement are true.
6. 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. Windows versions of R have other optional help systems also
View Answer
Ans : B
Explanation: help command is used for knowing details of particular command in R.
7. Command lines entered at the console are limited to about ________ bytes
A. 4095
B. 4096
C. 4097
D. 4098
View Answer
Ans : A
Explanation: Elementary commands can be grouped together into one compound expression by braces (‘{’ and ‘}’).
8. R language is a dialect of which of the following languages?
A. s
B. c
C. sas
D. matlab
View Answer
Ans : A
Explanation: The R language is a dialect of S which was designed in the 1980s. Since the early 90’s the life of the S language has gone down a rather winding path. The scoping rules for R are the main feature that makes it different from the original S language.
9. How many atomic vector types does R have?
A. 3
B. 4
C. 5
D. 6
View Answer
Ans : D
Explanation: R language has 6 atomic data types. They are logical, integer, real, complex, string (or character) and raw. There is also a class for “raw” objects, but they are not commonly used directly in data analysis.
10. R files has an extension _____.
A. .S
B. .RP
C. .R
D. .SP
View Answer
Ans : C
Explanation: All R files have an extension .R. R provides a mechanism for recalling and re-executing previous commands. All S programmed files will have an extension .S. But R has many functions than S.
Discussion