Search Header Logo

Test 04 - R matrices

Authored by Francisco R. Villatoro

Biology

University

Used 7+ times

Test 04 - R matrices
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 CHOICE QUESTION

30 sec • 1 pt

Media Image

list ( h="P", m="M", c=T ) [[ "c" ]]

"P"

"M"

TRUE

NULL

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list ( h="P", m="M", c=T ) $h

"P"

"M"

TRUE

NULL

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

list ( h="P", m="M", c=T) [ c(-2) ]

$h      

[1] "P"

$m      

[1] "M"

$h           

[1] "P"

$c           

[1] TRUE

NULL

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

matrix ( 1:3 , 2, 3) [ , 1 ]

[1] 1 3 2

[1] 1 2

[1] 2 1 3

[1] 3 1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

matrix(c(1, 1, 1, 4, 2, 3), ncol=2, byrow=T)

        [ ,1]  [,2]

[1, ]      1     1

[2, ]      1     4

[3, ]      2     3

        [ ,1]  [,2]

[1, ]      1     4

[2, ]      1     2

[3, ]      1     3

       [ ,1]  [ ,2] [ ,3]

[1,]   1      1      1

[2,]  4     2      3

       [ ,1]  [ ,2] [ ,3]

[1,]   1     1      2

[2,]  1     4      3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

matrix(1,2,2) + matrix(2,2,2)

        [ ,1]  [,2]

[1, ]      2     2

[2, ]      2     2

        [ ,1]  [,2]

[1, ]      3     3

[2, ]      3     3

        [ ,1]  [,2]

[1, ]      4     4

[2, ]      4     4

Error:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

matrix(1,2,2) * matrix(2,2,2)

        [ ,1]  [,2]

[1, ]      2     2

[2, ]      2     2

        [ ,1]  [,2]

[1, ]      3     3

[2, ]      3     3

        [ ,1]  [,2]

[1, ]      4     4

[2, ]      4     4

Error:

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?

Discover more resources for Biology