Data Wrangling and R Programming Quiz
71 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which stage involves identifying the problem or question in a data science project?

  • Stage - 1 (correct)
  • Stage - 2
  • Stage - 3
  • Stage - 4

What are the stages involved in a data science project?

  • Data Collection, Data Normalization, Data Analysis, Data Reporting
  • Identify the problem, Collect & Prepare the data, Explore the data, Communicate the results (correct)
  • Data Collection, Data Wrangling, Data Exploration, Data Cleaning
  • Data Collection, Data Visualization, Data Analysis, Data Presentation

Which lecture covers Data Cleaning & Normalization in the syllabus?

  • Lecture 4 (correct)
  • Lecture 1
  • Lecture 3
  • Lecture 2

Which type of attribute represents quantities with meaningful ratios between their values?

<p>Ratio (B)</p> Signup and view all the answers

Which type of attribute represents quantities that have meaningful difference between their values but no multiplicative relations?

<p>Interval (B)</p> Signup and view all the answers

Which type of attribute represents quantities with some order, but don't specify an exact quantity?

<p>Ordinal (A)</p> Signup and view all the answers

Which type of attribute represents attributes that just specify names without any particular order or relation between them?

<p>Nominal (A)</p> Signup and view all the answers

Which of the following is NOT a learning outcome of the course?

<p>Learn R programming conditional statement (C)</p> Signup and view all the answers

What are the different data formats mentioned in the course?

<p>Text, CSV, URL (C)</p> Signup and view all the answers

What is data wrangling?

<p>The process of organising data in a consistent representation or format (C)</p> Signup and view all the answers

What type of representation will be used in CSE5DEV labs?

<p>Tabular representation (A)</p> Signup and view all the answers

Which function can be used to check whether all entries of a logical vector are TRUE?

<p>all (C)</p> Signup and view all the answers

Which operator can be used to combine two or more conditions element-wise?

<p>|| (D)</p> Signup and view all the answers

Which function returns the dimensions of a data frame?

<p>dim (A)</p> Signup and view all the answers

Which operator can be used to check if a value is not equal to another value?

<p>!= (C)</p> Signup and view all the answers

Which function shows the class of each column in a data frame?

<p>sapply (C)</p> Signup and view all the answers

Which operator can be used to check if a value is less than or equal to another value?

<p>&lt;= (D)</p> Signup and view all the answers

Which of the following is NOT a learning outcome of the CSE5DEV course?

<p>Learn R programming conditional statement. (D)</p> Signup and view all the answers

Which stage in a data science project involves identifying the problem or question?

<p>Data Collection (B)</p> Signup and view all the answers

Which type of attribute represents quantities with meaningful ratios between their values?

<p>Quantitative (A)</p> Signup and view all the answers

Which lecture in the syllabus covers Data Cleaning & Normalization?

<p>Data Wrangling Basics of R Programming (C)</p> Signup and view all the answers

What is the data format used in CSE5DEV labs?

<p>Tabular (B)</p> Signup and view all the answers

What are the different data formats mentioned in the course?

<p>Tabular, Matrix, Factor, Data Frame (B)</p> Signup and view all the answers

Which packages need to be installed and loaded into R in order to use the mentioned processes?

<p>tidyr and dplyr (A)</p> Signup and view all the answers

What is the first step in the data wrangling process?

<p>Create a data frame (B)</p> Signup and view all the answers

Which function is used to filter the data in the data wrangling process?

<p>filter() (D)</p> Signup and view all the answers

Which function is used to arrange the data in the data wrangling process?

<p>arrange() (B)</p> Signup and view all the answers

Which function is used to select specific columns of data in the data wrangling process?

<p>select() (B)</p> Signup and view all the answers

Which function is used to create new variables based on existing variables in the data wrangling process?

<p>mutate() (A)</p> Signup and view all the answers

Which of the following is NOT a type of attribute in tabular data?

<p>Ratio (C)</p> Signup and view all the answers

Which of the following operations can be applied to all types of attributes in tabular data?

<p>Comparison (C)</p> Signup and view all the answers

Which process is used to gather columns into a new pair of variables in tabular data?

<p>Gathering (B)</p> Signup and view all the answers

Which process is the opposite of gathering in tabular data?

<p>Spreading (D)</p> Signup and view all the answers

Which process is used to separate a column into multiple columns based on a separator character in tabular data?

<p>Separating (A)</p> Signup and view all the answers

Which of the following is NOT a technical format for storing or collecting tabular data?

<p>JSON (D)</p> Signup and view all the answers

Which type of attribute represents attributes that have only two values, such as Yes/No or 0/1?

<p>Qualitative (A)</p> Signup and view all the answers

What are the types of operations that can be applied to attributes?

<p>Comparison, Ordering, Differences, Addition, Division, Multiplication (A)</p> Signup and view all the answers

