CSC 120 (R Section) | Quiz #1 with answers
CSC 120 (R Section) -- Quiz #1 with answers
No books, notes, or calculators are allowed. You have 30 minutes to write this quiz.
Question 1: [ 24 Marks ] On the six blank lines below, write what R will output at that point if the commands shown are typed into the R console window. Note that the ">" shown at the beginnings of lines is the R command prompt, not something typed.
> 7+3*10 [1] 37 > a b a a*b [1] 12 > x x[1]+x[a] [1] 7 > x*a [1] 8 6 18 > y x[2] x+y [1] 8 13 18 > s substring(s,4,4)=="e" [1] TRUE
Question 2: [ 26 Marks ] Consider a function called mystery defined as follows:
mystery ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- course outline testout
- section 1 quiz aggression appeasement and war chapter 31
- section 2 physics quiz answers holt tvdots
- chapter 29 section 1 quiz
- ottoman section quiz answer
- chapter 12 section 1 quiz gross domestic product
- section 1 4 graphs and trees
- quiz section schedule pbio 376 winter 2022 topic
- chapter 18 section 1 quiz origins if cold war
- csc 120 r section quiz 1 with answers