NEW
Font size
WorksheetsPROBLEM SOLVING USING R UNIT I MCQS
Total questions: 15
Worksheet time: 8mins
Which pane in the R console displays the results of executed commands?
Console pane
Editor pane
Help pane
Plot pane
What is the primary programming language used in R?
Python
Java
R
C++
Which of the following is a basic feature of R?
Object-oriented programming
Automatic memory management
Multithreading support
Static typing
What is the purpose of comments in R code?
To add explanations and documentation
To disable a line of code temporarily
To specify the data type of a variable
To highlight syntax errors
How can you install a package in R?
Using the install.packages() function
Using the load.packages() function
Using the import.packages() function
Using the require.packages() function
Where can you find help files and function documentation in R?
R website
Package documentation
RStudio IDE
CRAN repository
How can you save your work and exit R?
Using the save() function
Using the quit() function
Using the exit() function
Using the close() function
Which of the following is a valid naming convention in R?
variable-name
VariableName
variable_name
1variable
Which mathematical operation is performed by the ^ operator in R?
Addition
Subtraction
Multiplication
Exponentiation
What does the function log10() compute in R?
Natural logarithm
Base 10 logarithm
Exponential function
Square root
How can you assign a value to an object in R?
Using the = operator
Using the <- operator
Using the -> operator
Using the == operator
What is the data structure used to store multiple values of the same type in R?
Array
List
Data frame
Vector
How can you create a vector in R?
Using the c() function
Using the vector() function
Using the list() function
Using the array() function
Which function is used to generate sequences of numbers in R?
seq()
rep()
sort()
length()
What is the characteristic of vector-oriented behavior in R?
Operations are applied element-wise
Operations are applied to the entire vector
Operations can only be applied to numeric vectors
Operations require explicit loops for processing
