JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
1. R Programming Basics
based on session 1
Sign in to Google
to save your progress.
Learn more
1. What is log2() an example of?
A format specifier
A relational operator
A base R function
A numeric value
Clear selection
2. What do equal signs (ie. =) inside the brackets of a function call mean?
Attaining return values
Assignment operators
Argument specification
None of the above
Clear selection
3. If number==12.0, what are the values of class(number), typeof(number) and class("number") respectively?
"numeric", "integer", and "character"
"numeric", "integer", and "numeric"
"numeric", "double", and "character"
"numeric", "double", and "numeric"
Clear selection
4. What is the recommended assignment operator in R?
<
<-
=
==
Clear selection
5. You type the command x <- 12, but typeof(12) returns the value "double" so you code x <- 12L instead. Why did you add the L in 12L?
You want to round the value of x to two digits.
You want to increase the readability of your code.
You intend to make x an explicit integer.
Kazeera told you to.
Clear selection
If my_age == 23, then what is the value of -(-my_age)?
-23
FALSE
23
TRUE
Clear selection
7. What is the value for FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE in R?
TRUE
FALSE
True
False
Clear selection
8. What does the NOT operator do (ie. !)?
Stops and returns the original value of a variable
Reverses the true/false outcome of the expression that immediately follows
Performs a logical conjunction on two expressions
Returns the boolean value TRUE if either or both operands is TRUE and returns FALSE otherwise
Clear selection
9. What is the value for FALSE | FALSE | FALSE | FALSE?
TRUE
FALSE
NULL (empty)
NA (missing)
Clear selection
10. What is the value for (TRUE | TRUE) & (FALSE & FALSE)?
TRUE
FALSE
NULL (empty)
NA (missing)
Clear selection
What does Ctrl+1 and Ctrl+2 do in RStudio? (Try it out!)
Finds and replaces text within source documents
Switches focus to source editor and console pane
Comments and uncomments entire selections of code
Execute the line of source code where the cursor resides and stops it
Clear selection
Submit
Clear form
This content is neither created nor endorsed by Google. -
Terms of Service
-
Privacy Policy
Does this form look suspicious?
Report
Forms