PROBLEM SOLVING USING R - UNIT II - TEST 1 - MCQS

PROBLEM SOLVING USING R - UNIT II - TEST 1 - MCQS

University

15 Qs

quiz-placeholder

Similar activities

NumPy

NumPy

University

20 Qs

Time and Space Complexity

Time and Space Complexity

University

20 Qs

Digital Logic Design

Digital Logic Design

University - Professional Development

20 Qs

U26 Q5 The Matrix!

U26 Q5 The Matrix!

KG - University

14 Qs

Typing

Typing

KG - University

12 Qs

Java 2D Array

Java 2D Array

University

20 Qs

Java 2D Arrays

Java 2D Arrays

University

20 Qs

Tidyverse style guide: good and bad coding examples

Tidyverse style guide: good and bad coding examples

University - Professional Development

11 Qs

PROBLEM SOLVING USING R - UNIT II - TEST 1 - MCQS

PROBLEM SOLVING USING R - UNIT II - TEST 1 - MCQS

Assessment

Quiz

Computers

University

Medium

Created by

MS.SHYAMALADEVI C

Used 4+ times

FREE Resource

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]

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?