Skip to main content

Statistical Analysis With R _Distributions_ Graphics — Part 1 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Statistical Analysis With R _Distributions_ Graphics — Part 1 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

What function in R is used to generate random numbers from a standard normal distribution?

Question 2 of 40
★ FPSC ★ PPSC

In R, how do you create a histogram for a numeric variable variable?

Question 3 of 40
★ FPSC ★ PPSC

What does the qqnorm() function in R do?

Question 4 of 40
★ FPSC ★ PPSC

How do you create a boxplot in R for a numerical variable named values?

Question 5 of 40
★ FPSC ★ PPSC

What is the purpose of the density() function in R?

Question 6 of 40
★ FPSC ★ PPSC

In R, how do you generate random numbers from a uniform distribution between 0 and 1?

Question 7 of 40
★ FPSC ★ PPSC

What is the role of the ecdf() function in R?

Question 8 of 40
★ FPSC ★ PPSC

How do you create a scatter plot in R for two numeric variables x and y?

Question 9 of 40
★ FPSC ★ PPSC

What is the purpose of the hist() function in R?

Question 10 of 40
★ FPSC ★ PPSC

How do you create a probability plot in R for assessing the fit of a distribution to observed data?

Question 11 of 40
★ FPSC ★ PPSC

In R, how do you compute the mean of a numeric variable named variable?

Question 12 of 40
★ FPSC ★ PPSC

What function is used to calculate the cumulative distribution function (CDF) of a distribution in R?

Question 13 of 40
★ FPSC ★ PPSC

How do you generate a normal probability plot in R for a numeric variable values?

Question 14 of 40
★ FPSC ★ PPSC

What is the purpose of the boxplot() function in R?

Question 15 of 40
★ FPSC ★ PPSC

In R, how do you compute the median of a numeric variable named variable?

Question 16 of 40
★ FPSC ★ PPSC

What does the qqline() function in R do when used with a quantile-quantile plot?

Question 17 of 40
★ FPSC ★ PPSC

How do you generate a random sample from a binomial distribution in R with parameters n and p?

Question 18 of 40
★ FPSC ★ PPSC

What function is used to calculate the standard deviation of a numeric variable named variable in R?

Question 19 of 40
★ FPSC ★ PPSC

How do you create a quantile-quantile plot for a numeric variable values against a theoretical distribution in R?

Question 20 of 40
★ FPSC ★ PPSC

In R, what is the purpose of the hist() function with the argument probability = TRUE?

Question 21 of 40
★ FPSC ★ PPSC

How do you create a kernel density plot in R for a numeric variable values?

Question 22 of 40
★ FPSC ★ PPSC

What is the purpose of the barplot() function in R?

Question 23 of 40
★ FPSC ★ PPSC

How do you generate random numbers from a Poisson distribution in R with parameter lambda?

Question 24 of 40
★ FPSC ★ PPSC

In R, what does the plot() function do when applied to a linear regression model?

Question 25 of 40
★ FPSC ★ PPSC

How do you calculate the mode of a numeric variable named variable in R?

Question 26 of 40
★ FPSC ★ PPSC

What is the role of the layout() function in R graphics?

Question 27 of 40
★ FPSC ★ PPSC

In R, what does the polygon() function do when used in a plot?

Question 28 of 40
★ FPSC ★ PPSC

How do you create a stem-and-leaf plot for a numeric variable values in R?

Question 29 of 40
★ FPSC ★ PPSC

What is the purpose of the pairs() function in R?

Question 30 of 40
★ FPSC ★ PPSC

How do you create a time series plot in R for a numeric variable values with corresponding time points time?

Question 31 of 40
★ FPSC ★ PPSC

Which of the following will be used in fancy plots?

Question 32 of 40
★ FPSC ★ PPSC

ask=T is a parameter that R asks before producing the . . . . . . . .

Question 33 of 40
★ FPSC ★ PPSC

The graphical parameter . . . . . . . . defines how many lines appear in each of the four margins.

Question 34 of 40
★ FPSC ★ PPSC

In which year Haykin gave a comprehensive survey of neural network techniques from an engineering perspective?

Question 35 of 40
★ FPSC ★ PPSC

Which function is used to simulate discrete uniform random variables?

Question 36 of 40
★ FPSC ★ PPSC

Which function draws an axis on the current plot?

Question 37 of 40
★ FPSC ★ PPSC

Which of the following declares the current plot undeclared?

Question 38 of 40
★ FPSC ★ PPSC

The . . . . . . . . and . . . . . . . . of a discrete random variable is easy to compute at the console.

Question 39 of 40
★ FPSC ★ PPSC

The . . . . . . . . package has functionality to investigate transformations of univariate distributions.

Question 40 of 40
★ FPSC ★ PPSC

. . . . . . . . gives the length and height of the current figure in inches.

✓ 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 →