CampusERP 30/06/24, 9:26 PM
Assignment: 1
Instructions:
Number of Questions: 20
Maximum Marks: 20
Each question carries 1 Mark.
All questions are compulsory.
Attempts: 1
1
Which function is used to create a vector of repeating elements in R?
rep()
repeat()
replicate()
repeating()
2
Which function is used to list the loaded packages in R?
[Link]()
[Link]()
packages()
library()
3
Which function is used to access elements from a list in R?
get()
access()
retrieve()
extract()
4
What is the output of the following code: my_list <- list(a = 1, b = 2, c = 3);
my_list[[2]]?
2
b
1
c
[Link] Page 1 of 6
CampusERP 30/06/24, 9:26 PM
5
Which function is used to check if a particular name is present in a list in R?
list_search()
find()
search()
names()
6
Which function is used to apply a function to each element of a vector and
simplify the results in R?
apply()
foreach()
lapply()
sapply()
7
What is the output of the following code: ggplot(data = mpg) + geom_bar(aes(x
= class))?
A bar plot of class column
A scatter plot of class column
A line plot of class column
A histogram of class column
8
Which function is used to add labels to the x and y axes of a ggplot in R.
add_labels()
labels()
axis_labels()
labs()
9
Which function is used to open the color picker in R.
pick_color()
colourpicker()
select_color()
colorpicker()
[Link] Page 2 of 6
CampusERP 30/06/24, 9:26 PM
10
Which package in R is used to create animated visualizations?
gganimate
animation
animate_plotly
plotly_animation
11
Which function is used to merge two data frames in R?
merge()
combine()
join()
merge_frames()
12
What symbol is used for assignment in R?
=
==
->
<-
13
Which command is used to install a package in R from the CRAN repository?
install_package()
[Link]()
load_package()
package_install()
14
Which function is used to create a basic ggplot in R.
ggplot()
plot()
create_plot()
gg()
15
Matrices in R can only contain elements of the same data type.
[Link] Page 3 of 6
CampusERP 30/06/24, 9:26 PM
True
False
16
The diag() function in R is used to extract the diagonal elements of a matrix.
True
False
17
Data frames in R must have columns of the same data type.
True
False
18
The function __________ is used to invert a matrix in R.
invse()
invert()
mat_invert()
inv()
19
Elementary commands in R consist of either _______ or assignments.
utilstats
language
expressions
packages
20
The function __________ is used to remove missing values from a data frame in
R.
remove_na()
clean_na()
na_remove()
[Link]()
[Link] Page 4 of 6
CampusERP 30/06/24, 9:26 PM
Assignment: 2
Instructions:
Assignment 2 is based on the following text/paragraph of case study/situational exercise etc.
You first need to read this text and then answer the following MCMR i.e. Multiple choice
multiple response questions.
Number of Questions: 5
Each question carries 2 Mark
All Five Questions are Mandatory.
Attempts: 1
Exploratory Data Analysis (EDA) plays a crucial role in the initial stages of data analysis using R
programming. It involves examining and visualizing datasets to understand their underlying
patterns, structures, and relationships. R offers a wide range of tools and packages for
conducting EDA effectively. Techniques such as summary statistics, data visualization, and
correlation analysis are commonly used in EDA to gain insights into the dataset's
characteristics. By exploring data visually through plots and charts, analysts can identify
trends, outliers, and potential issues, guiding further analysis and modeling decisions. EDA is
a critical step in the data analysis process, helping analysts uncover valuable information and
inform subsequent analytical approaches. Exploratory Data Analysis (EDA) serves as a
cornerstone in data science workflows, particularly when using R programming. R provides an
extensive ecosystem of libraries and functions tailored for EDA tasks. Analysts leverage these
tools to inspect data distributions, identify missing values, detect outliers, and explore
relationships between variables. Through graphical representations such as histograms,
scatter plots, and heatmaps, analysts can visually examine data patterns and anomalies.
Additionally, statistical measures like mean, median, standard deviation, and correlation
coefficients aid in quantifying dataset characteristics. EDA in R enables analysts to preprocess
data effectively, select appropriate modeling techniques, and generate hypotheses for further
investigation, ultimately facilitating informed decision-making in data-driven endeavors.
1
2 What is the primary goal of Exploratory Data Analysis (EDA) in R programming?
To perform advanced statistical modeling
To visualize and understand dataset characteristics
To automate data cleaning processes
To generate final reports for stakeholders
3 How does EDA help analysts in data preprocessing?
By generating predictive models
By identifying data distribution patterns
By automatically cleaning missing values
By selecting appropriate modeling techniques
[Link] Page 5 of 6
CampusERP 30/06/24, 9:26 PM
4 Which statistical measures are commonly used in EDA with R?
Mode and variance
Mean and median
Skewness and kurtosis
Range and interquartile range
5 What role does R programming play in facilitating Exploratory Data Analysis (EDA)?
R provides tools for automating data cleaning processes
R offers statistical measures like mean, median, and standard deviation
R allows analysts to visualize data patterns and anomalies
R enables analysts to generate predictive models directly from the dataset
6 How would you identify EDA?
Exploratory Data Analysis
Prescriptive Statistics
Predictive Statistics
Descriptive Statistics
Submit Subjective MCQ Assignments
Submit Assignments Cancel
Developed & Maintained by: Software Development Cell
[Link] Page 6 of 6