Unit 2- R programming MCQs Quiz

Unit 2- R programming MCQs Quiz

University

148 Qs

quiz-placeholder

Similar activities

Trigonometric Ratios and Functions

Trigonometric Ratios and Functions

11th Grade - University

152 Qs

ОРЭ тест

ОРЭ тест

University

145 Qs

8th grade math SMS Fall 2021 Semester Exam Review

8th grade math SMS Fall 2021 Semester Exam Review

6th Grade - Professional Development

152 Qs

Full Year

Full Year

11th Grade - University

146 Qs

trigonometria

trigonometria

University

150 Qs

MALVINO 1

MALVINO 1

University

146 Qs

SIMULADOR GENERAL 150 A

SIMULADOR GENERAL 150 A

University

150 Qs

Policía cuestionario

Policía cuestionario

University

150 Qs

Unit 2- R programming MCQs Quiz

Unit 2- R programming MCQs Quiz

Assessment

Quiz

Mathematics

University

Practice Problem

Hard

Created by

Dr.J.Hirudhaya Asha

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

Already have an account?