54 Questions
Which of the following is a type of qualitative attribute?
Nominal
Which of the following operations can be applied to all types of attributes?
Comparison
Which of the following is a technical format for storing tabular data?
CSV
Which of the following processes involves gathering columns into a new pair of variables?
Spreading
Which function is used to perform the spreading process in R?
spread()
Which process involves separating one column into multiple columns based on a separator character?
Separating
Which of the following is NOT a learning outcome of the CSE5DEV course?
Learn about data representation
Which of the following is NOT a data format mentioned in the text?
JSON
What are the categories of data mentioned in the text?
Experimental or observational
What type of representation will be used in CSE5DEV labs?
Tabular representation
Which of the following data structures is NOT mentioned in the text?
List
What is the purpose of data wrangling?
To organize data in a well-defined structure
Which logical condition operator is used to select data based on the disp value that is equal to or less than 160 and hp less than 110?
&
Which function is used to extract data that satisfy certain criteria in R?
if statement
Which R function is used to iterate over a vector?
for loop
Which R function is used to repeat a block of code a specified number of times until a condition is met?
repeat loop
Which R function is used to evaluate an expression as long as a stated condition is true?
while loop
Which package in R is used for data wrangling and provides functions for select, filter, arrange, mutate, and summarise?
dplyr
Which of the following functions in R is used to show the first 6 rows of a data frame?
head()
What is the output of the following code in R?
x <- c(3, 5, 1, 2, 7, 6, 4) x < 5
TRUE FALSE TRUE TRUE FALSE FALSE TRUE
Which of the following logical operators in R compares vectors element by element and returns TRUE or FALSE?
., &, |
What is the output of the following code in R?
x <- c(5, 3, 7, 9, 10) x > 5
TRUE FALSE TRUE TRUE TRUE
Which of the following functions in R checks whether all entries of a logical vector are TRUE?
all()
What is the output of the following code in R?
x <- c(3, 5, 1, 2, 7, 6, 4) which(x == 2)
1
Which package needs to be installed and loaded in R to use the data wrangling functions filter(), arrange(), select(), and mutate()?
dplyr
What function is used to create a data frame in R?
data.frame()
What is the purpose of the function filter() in data wrangling?
To filter rows based on specific conditions
What is the purpose of the function arrange() in data wrangling?
To arrange the rows of a data frame
What is the purpose of the function select() in data wrangling?
To select specific columns of a data frame
What is the purpose of the function mutate() in data wrangling?
To create new columns in a data frame
Which R package is required for data wrangling and provides functions for select, filter, arrange, and mutate?
dplyr
What is the purpose of the 'filter()' function in data wrangling?
To extract data that satisfy certain criteria
Which function is used to create a data frame in R?
data.frame()
What are the categories of data mentioned in the text?
Qualitative and quantitative
Which R function is used to evaluate an expression as long as a stated condition is true?
while()
Which logical condition operator is used to select data based on a specific condition in R?
==
Which of the following is NOT a type of qualitative attribute?
Ratio
Which of the following operations can be applied to all types of attributes?
Comparison
Which R function is used to gather columns into a new pair of variables?
gather()
Which R function is used to spread columns into a new pair of variables?
spread()
Which R function is used to separate one column into multiple columns based on a separator character?
separate()
Which of the following is NOT a technical format for storing tabular data?
JSON
Which of the following functions in R is used to show the last 6 rows of a data frame?
tail()
What is the output of the following code in R?
x <- c(3, 5, 1, 2, 7, 6, 4) which(x < 5)
1, 2, 3
Which of the following processes involves combining multiple columns into a single column in R?
Unite
Which R function is used to check whether all entries of a logical vector are TRUE?
all()
What is the purpose of the function mutate()
in data wrangling?
To create transformed or derived variables
Which logical condition operator is used to select data based on the disp value that is equal to or less than 160 and hp less than 110?
<=
What are the two main topics covered in the CSE5DEV course?
Data representation and R programming
What is the purpose of data wrangling?
To convert data from one format to another
Which R function is used to import data from a text file into the R environment?
read.table()
Which of the following is NOT a type of data structure mentioned in the text?
Array
Which process involves separating one column into multiple columns based on a separator character?
Spreading
What is the purpose of the function mutate() in data wrangling?
To create new variables based on existing variables
Test your knowledge on tabular data manipulation in R with this quiz! Learn about separating and uniting processes, and how to transform data from multiple columns into a single column or vice versa. Figure out the best techniques to efficiently manipulate tabular data using R.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free