wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

R Programming Quiz 1

Total questions: 60

Worksheet time: 34mins

Name
Class
Date
1.
Data analytics encompasses which of the following processes?
a)
Collecting, cleansing, organizing, and analyzing data
b)
Only analyzing data using tools
c)
Storing and governing data only
d)
None of the above
2.
What year was R programming language first introduced?
a)
1995
b)
2000
c)
2005
d)
2010
3.
What is the primary goal of data analytics?
a)
Storing data securely
b)
Analyzing data using tools
c)
Extracting meaningful insights from data
d)
Governing data effectively
4.
What does data analytics encompass beyond data analysis?
a)
Visualization
b)
Management of the complete data lifecycle
c)
Statistical modeling only
d)
Data storage optimization
5.
Which phase of the data lifecycle involves ensuring data quality and consistency?
a)
Collecting
b)
Cleansing
c)
Organizing
d)
Storing
6.
What is the primary objective of data governance?
a)
Storing data securely
b)
Analyzing data using tools
c)
Ensuring compliance and quality of data
d)
Extracting insights from data
7.
What term describes the process of focusing on more detailed data from summarized data?
a)
Drill Down
b)
Drill Up
c)
Filter
d)
Sort
8.
Which term refers to the use of technology to extract insights from data to support decision-making?
a)
Data visualization
b)
Business Intelligence (BI)
c)
Data cleansing
d)
Data modeling
9.
Which of the following is NOT a characteristic of data?
a)
Flexibility
b)
Completeness
c)
Consistency
d)
Uniqueness
10.
Which of the following is a characteristic of data?
a)
Efficiency
b)
Completeness
c)
Clarity
d)
Flexibility
11.
What type of data has a defined data model but may not fit into a rigid structure?
a)
Structured data
b)
Semi-structured data
c)
Unstructured data
d)
Hierarchical data
12.
What does "timeliness" refer to in the context of data characteristics?
a)
The speed at which data is analyzed
b)
The accuracy of data
c)
The consistency of data over time
d)
The availability of data when needed
13.
What distinguishes semi-structured data from structured data?
a)
It is organized in rows and columns
b)
It lacks a defined data model
c)
It fits neatly into a relational database
d)
It is easy to query
14.
What type of data is characterized by its organization into rows and columns with a clear schema?
a)
Semi-structured data
b)
Unstructured data
c)
Structured data
d)
Dynamic data
15.
Which type of analytics focuses on explaining why a particular event happened?
a)
Descriptive analytics
b)
Diagnostic analytics
c)
Predictive analytics
d)
Prescriptive analytics
16.
In which type of analytics is historical data used to make predictions about future events?
a)
Descriptive analytics
b)
Diagnostic analytics
c)
Predictive analytics
d)
Prescriptive analytics
17.
Which term refers to the process of recommending actions based on data insights?
a)
Descriptive analytics
b)
Predictive analytics
c)
Prescriptive analytics
d)
Diagnostic analytics
18.
What is the primary application of speech recognition in data analytics?
a)
Internet search
b)
Digital advertisements
c)
Gaming
d)
Business reporting
19.
What is the main purpose of targeted advertising in digital marketing?
a)
Increase website traffic
b)
Enhance brand awareness
c)
Reach specific audience segments
d)
Generate leads
20.
Which application of data analytics involves analyzing customer behavior to provide personalized recommendations?
a)
Internet search
b)
Digital advertisements
c)
Recommender systems
d)
Delivery logistics
21.
Who are the creators of the R programming language?
a)
John Chambers
b)
Ross Ihaka and Robert Gentleman
c)
Guido van Rossum
d)
Larry Wall
22.
What is the primary purpose of R?
a)
Web development
b)
Statistical analysis and graphics representation
c)
Mobile app development
d)
Game development
23.
What language served as an inspiration for the creation of R's lexical scoping semantics?
a)
Python
b)
S
c)
C++
d)
Java
24.
Who created the S programming language, which heavily influenced the development of R?
a)
Ross Ihaka
b)
Robert Gentleman
c)
John Chambers
d)
Larry Wall
25.
Which feature of R allows users to perform complex statistical calculations?
a)
Open-source
b)
Strong graphical capabilities
c)
Comprehensive environment
d)
Perform complex statistical calculations
26.
What does R provide for distributed computing?
a)
Parallel processing
b)
Cloud-based computing
c)
Hadoop integration
d)
Grid computing
27.
In which sector is R commonly used for financial modeling and analysis?
a)
Research and Academics
b)
IT Sector
c)
Finance
d)
E-commerce
28.
Which application of R involves analyzing customer behavior and preferences for targeted marketing?
a)
R in Manufacturing
b)
R in Social Media
c)
R in E-commerce
d)
R in Banking
29.
What command is used to get help regarding a specific function in R?
a)
assist()
b)
tutorial()
c)
help()
d)
info()
30.
What function is used to concatenate objects in R?
a)
concat()
b)
combine()
c)
c()
d)
concatObjects()
31.
What function is used to get the current working directory in R?
a)
currentdir()
b)
getwd()
c)
cwd()
d)
currentdirpath()
32.
Which of the following is NOT a data type in R?
a)
Integer
b)
String
c)
Float
d)
Double
33.
Which operator is used for exponentiation in R?
a)
^
b)
**
c)
*
d)
v
34.
What function is used to list files in the current working directory in R?
a)
listfiles()
b)
ls()
c)
dir()
d)
filelist()
35.
What function is used to sort values in R?
a)
order()
b)
sort()
c)
arrange()
d)
orderValues()
36.
In R, what is the scope of a variable defined inside a function?
a)
Local to the function
b)
Global to the script
c)
Global to the function
d)
Local to the script
37.
What happens if you attempt to access a variable outside its scope in R?
a)
Error: Variable not defined
b)
Error: Variable out of scope
c)
No error, the variable is automatically made global
d)
No error, the variable retains its original scope
38.
Which of the following is a complex data type in R?
a)
Integer
b)
Float
c)
Character
d)
Complex
39.
What is the result of the expression 5 %/% 2 in R?
a)
2.5
b)
2
c)
2
d)
3
40.
What is the result of the expression 3 %% 2 in R?
a)
1
b)
1.5
c)
2
41.
How can you take input from the user in R?
a)
input()
b)
read()
c)
scan()
d)
readline()
42.
Which function is used for output in R?
a)
print()
b)
display()
c)
show()
d)
output()
43.
What statement is used for decision-making in R?
a)
ifelse()
b)
for()
c)
while()
d)
switch()
44.
Which looping statement is used to iterate over a sequence of values in R?
a)
for()
b)
while()
c)
repeat()
d)
until()
45.
What statement is used to exit a loop prematurely in R?
a)
end()
b)
terminate()
c)
stop()
d)
break()
46.
What statement is used to exit a function and return a value in R?
a)
stop()
b)
exit()
c)
break()
d)
return()
47.
What statement is used for multi-way decision making in R?
a)
ifelse()
b)
for()
c)
switch()
d)
while()
48.
Which data structure in R can hold elements of different data types?
a)
Vectors
b)
Lists
c)
Data frames
d)
Matrices
49.
Which data structure in R is one-dimensional and homogeneous?
a)
Lists
b)
Data frames
c)
Matrices
d)
Arrays
50.
Which data structure in R is two-dimensional and homogeneous?
a)
Vectors
b)
Lists
c)
Data frames
d)
Matrices
51.
Which data structure in R is used for tabular data?
a)
Vectors
b)
Lists
c)
Data frames
d)
Matrices
52.
Which data structure in R is used for multi-dimensional arrays?
a)
Vectors
b)
Lists
c)
Data frames
d)
Arrays
53.
What is used to exit the current iteration of a loop in R?
a)
return
b)
next
c)
stop
d)
exit
54.
What function is used to create a vector in R?
a)
list()
b)
array()
c)
vector()
d)
c()
55.
Which data structure can hold elements of different lengths in R?
a)
Vectors
b)
Lists
c)
Data frames
d)
Matrices
56.
Which function in R is used to create a character vector by formatting elements according to a specified format?
a)
print()
b)
sprintf()
c)
cat()
d)
write()
57.
Which function in R is used to concatenate and print vectors or other objects to the console or a file?
a)
print()
b)
sprintf()
c)
cat()
d)
write()
58.
Which loop in R is typically used for iterating over a sequence of elements and executing a block of code a fixed number of times?
a)
while loop
b)
repeat loop
c)
for loop
d)
do-while loop
59.
What is the syntax for a nested for loop in R?
a)
for (i in 1:10) { for (j in 1:5) { } }
b)
for (i = 1 to 10) { for (j = 1 to 5) { } }
c)
for (i = 1:10) { for (j = 1:5) { } }
d)
for (i from 1 to 10) { for (j from 1 to 5) { } }
60.
What is the primary difference between a while loop and a repeat loop in R?
a)
There is no difference; they serve the same purpose.
b)
A while loop checks the condition before each iteration, while a repeat loop checks the condition after each iteration.
c)
A while loop can only execute a block of code once, while a repeat loop can execute it multiple times.
d)
A repeat loop always executes at least once, while a while loop may not execute at all.