Uncategorized

Developing Data Products Quiz

Developing Data Products Quiz Quiz Answer. In this post you will get Quiz & Assignment Answer Of Developing Data Products Quiz

 

Developing Data Products Quiz

Offered By ”Johns Hopkins University”

Enroll Now

Quiz 1

1.
Question 1
Which of the following are absolutely necessary for creating a functioning shiny app? (Check all that apply)

1 point

  • A server.R file containing a call to shinyServer()
  • A shiny.R file containing calls to shinyServer() and shinyUI()
  • A ui.R file containing a call to shinyUI()
  • A ui.R file that contains information about the CSS and styling of the App
  • A server.R file that sets configuration options for hosting the App

2.
Question 2
What is incorrect about the following syntax in ui.R?

1234567891011
library(shiny)
shinyUI(pageWithSidebar(
headerPanel(“Data science FTW!”),
sidebarPanel(
h2(‘Big text’)
h3(‘Sidebar’)
),
mainPanel(
h3(‘Main Panel text’)
)

1 point

  • Missing a comma in the sidebar panel
  • Missing comma after the h3 command
  • The h2 command does not take text arguments
  • The h3 command should be an h2 command

3.
Question 3

Consider the following in ui.R

12345678
shinyUI(pageWithSidebar(
headerPanel(“Example plot”),
sidebarPanel(
sliderInput(‘mu’, ‘Guess at the mu’,value = 70, min = 60, max = 80, step = 0.05,) ),
mainPanel(
plotOutput(‘newHist’)
)
))
And the following in server.R

1410111213
library(UsingR)
data(galton)

Why isn’t it doing what we want? (Check all that apply.)

1 point

  • It should be 1
    mu <- input$mean
    in server.R
  • The phrase “Guess at the mu value” should say “mean” instead of “mu”
  • The limits of the slider are set incorrectly and giving an error.
  • The server.R output name isn’t the same as the plotOutput command used in ui.R.

4.
Question 4

What are the main differences between creating a Shiny Gadget and creating a regular Shiny App? (Check all that apply)

1 point

  • Shiny Gadgets can be run on a user’s personal computer, unlike a regular Shiny App which needs to be hosted online.
  • Shiny Gadgets are designed to have small user interfaces that fit on one page.
  • Shiny Gadgets are specially designed for use on mobile phones and tablet computers.
  • Shiny Gadgets are designed to be used by R users in the middle of a data analysis.
  • Shiny Gadgets are smaller programs and therefore run faster than Shiny Apps.

5.
Question 5

Consider the following R script:

12345678910111213141516171819202122232425262728
library(shiny)
library(miniUI)

pickXY <- function() {
ui <- miniPage(
gadgetTitleBar(“Select Points by Dragging your Mouse”),
miniContentPanel(
plotOutput(“plot”, height = “100%”, brush = “brush”)
)
)

Why isn’t it doing what we want?

1 point

  • The wrong column names are passed to brushedPoints()
  • No arguments are defined for pickXY()
  • The input data is defined in such a way that it is not compatible with pickXY()
  • The call to plot() references the column names of the data frame in the wrong order.

 

 

Quiz 2

1.
Question 1
What is rmarkdown? (Check all that apply.)

1 point

A simplified format that, when interpreted, incorporates your R analysis into your document.

A format that can be interpreted into markdown (which is a simplified markup language).

A simplified XML format that can be interpreted into R.

A form of LaTeX typesetting.

2.
Question 2

In rmarkdown presentations, in the options for code chunks, what command prevents the code from being repeated before results in the final interpreted document?

1 point

comment = FALSE

echo = FALSE

cache = FALSE

eval = FALSE

3.
Question 3

In rmarkdown presentations, in the options for code chunks, what prevents the code from being interpreted?

1 point

eval = FALSE

run = FALSE

cache = FALSE

eval = NULL

4.
Question 4

What is leaflet? (Check all that apply.)

1 point

A javascript library for creating interactive maps

An R package for creating 3D rendered isomaps

An R package interface to the javascript library of the same name

A tool for reproducible documents

5.
Question 5

The R command

1
df %>% leaflet() %>% addTiles()
is equivalent to what? (Check all that apply)

1 point

1
leaflet(addTiles(df))

1
addTiles(leaflet(df()))

1
leaflet(df) %>% addTiles()

1
df(leaflet(addTiles()))

12
addTiles(leaflet(df))

6.
Question 6

If I want to add popup icons to my leaflet map in R, I should use.

1 point

leaflet

dplyr

addTiles

addMarkers

 

 

Peer-graded Assignment: R Markdown and Leaflet

 

https://github.com/Krysek/Coursera-Data-Science-Specialization-Developing-Data-Products-Week-2-Assignment

 

 

Quiz 3

1.
Question 1
Which of the following items is required for an R package to pass R CMD check without any warnings or errors?

1 point

a demo directory

An explicit software license

example data sets

unit tests

vignette

2.
Question 2
Which of the following is a generic function in a fresh installation of R, with only the default packages loaded? (Select all that apply)

1 point

colSums

show

dgamma

lm

mean

predict

3.
Question 3
What function is used to obtain the function body for an S4 method function?

1 point

getClass()

getS3method()

getMethod()

showMethods()

4.
Question 4
Please download the R package DDPQuiz3 from the course web site. Examine the \verb|createmean|createmean function implemented in the R/ sub-directory. What is the appropriate text to place above the \verb|createmean|createmean function for Roxygen2 to create a complete help file?

 

#’ This function calculates the mean
#’
#’ @return the mean of x
#’ @export
#’ @examples
#’ x <- 1:10
#’ createmean(x)

 

 

Peer-graded Assignment: R Markdown Presentation & Plotly

https://github.com/Narkhede123/developing-data-product-week-3-assignment

 

 

Week- 4

Peer-graded Assignment: Course Project: Shiny Application and Reproducible Pitch

 

https://github.com/manastiwari/Developing-Data-Products-Week-4-Course-Project/tree/master/Shiny%20App

 

https://github.com/manastiwari/Developing-Data-Products-Week-4-Course-Project/tree/master/Reproducible%20Pitch

 

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *