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</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</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</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</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</p> Signup and view all the answers

    What are the different data formats mentioned in the course?

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

    What is data wrangling?

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

    What type of representation will be used in CSE5DEV labs?

    <p>Tabular representation</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</p> Signup and view all the answers

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

    <p>||</p> Signup and view all the answers

    Which function returns the dimensions of a data frame?

    <p>dim</p> Signup and view all the answers

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

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

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

    <p>sapply</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;=</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.</p> Signup and view all the answers

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

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

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

    <p>Quantitative</p> Signup and view all the answers

    Which lecture in the syllabus covers Data Cleaning & Normalization?

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

    What is the data format used in CSE5DEV labs?

    <p>Tabular</p> Signup and view all the answers

    What are the different data formats mentioned in the course?

    <p>Tabular, Matrix, Factor, Data Frame</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</p> Signup and view all the answers

    What is the first step in the data wrangling process?

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

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

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

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

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

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

    <p>select()</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()</p> Signup and view all the answers

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

    <p>Ratio</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</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</p> Signup and view all the answers

    Which process is the opposite of gathering in tabular data?

    <p>Spreading</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</p> Signup and view all the answers

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

    <p>JSON</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</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</p> Signup and view all the answers

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

    <p>CSV</p> Signup and view all the answers

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

    <p>Gathering and Spreading</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</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)</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</p> Signup and view all the answers

    What are the different data formats mentioned in the course?

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

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

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

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

    <p>Quantitative</p> Signup and view all the answers

    What is data wrangling?

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

    Which lecture covers Data Cleaning & Normalization in the syllabus?

    <p>Data Wrangling Basics of R Programming</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()</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</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()</p> Signup and view all the answers

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

    <p>|</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</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()</p> Signup and view all the answers

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

    <p>&amp;</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</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}</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</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</p> Signup and view all the answers

    What is the purpose of the library function in R?

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

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

    <p>dplyr</p> Signup and view all the answers

    What is the first step in data wrangling?

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

    Which function is used to filter data in data wrangling?

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

    Which function is used to arrange data in data wrangling?

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

    Which function is used to select columns in data wrangling?

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

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

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

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

    <p>&amp;</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>|</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</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</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</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</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser