Intro to R Day 1 Quiz

Intro to R Day 1 Quiz

University

10 Qs

quiz-placeholder

Similar activities

Python Ch 1

Python Ch 1

5th Grade - University

10 Qs

NAME THAT FRUIT

NAME THAT FRUIT

University

9 Qs

Fruits and veggies

Fruits and veggies

KG - University

15 Qs

Mini Quiz IF2112

Mini Quiz IF2112

University

15 Qs

Python Basics

Python Basics

University

10 Qs

Intermediate Python

Intermediate Python

University

15 Qs

Python Quiz Ver- 1.3

Python Quiz Ver- 1.3

University

15 Qs

Computational Thinking in Python[Quiz 2]

Computational Thinking in Python[Quiz 2]

University

15 Qs

Intro to R Day 1 Quiz

Intro to R Day 1 Quiz

Assessment

Quiz

Computers

University

Easy

Created by

John Rabanal

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in R?

'Hello World'

"Hello World"

print("Hello World")

All of the answers are correct.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert COMMENTS in R code?

# This is a comment

// This is a comment

/* This is a comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable named x with the numeric value 5?


x <- 5

x == 5

int x = 5

x : 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a vector of strings?

fruits <- v("banana", "apple", "orange")

fruits <- listOf("banana", "apple", "orange")

fruits <- c("banana", "apple", "orange")

fruits <- list("banana", "apple", "orange")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a list of strings?

fruits <- vectorOf("banana", "apple", "orange")

fruits <- v("banana", "apple", "orange")

fruits <- list("banana", "apple", "orange")

fruits <- c("banana", "apple", "orange")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to add additional columns in a matrix?

add()

join()

append_item()

cbind()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to find the amount of rows and columns in an matrix/array?

length()

dim_len()

dim()

nchar()

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?