R Function  Quiz

R Function Quiz

University

10 Qs

quiz-placeholder

Similar activities

Python

Python

9th Grade - Professional Development

8 Qs

C++ - Functions

C++ - Functions

University

14 Qs

522270 - Quiz1 (Class01-02)

522270 - Quiz1 (Class01-02)

University

10 Qs

Fundamental of Python

Fundamental of Python

University

10 Qs

R-да Аpply( ), lapply( ), sapply( ), rapply( ) және tapply(

R-да Аpply( ), lapply( ), sapply( ), rapply( ) және tapply(

University

11 Qs

CCIS 104 Quiz # 1.3

CCIS 104 Quiz # 1.3

University

11 Qs

Python Revision

Python Revision

University

10 Qs

Coding 1 U7

Coding 1 U7

9th Grade - University

15 Qs

R Function  Quiz

R Function Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Kundan Kumar

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does the following R function do?

5

Error

15

Nothing

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the ... (ellipsis) represent in an R function?

A placeholder for arguments that will be passed explicitly

The function will return an error

The function can accept a variable number of arguments

A default argument

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following functions is used to apply a function to each element of a list and returns a list?

apply()

sapply()

lapply()

mapply()

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will the following code return?

15

13

5

10

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of sapply() in R?

Apply a function to each element of a list and return a vector or matrix

Apply a function to each element of a list and return a list

Apply a function to rows/columns of a matrix

Apply a function to multiple arguments

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a key feature of lapply in R?

Returns a data frame.

Applies a function to elements of a list and returns a list.

Applies a function to a data frame column-wise.

Applies a function to each element of a vector and returns a matrix.

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which function would you use to apply a function to rows or columns of a matrix?

mapply

lapply

apply

sapply

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?