R Programming Questions and Answers – Basics – 1

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Basics – 1”.

1. The most convenient way to use R is at a graphics workstation running a ________ system.
a) windowing
b) running
c) interfacing
d) matrix
View Answer

Answer: a
Explanation: Most classical statistics and much of the latest methodology is available for use with R.

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) Windows versions of R have other optional help systems also
View Answer

Answer: b
Explanation: help command is used for knowing details of particular command in R.

3. Which of the following is default prompt for UNIX environment?
a) >
b) >>
c) <
d) <<
View Answer

Answer: a
Explanation: When you use the R program it issues a prompt when it expects input commands.

4. Which of the following will start the R program?
a) $ R
b) > R
c) * R
d) @ R
View Answer

Answer: a
Explanation: At this point R commands may be issued.

advertisement
advertisement

5. 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) $ R is used to start the R program
View Answer

Answer: c
Explanation: R is an expression language with a very simple syntax.

6. Which of the following statement is alternative to _________

Note: Join free Sanfoundry classes at Telegram or Youtube
 ?solve 

a) help(solve)
b) print(solve)
c) bind(solve)
d) matrix(solve)
View Answer

Answer: a
Explanation: help is used to get more information on any specific named function.

7. Elementary commands in R consist of either _______ or assignments.
a) utilstats
b) language
c) expressions
d) packages
View Answer

Answer: c
Explanation: If an expression is given as a command, it is evaluated, printed (unless specifically made invisible), and the value is lost.

advertisement

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) +
d) /
View Answer

Answer: c
Explanation: Comments can be put almost anywhere, starting with a hashmark (‘#’), everything to the end of the line is a comment.

9. Command lines entered at the console are limited to about ________ bytes.
a) 3000
b) 4095
c) 5000
d) 6000
View Answer

Answer: b
Explanation: Elementary commands can be grouped together into one compound expression by braces (‘{’ and ‘}’).

advertisement

10._____ text editor provides more general support mechanisms via ESS for working interactively with R.
a) EAC
b) Emacs
c) Shell
d) ECAP
View Answer

Answer: b
Explanation: The recall and editing capabilities under UNIX are highly customizable.

Sanfoundry Global Education & Learning Series – R Programming Language.

Here’s the list of Best Books in R Programming Language.

To practice all areas of R Programming Language, Here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.