::withMathJax() shiny
Chap 2 Review
Loading webR...
Exercise 1 Which of these is the mathematical symbol for “is defined as”?
question id: M01-1
Exercise 2 What is the name of the function defined by
question id: M01-2
Exercise 3 How do we refer to the output generated by applying
question id: M01-3
Exercise 4 Using our notation conventions from the textbook, which one of the following kinds of things is
question id: M03-22
Exercise 5 Using our notation conventions from the textbook, which one of the following kinds of things is
question id: M04-1
Exercise 6 Using our notation conventions from the textbook, which one of the following kinds of things is
question id: M04-2
Exercise 7 Using our notation conventions from the textbook, which one of the following kinds of things is
question id: MGwvNS
Exercise 8 Using our notation conventions from the textbook, which one of the following kinds of things is
question id: 3Yxhvu
Exercise 9 Can function names be multiple letters, e.g. g3()
or altitude()
?
question id: jRqRwj
Exercise 10 A formal input name is the name used to identify an input in the definition of a function.
In MOSAIC Calculus, will formal input names have subscripts, like
question id: qx5fhu
Exercise 11 In the book, what is meant by the word “variable”?
input to a function
output from a function
A column in a data table.
All of the above.
question id: UyVrjr
Exercise 12 What is the name of the function being defined in
question id: jL2bMb
Exercise 13 What is the name of the input to the function being defined in
question id: 7EiMPI
Exercise 14 What is wrong with this function definition?
You cannot name a function “dorothy.”
“kansas” is a US state, not the name of an argument.
“dorothy” and “kansas” should be capitalized.
Auntie Em is a person, not a number.
Nothing.
question id: 2XfUTb
Exercise 15 What’s wrong with this function definition?
No input has been given to
‘electric()’ should have been written as E().
Nothing
question id: 7z5PpG
Exercise 16 You are modeling the population of E. coli growing in optimal conditions. (Optimal for the E. coli, not for you!) In R, you’ve written population <- makeFun(100*exp(hours) ~ hours)
What’s the correct definition in traditional notation?
None of the above.
question id: PN4DcB
Exercise 17 In traditional notation, Celsius()
. This of the following correctly defines that function in R?
Celsius(Fahrenheit) <- makeFun(5*(Fahrenheit-32)/9)
Celsius <- makeFun(5/9*Fahrenheit - 32 ~ Fahrenheit)
Celsius() <- makeFun(5*(Fahrenheit-32)/9 ~ Fahrenheit)
Celsius <- makeFun(5*(Fahrenheit-32)/9 ~ Fahrenheit)
Celsius(Fahrenheit) <- makeFun(5*(Fahrenheit-32)/9 ~ Fahrenheit)
question id: aBQhv1
Exercise 18 Which of these roles does the symbol
a constant
an input to a function
the output from a function
a function name
it is nonsense
question id: z4rS9z
Exercise 19 Given the definition
a constant
the input to the function
the output from the function
the function name
it is nonsense
question id: KJMU3m
Exercise 20 Given the definition
a constant
the input to the function
the output from the function
the function name
it is nonsense
question id: Tel7VL
Exercise 21 Given the definition
a constant
the input to the function
the output from the function
the function name
it is nonsense
question id: 7HDk69
Exercise 22 Given the definition
a constant
the input to the function
the output from the function
the function name
it is nonsense
question id: MGAKqk
Exercise 23 In the definition
a constant
the input to the function
the output from the function
the function name
it is nonsense
question id: JcuC9H
Exercise 24 In the definition
a constant
the input to the function
the output from the function
the function name
it is nonsense
question id: BsvFUW
Exercise 25 Can function names have subscripts or superscripts, like
question id: jsH1Hk
Exercise 26 What is the name of the function being defined in
question id: fname1
Exercise 27 What is the name of the input to the function being defined in
question id: fname2
Exercise 28 What is wrong with this function definition?
question id: fname3
Exercise 29 What’s wrong with this function definition?
question id: fname4