A | B | C | D | E | F | G | H | I | J | K | |
---|---|---|---|---|---|---|---|---|---|---|---|
1 | explanations | class | type | optional | name | showif | label | choice1 | choice2 | choice3 | value |
2 | ip | ip | |||||||||
3 | browser | browser | |||||||||
4 | calculate | rand1 | sample(x = c("a", "b"), size = 1, replace = F) | ||||||||
5 | calculate | rand3 | sample(x = c("a", "b"), size = 1, replace = F) | ||||||||
6 | center | note | title | ## <center>Quiz</center> ### <center>EMSE 4574: Intro to Programming for Analytics, Fall 2020</center> ## Rules: - You may use your notes and RStudio during the quiz. - You may **not** use any other resources (e.g. the internet, your classmates, etc.) ## Instructions: - You will have **5** minutes to complete this quiz. - The timer will start on the next page. - Please submit your quiz before the timer ends. - Once you click **submit**, you will not be able to revise your answers. | |||||||
7 | answer_below_label label_align_left | text | netID | ## Before you start: **Enter your name**: | |||||||
8 | submit | start | Start Quiz | ||||||||
9 | note | intro | ## Time Remaining: <span id="time"></span> - Your quiz will be automatically submitted when the timer ends. - Once you click **submit**, you will not be able to revise your answers. <hr> | ||||||||
10 | label_align_left | text | * | q1a | rand1 == "a" | 1) What's your favorite **animal**? | |||||
11 | label_align_left | text | * | q1b | rand1 == "b" | 1) What's your favorite **color**? | |||||
12 | label_align_left | mc | * | q2 | 2) TRUE or FALSE: R is awesome! | TRUE | FALSE | ||||
13 | note | q3label | 3) Use the `mtcars` data frame and the **ggplot2** library to write code to create the following plot: | ||||||||
14 | label_align_left | textarea | * | q3a | rand3 == "a" | ```{r, echo = FALSE, fig.width=4, fig.height=3} ggplot(mtcars, aes(x = mpg, y = disp)) + geom_point() ``` | |||||
15 | label_align_left | textarea | * | q3b | rand3 == "b" | ```{r, echo = FALSE, fig.width=4, fig.height=3} ggplot(mtcars, aes(x = disp, y = wt)) + geom_point() ``` | |||||
16 | submit300000 | finish | Submit (you cannot undo this) |