0% found this document useful (0 votes)
17 views2 pages

R Programming QPs

Uploaded by

pankaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

R Programming QPs

Uploaded by

pankaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Confidential - Oracle Restricted

Question Paper 1

Section A: Short Answer (2 Marks Each)

(Answer any 5 of the following questions. Each question carries 2 marks.)

1. What is a vector in R? Provide an example.

2. How do you create a matrix in R? Give an example.

3. Explain the difference between a matrix and a data frame.

4. What are NA values in R? Provide an example.

5. Describe the term "coercion" in R with an example.

6. What is the function is.na() used for in R?

7. What is a factor in R, and how is it created?

Section B: Detailed Answer (5 Marks Each)

(Answer any 3 of the following questions. Each question carries 5 marks.)

1. Explain the creation and manipulation of vectors in R with examples.

2. Discuss the creation and characteristics of matrices in R.

3. Explain arrays in R and provide an example of a 3-dimensional array.

4. Discuss how to handle missing values (NA) in R.

5. Describe the process of basic plotting in R with examples.

Confidential - Oracle Restricted


Confidential - Oracle Restricted

Question Paper 2

Section A: Short Answer (2 Marks Each)

(Answer any 5 of the following questions. Each question carries 2 marks.)

1. Define a data frame in R and show how to create one.

2. What is the difference between NULL and NA in R?

3. How can you extract a specific element from a list in R?

4. Describe the concept of non-numeric values in R with examples.

5. What is the significance of NULL in R?

6. Explain the role of classes in R and how they affect object behavior.

7. How do you convert a list into a data frame in R?

Section B: Detailed Answer (5 Marks Each)

(Answer any 3 of the following questions. Each question carries 5 marks.)

1. Explain the importance of lists in R and provide examples of their creation and
usage.

2. Describe the process of creating and manipulating matrices in R with examples.

3. What are special values in R, and how do you handle them?

4. Explain the difference between lists and data frames in R with examples.

5. Discuss how to create and customize plots in R using the ggplot2 package.

Confidential - Oracle Restricted

You might also like