JNTU

JNTU B.Tech IV R PROGRAMMING Previous Question Paper (July/August - 2022 - R16)

B.Tech | IV | IV-II | R16 | July/August - 2022

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

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Explain Data types in R.

7 marks

Answer

R is a dynamically typed language where variables do not require explicit declaration. The primary data types are:

  • Numeric: Represents real numbers, including decimals (e.g., 10.5, 5).
  • Integer: Represents whole numbers. These are defined by appending an 'L' suffix (e.g., 5L).
  • Character: Represents text strings enclosed in single or double quotes (e.g., "Hello").
  • Logical: Represents boolean values TRUE or FALSE.
  • Complex: Represents numbers with an imaginary part, denoted by 'i' (e.g., 2+3i).
  • Raw: Used to hold raw bytes of data.
b

Write R code to tabulate a function

f(x) = 3x2+2x+1
in the interval (-1, 1) in steps of 0.2.

8 marks

Answer

To tabulate the function f(x) = 3x2+2x+1 in the specified range, use the sequence generation function and vectorization:

x <- seq(-1, 1, by = 0.2) 
f_x <- 3 * x^2 + 2 * x + 1 
table <- data.frame(x, f_x) 
print(table)

The seq() function creates the vector of x-values, and the arithmetic operations are applied element-wise to the vector to compute the corresponding values of f(x). The results are then stored and displayed as a data.frame.

215 marks
a

Discuss Essentials of the R Language in detail.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain about sub setting R Objects.

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Discuss in detail about matrices in R with examples.

8 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about vectors in R with examples.

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Explain control structures in R with example.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain linear algebra operations on vectors and matrices.

8 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Discuss about Text Concordance in detail.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain about Matrix-Like Operations in detail.

8 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Write a note on Creating Lists.

7 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the following: i) Getting the Size of a List ii) Deleting List elements.

8 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Discuss various steps of Finding the Largest Cells in a Table.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write about Minima and Maxima.

8 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Discuss about Statistical Analysis with R in detail.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain about S Generic Functions.

7 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 JNTU for B.Tech ECE IV IV-II, July/August - 2022, 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...