Search Header Logo

STSCI 2120: Lecture 1

Authored by Nayel Bettache

Computers

University

Used 1+ times

STSCI 2120: Lecture 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What do I need to start programming with R ?

Only download R on cran.r-project.org

Only download RStudio on posit.co

Download both R and Rstudio

Use posit cloud service without downloading anything

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT true about RStudio?

It is an Integrated Development Environment (IDE) for R

It looks the same on Windows, Mac OS, and Linux

It is a substitute for R

It can be used for writing and running R code

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'sample' function in R?

To install R packages

To create sequences of numbers

To randomly select elements from a vector

To store data in R objects

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you type an incomplete command and press Enter in RStudio?

RStudio will execute the command immediately

RStudio will return an error message

RStudio will display a '+' prompt, waiting for the rest of the command

RStudio will close automatically

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you update R to the latest version?

By reinstalling your operating system

By running the 'update.packages' command

By downloading the latest version from CRAN and installing it

By restarting RStudio

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an R package?

A built-in feature of RStudio

A collection of functions, data, and documentation

A method to save R scripts

A type of R object

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you install a package in R?

By typing the name of the package in the console

By using the 'library' function

By selecting the package from a menu in RStudio

By using the 'install.packages' command

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?