
PROBLEM SOLVING USING R - UNIT II - TEST 1 - MCQS
Authored by MS.SHYAMALADEVI C
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a matrix in R?
A one-dimensional array
A two-dimensional array
A collection of data frames
A statistical model
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you define a matrix in R using the matrix() function?
matrix(data)
matrix(data, nrow)
matrix(data, ncol)
matrix(data, nrow, ncol)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which argument in the matrix() function determines the direction of filling the elements?
byrow
bycolumn
fill
direction
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you bind two matrices by rows in R?
bind_rows()
rbind()
row_bind()
merge()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the dim() function return in R?
Number of rows in a matrix
Number of columns in a matrix
Dimensions of a matrix
Data type of a matrix
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you subset a specific row in a matrix in R?
matrix[row, ]
matrix[, row]
matrix[row]
matrix[row, col]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you extract a specific column from a matrix in R?
matrix[row, ]
matrix[, col]
matrix[col]
matrix[row, col]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?