InterviewPitch

Land the job you want — prepare
with Real interviews Q&A

Curated interview questions, company-wise guides and coding rounds. Practice mock interviews, improve with feedback, and track your progress.

Q&A
Top curated interview packs
Company-wise & role-wise packs, quality assured.
Mock interview
AI scoring
Coding rounds
Top 10 sets
Beginner
1. What is R?
R is an open-source programming language used for statistical computing, data analysis, and visualization.
Beginner
2. What are the main features of R?
Data handling, statistical analysis, graphical visualization, large package ecosystem, and open-source availability.
Beginner
3. What are data types in R?
Numeric, Integer, Character, Logical, Complex, and Raw.
Beginner
4. What is a vector in R?
A vector is a basic data structure that contains elements of the same data type.
Beginner
5. How do you create a vector in R?
Answer Here
Intermediate
6. What is a list in R?
A list is a data structure that can contain elements of different data types.
Intermediate
7. What is a data frame?
A data frame is a table-like structure where each column can contain different data types.
Intermediate
8. How to read a CSV file in R?
Answer Here
Intermediate
9. How to install a package in R?
install.packages("ggplot2")
Intermediate
10. How to load a package?
library(ggplot2)
Intermediate
11. What is NA in R?
NA represents missing values in R.
Intermediate
12. How to remove missing values?
na.omit(data)
Intermediate
13. What is a factor in R?
A factor is used to represent categorical variables.
Intermediate
14. Difference between matrix and data frame?
Matrix contains same data type; data frame can contain different data types.
Intermediate
15. What is apply() function?
apply() is used to apply a function over rows or columns of a matrix.
Advanced
16. What is lapply()?
lapply() applies a function over a list and returns a list.
Advanced
17. What is sapply()?
sapply() applies a function and returns simplified output (vector/matrix).
Advanced
18. What is dplyr?
dplyr is a package for data manipulation (filter, select, mutate, summarize).
Advanced
19. What is ggplot2?
ggplot2 is a data visualization package based on grammar of graphics.
Advanced
20. What is tidyverse?
A collection of R packages for data science including dplyr, ggplot2, tidyr, etc.
Coding Round
21. Reverse a vector
rev(c(1,2,3))
Coding Round
22. Find mean of a vector
mean(x)
Coding Round
23. Find sum of elements
sum(x)
Coding Round
24. Sort a vector
sort(x)
Coding Round
25. Create a sequence from 1 to 10
1:10
Coding Round
26. Create a function in R
Answer Here
Coding Round
27. Check even or odd
if(x %% 2 == 0) "Even" else "Odd"
Coding Round
28. Loop example
Answer Here
Coding Round
29. While loop
Answer Here
Coding Round
30. If-else example
Answer Here