Search Header Logo

DMUR_BBA_24_25-Quiz

Authored by Dr. CHAUHAN

Computers

University

Used 1+ times

DMUR_BBA_24_25-Quiz
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

1 min • 1 pt

How do you assign a value to a variable in R?

  • x = 5

  • x <- 5

  • x := 5

  • x >- 5

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which function is used to create a sequence of numbers in R?

  • seq()

  • range()

  • create()

  • numbers()

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the summary() function provide for a statistical analysis in R?

  • Descriptive statistics

  • Inferential statistics

  • Predictive modeling

  • Time series analysis

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

  • random.normal()

  • rnorm()

  • randn()

  • normrnd()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of the apply() function in R?

  • Applying a mathematical function to a vector

  • Applying a function to each element of an array

  • Applying a conditional statement to a data frame

  • Applying a regression model

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can you rename a column in a data frame in R?

  • rename_column(df, old_name, new_name)

  • change_column_name(df, old_name, new_name)

  • colnames(df)[colnames(df) == "old_name"] <- "new_name"

  • update_column(df, old_name, new_name)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In R, what does the lapply() function do?

  • Applies a function to each element of a list and returns a list of the results

  • Applies a function to each element of a vector and returns a vector

  • Applies a function to each column of a data frame and returns a list of the results

  • Applies a function to each row of a matrix and returns a list of the results

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?