Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

an HCL GUVI product

Home /Programming Exercises /R Programming/ Intermediate

R Programming Exercises

Master R Programming with hands-on practice problems across Beginner, Intermediate, and Advanced tracks. Filter by level, difficulty or status, and solve in our in-browser compiler.

63 questions0 / 63 solved3 levelsUpdated weekly

Programming Tracks16 Tracks

Py

Python

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
☕

Java

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
C++

C++

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
R

R Programming

63 Questions
Active Track0 / 63 (0%)
BeginnerIntermediateAdvanced

R Programming Questions20 Problems

0/63 Solved
QuestionDifficultyProgressStatus
RWrite an R program to calculate the Fibonacci sequence up to the 10th term using a loop.R Programming · Intermediate
Med.0%Not Started
RCreate a custom function in R to calculate the nth power of a number.R Programming · Intermediate
Med.0%Not Started
RWrite an R program to filter rows in a data frame based on a specific condition.R Programming · Intermediate
Med.0%Not Started
RWrite a program to calculate the cumulative sum of a numeric vector.R Programming · Intermediate
Med.0%Not Started
RCreate a data frame and write a function to add a new column to it.R Programming · Intermediate
Med.0%Not Started
RWrite an R program to find all the prime numbers less than a given number.R Programming · Intermediate
Med.0%Not Started
RWrite a program to calculate the variance and standard deviation of a numeric vector.R Programming · Intermediate
Med.0%Not Started
RWrite a function to check if a given string is a palindrome.R Programming · Intermediate
Med.0%Not Started
RCreate a function that accepts a data frame and a column name and calculates the mean of that column.R Programming · Intermediate
Med.0%Not Started
RWrite a program to calculate the element-wise product of two matrices.R Programming · Intermediate
Med.0%Not Started
RCreate a function that accepts a numeric vector and returns only the even numbers.R Programming · Intermediate
Med.0%Not Started
RWrite a function to reverse the rows of a data frame.R Programming · Intermediate
Med.0%Not Started
RCreate a list of 5 named elements, access each element, and print its type.R Programming · Intermediate
Med.0%Not Started
RWrite an R program to perform basic arithmetic operations (+, -, *, /) on two numeric vectors.R Programming · Intermediate
Med.0%Not Started
RCreate a function to normalize the values in a numeric vector between 0 and 1.R Programming · Intermediate
Med.0%Not Started
RWrite a function to replace NA values in a vector with the median of the non-NA values.R Programming · Intermediate
Med.0%Not Started
RWrite a program to calculate the dot product of two vectors.R Programming · Intermediate
Med.0%Not Started
RWrite a function to compute the mode of a numeric vector.R Programming · Intermediate
Med.0%Not Started
RWrite an R program to perform linear regression and predict values based on a numeric data frame.R Programming · Intermediate
Med.0%Not Started
RWrite a program to calculate the eigenvalues and eigenvectors of a given matrix.R Programming · Intermediate
Med.0%Not Started
RowsShowing 1 - 20 of 20

Frequently asked questions

What programming languages are covered in the exercises?
Our platform supports Python, Java, C, C++, JavaScript, and more languages used in the industry today.
How are the exercises divided across difficulty levels
Our exercises are organized into Beginner, Intermediate, and Advanced levels, letting you progress naturally.
Are the exercises suitable for both beginners and experienced coders?
Yes, the exercises are suitable for both beginners and experienced coders.
How do topic-wise exercises help in better learning?
The topic-wise exercises let you focus on one concept at a time, strengthening your understanding step by step.
Do the exercises cover both basic syntax and complex algorithms?
Yes, from basic syntax to complex algorithms, our exercises span the full range of programming challenges.
Can these exercises prepare me for coding interviews?
Yes, these exercises are designed to match real interview questions, helping you prepare for coding interviews.
Is there an integrated IDE on the platform to run and test the code?
Yes, our platform includes a built-in web IDE where you can write, test, and run your code instantly.
Do the exercises include solutions or hints for guidance?
Yes, when you're stuck, you can access helpful hints or study complete solutions to learn different approaches.
Are there any prerequisites for attempting the advanced-level exercises?
Yes, advanced exercises require a solid understanding of the basics and intermediate concepts of your chosen language.
How do these exercises improve coding speed and efficiency?
Through consistent practice and exposure to diverse challenges, you'll naturally become faster and more efficient at coding.
Is there a time limit for completing each exercise?
No, take as long as you need – our focus is on learning, not racing against the clock.
Are the exercises updated regularly to include new challenges?
Yes, we consistently update our exercise collection to include new challenges and keep up with industry trends.