wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PROBLEM SOLVING USING R UNIT I MCQS

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Which pane in the R console displays the results of executed commands?

a)

Console pane

b)

Editor pane

c)

Help pane

d)

Plot pane

2.

What is the primary programming language used in R?

a)

Python

b)

Java

c)

R

d)

C++

3.

Which of the following is a basic feature of R?

a)

Object-oriented programming

b)

Automatic memory management

c)

Multithreading support

d)

Static typing

4.

What is the purpose of comments in R code?

a)

To add explanations and documentation

b)

To disable a line of code temporarily

c)

To specify the data type of a variable

d)

To highlight syntax errors

5.

How can you install a package in R?

a)

Using the install.packages() function

b)

Using the load.packages() function

c)

Using the import.packages() function

d)

Using the require.packages() function

6.

Where can you find help files and function documentation in R?

a)

R website

b)

Package documentation

c)

RStudio IDE

d)

CRAN repository

7.

How can you save your work and exit R?

a)

Using the save() function

b)

Using the quit() function

c)

Using the exit() function

d)

Using the close() function

8.

Which of the following is a valid naming convention in R?

a)

variable-name

b)

VariableName

c)

variable_name

d)

1variable

9.

Which mathematical operation is performed by the ^ operator in R?

a)

Addition

b)

Subtraction

c)

Multiplication

d)

Exponentiation

10.

What does the function log10() compute in R?

a)

Natural logarithm

b)

Base 10 logarithm

c)

Exponential function

d)

Square root

11.

How can you assign a value to an object in R?

a)

Using the = operator

b)

Using the <- operator

c)

Using the -> operator

d)

Using the == operator

12.

What is the data structure used to store multiple values of the same type in R?

a)

Array

b)

List

c)

Data frame

d)

Vector

13.

How can you create a vector in R?

a)

Using the c() function

b)

Using the vector() function

c)

Using the list() function

d)

Using the array() function

14.

Which function is used to generate sequences of numbers in R?

a)

seq()

b)

rep()

c)

sort()

d)

length()

15.

What is the characteristic of vector-oriented behavior in R?

a)

Operations are applied element-wise

b)

Operations are applied to the entire vector

c)

Operations can only be applied to numeric vectors

d)

Operations require explicit loops for processing