Search Header Logo

Day 3

Authored by Central Library

Education

Professional Development

Used 2+ times

Day 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a data type in R?

a) Numeric

b) Character

c) Boolean

d) Loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the function "mean()" do in R?

a) Returns the median of a dataset

b) Returns the mode of a dataset

c) Returns the mean of a dataset

d) Returns the standard deviation of a dataset

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the function "read.csv()" in R?

A) Writes data to a CSV file

B) Reads data from a CSV file into R

C) Computes summary statistics for a dataset

D) None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to check the dimensions of a matrix or data frame in R?

A) dim()

B) length()

C) nrow()

D) class()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to generate a random number from a normal distribution in R?

A) rnorm()

B) runif()

C) rpois()

D) rexp()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the function "table()" do in R?

A) Computes the mean of a dataset

B) Computes the standard deviation of a dataset

C) Creates a contingency table from categorical variables

D) Returns the maximum value in a dataset

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to calculate the absolute value of a number in R?

A) abs()

B) log()

C) exp()

D) sqrt()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?