Dar Prev Paper - Ag
Dar Prev Paper - Ag
USN BDS306C
Module – 1 M L C
Q.1 a. Explain with example Environments and Functions. 12 L2 CO1
b. Develop a program to create two 3 3 matrices A and B and perform the 10 L3 CO2
following operations i) Transpose of the matrix ii) Addition
iii) Subtraction iv) Multiplication.
OR
Q.4 a. Explain briefly: i) Factors ii) Strings. 10 L2 CO2
b. Develop an R program using functions to find all the prime numbers up to a 10 L3 CO2
specified number by the method of sleve of elatostheves.
Module – 3
Q.5 a. Explain briefly about importing and exporting files. 10 L2 CO3
b. Explain with different steps involved in data cleaning and transforming. 10 L2 CO3
OR
Q.6 a. Develop a data form in R for storing about 20 employee details. Create a 10 L3 CO3
CSV file named “Input CSV” that defines all the required information
about the employee such as id, name, salary, start-date, dept. Import into R
and do the following analysis.
i) Find the total number rows and columns.
ii) Find the maximum salary.
iii) Retrieve all the details of the employee with maximum salary.
iv) Retrieve all the employees working in the IT department.
v) Retrieve the employees in the IT department whose salary is greater
than 20000 and write these details into another file output CSV”.
b. Explain briefly with example accessing data bases. 10 L2 CO3
1 of 2
1
AKASH GADDE
BDS306C
Module – 4
Q.7 a. Explain briefly: 10 L2 CO4
i) Exploratory data analysis.
ii) Scatter plots.
b. Explain base graphics and lattice graphics with the help of BOX plots. 10 L2 CO4
OR
Q.8 a. Demonstrate the progression of salary with years of experience using a 10 L3 CO4
suitable data set (you can create yours own dataset). Plot the graph
visualizing the best fit live on the plot of the given data points. Plot a curve
of actual values vs. predicted values to show their correlation and
performance of the model. Interpret the meaning of the slope and
y-interrupt of the line with respect to the given data. Implement using the
lm function. Save the graphs and coefficients in files. Attach the predicted
values of salaries as a new column to the original data set and save the data
as a new CSV file.
b. Explain how histograms are used to base graphics, lattice graphics and 10 L2 CO4
ggplot 2 graphics.
Module – 5
Q.9 a. Explain briefly basic statistical measures available in R. 10 L2 CO5
OR
Q.10 a. Explain: i) Correlation Analysis ii) Linear Regression. 10 L2 CO5
*****