Coursera

Programming Assignment 3: Quiz >> R Programming

Programming Assignment 3: Quiz >> R Programming


1. What result is returned by the following code?

best("SC", "heart attack")
  • CAROLINAS HOSPITAL SYSTEM
  • MCLEOD MEDICAL CENTER – DARLINGTON
  • MUSC MEDICAL CENTER
  • MARY BLACK MEMORIAL HOSPITAL
  • LAKE CITY COMMUNITY HOSPITAL
  • GRAND STRAND REG MED CENTER

2. What result is returned by the following code?

best("NY", "pneumonia")
  • MAIMONIDES MEDICAL CENTER
  • NORTHERN DUTCHESS HOSPITAL
  • HOSPITAL FOR SPECIAL SURGERY
  • KINGSBROOK JEWISH MEDICAL CENTER
  • BROOKS MEMORIAL HOSPITAL
  • CROUSE HOSPITAL

3. What result is returned by the following code?

best("AK", "pneumonia")
  • PROVIDENCE ALASKA MEDICAL CENTER
  • ALASKA NATIVE MEDICAL CENTER
  • YUKON KUSKOKWIM DELTA REG HOSPITAL
  • CENTRAL PENINSULA GENERAL HOSPITAL
  • CORDOVA COMMUNITY MEDICAL CENTER
  • MT EDGECUMBE HOSPITAL

4. What result is returned by the following code?

rankhospital("NC", "heart attack", "worst")
  • CATAWBA VALLEY MEDICAL CENTER
  • WAYNE MEMORIAL HOSPITAL
  • WAKEMED, CARY HOSPITAL
  • SPRUCE PINE COMMUNITY HOSPITAL
  • CAROLINAS MEDICAL CENTER-NORTHEAST
  • THOMASVILLE MEDICAL CENTER

5. What result is returned by the following code?

rankhospital("WA", "heart attack", 7)
  • YAKIMA VALLEY MEMORIAL HOSPITAL
  • KENNEWICK GENERAL HOSPITAL
  • ST ANTHONY HOSPITAL
  • KADLEC REGIONAL MEDICAL CENTER
  • JEFFERSON HEALTHCARE HOSPITAL
  • TACOMA GENERAL ALLENMORE HOSPITAL

6. What result is returned by the following code?

rankhospital("TX", "pneumonia", 10)
  • WEST HOUSTON MEDICAL CENTER
  • SETON SMITHVILLE REGIONAL HOSPITAL
  • MEMORIAL HERMANN NORTHEAST
  • PROVIDENCE MEMORIAL HOSPITAL
  • UNIVERSITY OF TEXAS HEALTH SCIENCE CENTER AT TYLER
  • SCENIC MOUNTAIN MEDICAL CENTER

7. What result is returned by the following code?

rankhospital("NY", "heart attack", 7)
  • FOREST HILLS HOSPITAL
  • NASSAU UNIVERSITY MEDICAL CENTER
  • BELLEVUE HOSPITAL CENTER
  • UNIVERSITY HOSPITAL S U N Y HEALTH SCIENCE CENTER
  • FLUSHING HOSPITAL MEDICAL CENTER
  • ADIRONDACK MEDICAL CENTER

8. What result is returned by the following code?

r <- rankall("heart attack", 4)
as.character(subset(r, state == "HI")$hospital)
  • NORTH COUNTRY HOSPITAL AND HEALTH CENTER
  • CASTLE MEDICAL CENTER
  • SANFORD USD MEDICAL CENTER
  • ST FRANCIS MEDICAL CENTER
  • PARKLAND HEALTH AND HOSPITAL SYSTEM
  • CLARK REGIONAL MEDICAL CENTER

9. What result is returned by the following code?

r <- rankall("pneumonia", "worst")
as.character(subset(r, state == "NJ")$hospital)
  • POTTSTOWN MEMORIAL MEDICAL CENTER
  • BERGEN REGIONAL MEDICAL CENTER
  • LAURENS COUNTY HEALTHCARE SYSTEM
  • TERREBONNE GENERAL MEDICAL CENTER
  • BAY AREA HOSPITAL
  • LAKES REGION GENERAL HOSPITAL

10. What result is returned by the following code?

r <- rankall("heart failure", 10)
as.character(subset(r, state == "NV")$hospital)
  • HAWAII MEDICAL CENTER EAST
  • RENOWN SOUTH MEADOWS MEDICAL CENTER
  • CARY MEDICAL CENTER
  • CARONDELET ST JOSEPHS HOSPITAL
  • NA
  • YORK GENERAL HOSPITAL

Similar Posts

Leave a Reply

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