JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech IV Year R PROGRAMMING Previous Question Paper (July - 2023 - R16)

B.Tech | IV Year | II Semester | R16 | July - 2023

Answer PaperPaper Code: 138GTMaximum Marks: 75Time: 3 Hours

Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.

Part A

125 marks
a

What is meant by scope of a variable? Illustrate.

2 marks

Answer

The scope of a variable refers to the region of the code where a variable is accessible and can be modified. In R, variables can have global scope (accessible anywhere) or local scope (defined within a function). For example, a variable defined inside a function is local to that function and cannot be accessed outside it.

b

What are the different modes of executing a R program? Describe them.

3 marks

Answer

R programs can be executed in three primary modes:

  • Interactive Mode: Commands are typed directly into the R console and executed immediately.
  • Batch Mode: R scripts (saved as .R files) are executed from the command line or terminal without an interactive interface.
  • Integrated Development Environment (IDE) Mode: Using tools like RStudio, where code is written in a script editor and executed via a console interface.
c

Write a program in R to display the current date and time.

2 marks

Answer

Sign in to view the complete answer paper.

d

Distinguish between vectors and arrays.

3 marks

Answer

Sign in to view the complete answer paper.

e

Which function is used to find the number of elements present in a list? Give an example.

2 marks

Answer

Sign in to view the complete answer paper.

f

What is a data frame? How can we create it? Give an example.

3 marks

Answer

Sign in to view the complete answer paper.

g

Define a contingency table and give an example.

2 marks

Answer

Sign in to view the complete answer paper.

h

Illustrate the working of do.call().

3 marks

Answer

Sign in to view the complete answer paper.

i

How can we remove a specific object? Explain.

2 marks

Answer

Sign in to view the complete answer paper.

j

In what way can we create class using S. Demonstrate with a program?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

With the help of an example program, explain the various logical operators supported by language R.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is a variable? Why we need them? List and explain the rules to be followed to define them.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Give a brief description of the role of factors in R programming.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a R program to find the given year is a leap year or not.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Which statement is used to execute an infinite loop? Explain it with an example program.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an R program to print the even numbers present up to 20 in reverse order.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Write an R program to find the biggest number among four numbers.

5 marks

Answer

Sign in to view the complete answer paper.

b

How can we initialize the values to an array? Explain with example program.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

With the help of syntax and examples, explain the various operations of a list.

5 marks

Answer

Sign in to view the complete answer paper.

b

How can we access the list components and values? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What are the various functions that can be applied to lists? Explain them.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain, how can we apply the rbind() and lbind() functions?

5 marks

Answer

Sign in to view the complete answer paper.

8

List and explain the various functions that can be applied with factors.

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Write and explain the various functions used for statistical distribution.

5 marks

Answer

Sign in to view the complete answer paper.

b

Suppose we have m independent events, and the jth event has the probability pi of occurring. What is the probability of exactly one of these events occurring?

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Write and explain the working of S generics.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is meant by inheritance? In what way is it useful in solving problems using programming languages?

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

How can we plot histograms? Explain with a simple example program.

5 marks

Answer

Sign in to view the complete answer paper.

b

How can we calculate mean, median and standard deviation? Demonstrate with example.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of R PROGRAMMING from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech ECE IV Year II Semester, July - 2023, R16.

For the question paper without answers, switch to the Question Paper tab.

Other papers in R PROGRAMMING

Loading Question Papers

Fetching data from database...