Skip to main content

Introduction To R Programming — Part 2 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Introduction To R Programming — Part 2 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.

Questions
40
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
48 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
40

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/40 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 40
★ FPSC ★ PPSC

. . . . . . . . text editor provides more general support mechanisms via ESS for working interactively with R.

Question 2 of 40
★ FPSC ★ PPSC

Which of the following is a base package for R language?

Question 3 of 40
★ FPSC ★ PPSC

What is the function to set column names for a matrix?

Question 4 of 40
★ FPSC ★ PPSC

What will be the output of the following R code? x<- c (“a”,” b”) as.numeric(x)

Question 5 of 40
★ FPSC ★ PPSC

Files containing R scripts ends with extension . . . . . . . .

Question 6 of 40
★ FPSC ★ PPSC

R has many functions regarding . . . . . . . .

Question 7 of 40
★ FPSC ★ PPSC

In R language, a vector is defined that it can only contain objects of the . . . . . . . .

Question 8 of 40
★ FPSC ★ PPSC

Which of the following can be used to display the names of (most of) the objects which are currently stored within R?

Question 9 of 40
★ FPSC ★ PPSC

Which language is best for the statistical environment?

Question 10 of 40
★ FPSC ★ PPSC

What will be the output of the following R function? Sys.Date()

Question 11 of 40
★ FPSC ★ PPSC

What is the class defined in the following R code? y<-c(FALSE,2)

Question 12 of 40
★ FPSC ★ PPSC

Which of the following statement is alternative to . . . . . . . . ?solve

Question 13 of 40
★ FPSC ★ PPSC

How can we define 'infinity' in R language?

Question 14 of 40
★ FPSC ★ PPSC

The copyright for the primary source code for R is held by the . . . . . . . . Foundation.

Question 15 of 40
★ FPSC ★ PPSC

What is the output of getOption("defaultPackages") in R studio?

Question 16 of 40
★ FPSC ★ PPSC

R functionality is divided into a number of . . . . . . . .

Question 17 of 40
★ FPSC ★ PPSC

In order to use the R-related functionality in Dundas BI, you must have access to an existing . . . . . . . .

Question 18 of 40
★ FPSC ★ PPSC

Command lines entered at the console are limited to about . . . . . . . . bytes.

Question 19 of 40
★ FPSC ★ PPSC

The R-help and . . . . . . . . mailing lists have been highly active for over a decade now.

Question 20 of 40
★ FPSC ★ PPSC

Is It possible to inspect the source code of R?

Question 21 of 40
★ FPSC ★ PPSC

Which of the following packages does not contain in "base" R system?

Question 22 of 40
★ FPSC ★ PPSC

In the expression x <- 4 in R, what is the class of 'x' as determined by the `class()' function?

Question 23 of 40
★ FPSC ★ PPSC

Functionality of R is divided into a number of . . . . . . . .

Question 24 of 40
★ FPSC ★ PPSC

What will be the output of the following R code? x <- (“a”, “b”) as.logical(x)

Question 25 of 40
★ FPSC ★ PPSC

What is the mode of b in the following R code? b <- c(TRUE, TRUE, 1)

Question 26 of 40
★ FPSC ★ PPSC

Which of the following command is used to print an object "x" in R?

Question 27 of 40
★ FPSC ★ PPSC

What will be the output of the following R code? a <- (“a” , “b”) mode(a)

Question 28 of 40
★ FPSC ★ PPSC

Which of the following operator is used to create integer sequences?

Question 29 of 40
★ FPSC ★ PPSC

The primary source code copyright for R is held by the . . . . . . . .

Question 30 of 40
★ FPSC ★ PPSC

Which of the following is default prompt for UNIX environment?

Question 31 of 40
★ FPSC ★ PPSC

The open source . . . . . . . . software is available for Unix, Linux, and Windows platforms.

Question 32 of 40
★ FPSC ★ PPSC

What is output of getOption("defaultPackages") in R studio?

Question 33 of 40
★ FPSC ★ PPSC

. . . . . . . . will divert all subsequent output from the console to an external file.

Question 34 of 40
★ FPSC ★ PPSC

Which of the following is used for Statistical analysis in R language?

Question 35 of 40
★ FPSC ★ PPSC

Which of the following is a "Recommended" package in R?

Question 36 of 40
★ FPSC ★ PPSC

The entities that R creates and manipulates are known as . . . . . . . .

Question 37 of 40
★ FPSC ★ PPSC

Which of the following describes R language?

Question 38 of 40
★ FPSC ★ PPSC

In 1991, R was created by Ross Ihaka and Robert Gentleman in the Department of Statistics at the University of . . . . . . . .

Question 39 of 40
★ FPSC ★ PPSC

What will be the output of the following R function? d <- date() d

Question 40 of 40
★ FPSC ★ PPSC

What will be the output of the following R code? options(digits = 16) 20/6

✓ Link copied to clipboard
Continue Your Practice

Advance Html — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Programming & Software Development

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Programming & Software Development

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →