0% found this document useful (0 votes)
4 views2 pages

PDS2CS01 Locf

Uploaded by

vishal kulkarni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

PDS2CS01 Locf

Uploaded by

vishal kulkarni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

P.G. DEGREE EXAMINATION – CROSS DISCIPLINARY


SECOND SEMESTER – APRIL 2024
PDS2CD01 – DATA VISUALIZATION THROUGH R

Date: 12-04-2024 Dept. No. Max. : 100 Marks


Time: 01:00 PM - 04:00 PM
SECTION A – K1 (CO1)
Answer ALL the questions (5 x 1 = 5)
1 Answer the following / MCQ
a) What is R primarily used for?
(i). Web Development
(ii). Data Analysis and Statistics
(iii). Mobile App Development
(iv). Graphic Designing
b) What is a key characteristic of a list in R?
(i). It can only store numeric values
(ii). Elements must be of the same data type
(iii). It can store elements of different data types
(iv). Lists cannot be assigned to variables
c) What function is used to merge two data frames based on a common column in R?
(i). join()
(ii). merge()
(iii). combine()
(iv). bind()
d) How can you check if an object exists in the R environment?
(i). exists()
(ii). object_exists()
(iii). is_present()
(iv). check_object()
e) ------- is a collection of geometric elements and statistical transformations.
(i). Coordinates
(ii). Facets
(iii). Themes
(iv). Layer
SECTION A – K2 (CO1)

Answer ALL the questions (5 x 1 = 5)


2 Answer the following / MCQ
a) In R, what is the basic data structure for a sequence of elements of the same data type?
(i). List
(ii). Vector
(iii). Data Frame
(iv). Matrix

1
b) What does the cbind() function do in R when applied to matrices?
(i). Combines matrix by columns
(ii). Combines matrix by rows
(iii). Transposes the matrix
(iv). Deletes a column from the matrix
c) What is the function used to create a contingency table in R?
(i). table()
(ii). contingency_table()
(iii). create_table()
(iv). cross_table()
d) What function is used to capture user input from the console in R?
(i). input()
(ii). console_input()
(iii). read_console()
(iv). scan()
e) Which component in ggplot2 is used to map values in the data space to values in the aesthetic space?
(i). Coordinates
(ii). Facets
(iii). Scales
(iv). Themes
SECTION B – K3 (CO2)

Answer any THREE of the following (3 x 10 = 30)


3 Write the concept of Packages in R Programming
4 Utilize R code to demonstrate the concept of Accessing List components and values.
5 Discuss the significance of Creating and Accessing data frames in R with an example code.
6 Explain the various functions in OOP to Manage your Objects with a R code.
7 Illustrate the concept of Histograms using ggplot2 with R code.
SECTION C – K4 (CO3)
Answer any TWO of the following (2 x 12.5 = 25)
8 State and explain the various Vectorized Operations in R with an example code.
9 Explain the concepts of Matrix including the process of adding rows and columns with R code.
10 Explain the various common functions used with Factors with R code.
11 Illustrate the concept of Statistical Transformation using ggplot2 with R code.
SECTION D – K5 (CO4)
Answer any ONE of the following (1 x 15 = 15)
12 Describe the various General List Operations in R with an example code.
13 Explain the various String Manipulation Functions in R with an example code.
SECTION E – K6 (CO5)
Answer any ONE of the following (1 x 20 = 20)
14 (a) Describe the concept of Functions in R programming (10 M)
(b) Illustrate the concept of Merging Data Frames with R code (10 M)
15 (a) Write the concept of S3 classes in Object-Oriented Programming using R code (10 M)
(b) Describe the concept of plotting with layers using ggplot2 in R (10 M)
-----------------------
2

You might also like