Which technical format is a standard format for storing or collecting tabular data?

<p>CSV (B)</p> Signup and view all the answers

What are the processes used to convert non-tabular data into tabular representation?

<p>Gathering and Spreading (B)</p> Signup and view all the answers

Which process is used to pull apart one column into multiple columns by splitting wherever a separator character appears?

<p>Separating (B)</p> Signup and view all the answers

What function is used to separate data into multiple columns in R?

<p>separate(data, col, into, sep) (D)</p> Signup and view all the answers

Which of the following is NOT a learning outcome of the CSE5DEV course?

<p>Learn R programming conditional statement (A)</p> Signup and view all the answers

What are the different data formats mentioned in the course?

<p>Text, CSV, URL (A)</p> Signup and view all the answers

Which stage involves identifying the problem or question in a data science project?

<p>Data Collection (C)</p> Signup and view all the answers

Which type of attribute represents quantities with meaningful ratios between their values?

<p>Quantitative (D)</p> Signup and view all the answers

What is data wrangling?

<p>Cleaning and transforming data (C)</p> Signup and view all the answers

Which lecture covers Data Cleaning & Normalization in the syllabus?

<p>Data Wrangling Basics of R Programming (D)</p> Signup and view all the answers

Which function in R can be used to show the first 6 rows of a data frame?

<p>head() (D)</p> Signup and view all the answers

What is the result of the following logical condition in R: x &lt; 5?

<p>TRUE FALSE TRUE TRUE FALSE FALSE TRUE (B)</p> Signup and view all the answers

Which function in R can be used to check whether all entries of a logical vector are TRUE?

<p>all() (B)</p> Signup and view all the answers

Which logical operator in R is used to combine two or more conditions element-wise?

<p>| (D)</p> Signup and view all the answers

What is the result of the following logical condition in R: x &gt;= 3?

<p>TRUE TRUE FALSE FALSE TRUE TRUE TRUE (C)</p> Signup and view all the answers

Which function in R can be used to extract the values of a vector that satisfy a certain condition?

<p>which() (B)</p> Signup and view all the answers

Which operator is used to select a subset of data based on multiple conditions?

<p>&amp; (B)</p> Signup and view all the answers

What is the result of the following code: z &lt;- dat[dat$disp&lt;=160 &amp; dat$hp&lt;110,]?

<p>A subset of data where disp is less than or equal to 160 and hp is less than 110 (B)</p> Signup and view all the answers

What is the syntax of an if statement in R?

<p>if (condition) {expressions 1 if true} else {expressions 2 otherwise} (D)</p> Signup and view all the answers

What is the purpose of a for loop in R?

<p>To iterate over a block of code a specified number of times (A)</p> Signup and view all the answers

What is the purpose of the repeat loop in R?

<p>To evaluate an expression as long as a stated condition is true (D)</p> Signup and view all the answers

What is the purpose of the library function in R?

<p>To load an installed package (D)</p> Signup and view all the answers

Which package needs to be installed and loaded into R to perform data wrangling functions?

<p>dplyr (B)</p> Signup and view all the answers

What is the first step in data wrangling?

<p>Create a data frame (A)</p> Signup and view all the answers

Which function is used to filter data in data wrangling?

<p>filter() (A)</p> Signup and view all the answers

Which function is used to arrange data in data wrangling?

<p>arrange() (B)</p> Signup and view all the answers

Which function is used to select columns in data wrangling?

<p>select() (B)</p> Signup and view all the answers

Which function is used to create new columns in data wrangling?

<p>mutate() (A)</p> Signup and view all the answers

Which logical condition operator is used to select data based on multiple conditions?

<p>&amp; (B)</p> Signup and view all the answers

Which logical condition operator is used to select data based on either of the conditions being TRUE?

<p>| (C)</p> Signup and view all the answers

What is the result of the following code? s <- dat[dat$disp<=160, ]

<p>Selects all rows where the 'disp' column is less than or equal to 160 (A)</p> Signup and view all the answers

What is the result of the following code? z <- dat[dat$disp<=160 & dat$hp<110,]

<p>Selects all rows where the 'disp' column is less than or equal to 160 and the 'hp' column is less than 110 (A)</p> Signup and view all the answers

What is the purpose of the 'if' statement in R?

<p>To conditionally execute a block of code (D)</p> Signup and view all the answers

What is the result of the following code? for (i in 1:3) { print(i) }

<p>Prints the numbers 1, 2, 3 on separate lines (C)</p> Signup and view all the answers

More Like This

Data Wrangling y Modelado de Base de Datos
24 questions
Data Wrangling Basics
13 questions

Data Wrangling Basics

ReadableArlington avatar
ReadableArlington
Data Wrangling and Storage Technologies
6 questions
Use Quizgecko on...
Browser
Browser