munotes®

BSc Data Science SEM II 2021 2022 May 2022 DS R PROGRAMMING Question Paper - Mumbai University | munotes

F.Y.DS SEM II R PROGRAMMING (PD 13 MAY.22).pdf
SEM II · 2021-2022 · 1 May 2025

Loading PDF...

Questions asked in this paper

  1. Q1 Attempt the following [ we place brackets after all functions always 40 marks
    • a.Round b. Curly
    • c. Square d. Angular is a multidimensional collection of data entries of the same type
    • a. vector b. matrix
  2. Q4 Function diverts the output from the console to an external file
    • a. scan() b. print()
    • c. write() d. sink() What will be the output?
    • c. NA d. “A”
  3. Q7 Use to start comments length(colors()) will be the output?
  4. Q9 Which of the following is not Low-level plotting function?
    • a. points() b. lines()
    • c. abline() d. par() Which of the following functions is used for Tab-separated values File format()? Il. parse_date(c("75/02/05"), format = "Yy/Ym/%d") What will be the output?
  5. Q12 We can use to create a data frame, specify the columns as named arguments
    • a. table() b. tibble()
    • c. d. bubble()
  6. Q13 The function can merge several columns into to a key and a value column
    • a. spread() b. tribble()
    • c. gather() d. extract() The pipe operator is implemented in the package
  7. Q15 str_to_title("r program") What will be the output?
    • a. R Program b. r program
    • c. r Program d. R PROGRAM
  8. Q16 If you have two factors, then you can concatenate them using While select () extracts a subset of columns, the function does the same for rows
    • a. filter() b. tribble()
    • c. gather() d. extract() =
  9. Q18 The function lets us add columns to a data frame based on expressions
    • a. spread() b. mutate()
  10. Q19 With you should write your data in a format that puts the year first, the month second, and the day last package is essential for working with datcs and fits well with the Tidyverse
  11. Q2 Attempt the following
    • A) Solve any ONE. Write a note on Comparison and Logical operator with suitable examples 4 2. Explain below R objects with Examples: 4
    • B) Solve any ONE. How to Interrupt and Quit R on a different platform? 3
  12. Q2 List different brackets used in R. Specify use of it with suitable examples
  13. Q3 Attempt the following
    • A) Solve any ONE. Explain Any two Conditional statements with suitable examples 4
  14. Q2 Explain the arguments used in plot()
    • B) Solve any ONE. 3
  15. Q1 Write a short note on: apply, tapply, lapply and sapply
  16. Q2 Write a while loop printing the cube of | to 5 with expected output
  17. Q4 Attempt the following
    • A) Solve any ONE. Write a short note on “Advanced plotting using Trellis; ggplots2, Lattice" 4
  18. Q2 Explain “Simple use of xyplot” with suitable examples
    • B) Solve any ONE. Explain any three functions used for reading tabular data from readr package 3
  19. Q5 Attempt the following
    • A) Solve any ONE. Write down output of following: str <- c(“Give me an ice-cream”, “Get yourself one ice-cream or two s="pizza"; s2<-str_glue("Give me a {s}"); s2 4
  20. Q2 State difference between as_factor() and as.factor() with example. Also explain Concatenation with examples
    • B) Solve any ONE. Explain Wrapping, Padding, and Trimming used in stringr library 3
  21. Q2 Explain Expanding, Crossing, and Completing with Example
  22. Q6 Attempt the following
    • A) Solve any ONE. State the use of the lubridate package and explain “Time points” with examples 4
  23. Q2 Write a short note on Joining Tables explaining its four functions
    • B) Solve any ONE. Explain mutate() with an example 3
  24. Q2 Write short note on Time Zone and Time Interval

Read from the scan above, so a character or two may differ. The scan is the original.

Report or request

Something wrong on this page? Report it and we will check it against the scan.

Quick Help

No. The full paper opens straight away, with no login and nothing to pay.

Something wrong with this paper? Report it.

Done!
Done!