PRACTICE PAPER | |
First Semester[BTech] | |
Paper Code: BAI-102 | Subject : R-Language |
Time:1.5 Hours | Maximum Marks:30 |
Note: Q1 is compulsory. Attempt any two parts of Q2 and Q3. | |
Q1 Discuss : (2.5*4=10) | |
(a) Write about vectors in R, also apply two arithmetic operations on vectors. | |
(b) Explain the advantages in R, in comparison to other languages. | |
(c) Write a program to find the average of 3 numbers. | |
(d) Write a program to calculate the mode of elements in a vector. | |
UNIT I | |
Q2. Attempt any two parts: | |
(a) Define data structure with different types of data structure in R. | |
(b) Implement sorting in R without using the sort functions. | |
(c) Write a program to check a given number is an Armstrong or not. | |
UNIT II | |
Q3. Attempt any two parts: | |
a) Explain operations on matrices. | |
b) Write a program to print a series of squares and cubes from 1 to a given number. | |
c) Write a program to find the number of vowels in a given string. |
previous post