Unit 2- R programming MCQs Quiz

Unit 2- R programming MCQs Quiz

University

148 Qs

quiz-placeholder

Similar activities

Chapter 1 geometry

Chapter 1 geometry

University - Professional Development

150 Qs

90007-90008

90007-90008

University

149 Qs

GENERAL (con inglés) V1 INEM Innovation Effectiveness Mindset ®

GENERAL (con inglés) V1 INEM Innovation Effectiveness Mindset ®

10th Grade - University

145 Qs

quizz de culture générale 3

quizz de culture générale 3

1st Grade - University

146 Qs

SI (2024)

SI (2024)

University

145 Qs

SUB II

SUB II

University

153 Qs

Unit 2- R programming MCQs Quiz

Unit 2- R programming MCQs Quiz

Assessment

Quiz

Mathematics

University

Hard

Created by

Dr.J.Hirudhaya Asha

Used 2+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

148 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a scalar and a vector in R?

A vector is a single-number variable, while a scalar is a variable that holds multiple numbers.

A scalar and a vector are the same thing in R.

A scalar is a single-number variable, whereas a vector is considered a different variable type that can hold multiple elements.

R doesn't have a concept of scalars, only vectors.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the R variable types called?

Classes

Modes

Types

Forms

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid mode for an R vector?

Integer

Character

Logical

Object

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are vectors stored in R, similar to arrays in C?

Randomly

Contiguously

In a linked list

In a hash table

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you try to insert or delete elements from a vector after it's been created?

R automatically resizes the vector.

It's not possible, as the size is determined at creation.

You can, but it requires a special function.

R throws an error.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If x <- c(88, 5, 12, 13), what is the result of x <- c(x[1:3], 168, x[4])?

c(88, 5, 12, 13, 168)

c(168, 88, 5, 12, 13)

c(88, 5, 12, 168, 13)

c(88, 5, 168, 12, 13)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to obtain the length of a vector?

size()

len()

length()

dim()

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?