Week 2 – Programming using RStudio – Shuffle Q/A 4

41. A data analyst wants to create the date February 27th, 2027 using the lubridate functions. Which of the following are examples of code that would create this value? Select all that apply.

  • dmy(02272027)
  • mdy(“2027-02-27”)
  • mdy(02272027)
  • ymd(“2027-02-27”)

42. A data analyst inputs the following code in RStudio: print(100 / 10) What type operators does the analyst use in the code?

  • Assignment
  • Arithmetic
  • Conditional
  • Logical

43. A data analyst wants to store a vector in a variable. What type of operator would they use to do this?

  • Assignment
  • Arithmetic
  • Relational
  • Logical

Devendra Kumar

Project Management Apprentice at Google

Leave a Reply