Download D465 - Data Applications Review Exam with Solution and more Exams Data Compression in PDF only on Docsity!
D465 - Data Applications Review Exam with
Solution
1. R and Python similarities: Both widely used in data science with extensive libraries.
2. R unique challenges: Steeper learning curve, limited web dev capabilities.
3. Advantage of storing code in R: Allows reproducibility and collaboration among analysts.
4. Programming languages and use cases: Python: web dev, data science, ML, automation.
5. MIN function in spreadsheets: Returns the smallest value in a cell range.
6. COUNTIF function in spreadsheets: Counts cells meeting a specified condition.
7. Pivot table elements: Rows, columns, values, filters for data aggregation.
8. SELECT command in SQL: Retrieves data from one or more database tables.
9. JOIN commands in SQL: INNER, LEFT, RIGHT, FULL OUTER JOIN types.
10. Delimiter for code chunks: Triple backticks or markup to define code sections.
11. Output formats for documents: HTML, PDF, Word (docx), Markdown.
12. Presentation formats: Slides, Dashboards, Interactive web apps.
13. Knit button in R: Compiles R Markdown into desired output formats.
14. Symbol for comments in R: Pound sign (#) precedes comments in R.
15. Nested function usage: Simplifies operations, improves code readability.
16. Logical operators: AND (&&), OR (||), NOT (!).
17. Advantage of tidyverse: Cohesive data manipulation packages in R.
18. Functions in ggplot2: ggplot(), geom_point(), geom_line(), aes().
19. Plus sign in ggplot2: Adds layers to ggplot objects for customization.
20. Common errors in ggplot2: Incorrect aesthetic mappings, syntax misunderstanding.
21. Basic aesthetic attributes in ggplot2: x-axis, y-axis, color for plot customization.
22. Smoothing line usage: Visual representation of trends in data.
23. dplyr filter() function: Subset rows based on specific conditions in R.
24. VLOOKUP function in spreadsheets: Searches for values in a vertical column.
25. Locking table array in VLOOKUP: Prevents range changes for formula accuracy.
26. Different JOIN functions in SQL: INNER, LEFT, RIGHT, FULL OUTER JOIN types.
27. COUNT vs. COUNT DISTINCT in SQL: COUNT: total rows, COUNT DISTINCT: unique values.
28. SELECT statement usage in SQL: Retrieving data from one or more tables.
29. FROM statement in SQL: Specifies tables for data retrieval in SQL queries.
30. Tibbles vs. data frames: Modernized data frames with improved features.
31. Main operators in R: Arithmetic, relational, logical, assignment operators.
32. sample() function for biased data: Creates random unbiased data samples.
33. Fill in the blank: The spreadsheet
function returns the number of cells within a range that match a specified value. COUNTIF
Filter Data validation Conditional formatting Calculated field: Calculated field
38. In a SQL query, what is the purpose of the modulo (%) operator?
Return the remainder of a division calculation Convert a decimal to a percent Apply an exponent to a value Find the square root of a number: Return the remainder of a division calculation
39. A data professional writes a query that uses more than one arithmetic op-erator. What do
they add to the query to control the order of the calculations? Dollar sign ($) Parenthesis [()] Colon [:] Backslash [/]: Parenthesis [()]
40. Spreadsheet cell D5 contains the decimal .74. Which formula will convert it to a percentage?
=D5%
=D5,
=D5(100)
=D5100: =D5
41. What will GROUP BY do in this query?
GROUP BY apartment; SELECT apartment, AVG(price) AS apt_prices FROM rent_data Group together the apartment and rent_data tables Group only the rows in the apt_prices table Group together the rent_data by apartment prices Group the rows in the table by apartment: Group the rows in the table by apartment
WITH
SELECT INTO: SELECT INTO
45. Why might a data professional add a CREATE TABLE statement to a tempo-rary table?
Include metadata about the data in the table Automate calculations in the table Give multiple people access to the table Create a second table within the temporary table: Give multiple people access to the table
46. Array: A collection of values in spreadsheet cells
47. Calculated field: A new field within a pivot table that carries out certain calculations based on the values of other fields
48. Data security: Protecting data from unauthorized access or corruption by adopting safety measures
49. Data validation process: The process of checking and rechecking the quality of data so that it is complete, accurate, secure
and consistent
50. GROUP BY: A SQL clause that groups rows that have the same values from a table into summary rows
51. Modulo: An operator (%) that returns the remainder when one number is divided by another
52. Profit margin: A percentage that indicates how many cents of profit has been generated for each dollar of sale
53. Summary table: A table used to summarize statistical information about data
54. SUMPRODUCT: A function that multiplies arrays and returns the sum of those products
55. Temporary table: A database table that is created and exists temporarily on a database server
56. Underscores: Lines used to underline words and connect text characters
57. A data analyst at a recycling company manually recalculates the new col-umn
materials_sorter. They want to identify any rows with values that do not match those in the original column, compost_sorter. Which SQL clauses would enable them to do so? Select all that apply. WHERE materials_sorter !! compost_sorter WHERE materials_sorter >< compost_sorter WHERE materials_sorter <> compost_sorter WHERE materials_sorter != compost_sorter: WHERE materials_sorter <> compost_sorter WHERE materials_sorter != compost_sorter
58. Fill in the blank
The SQL command combines table rows with the same values into summary rows. WITH GROUP BY TABLE ORDER BY: GROUP BY
59. What will this spreadsheet function return?
=SUMIF(K20:K70, ">=50", L20:L70)
The sum of all values in cells L20 to L70 that correspond to values in cells K20 to K70 that are greater than or equal to 50. The sum of any values in cells K20 to K70 and cells L20 to L70 that are greater than or equal to 50. The sum of all values in cells K20 to K70 for which the value in cells L20 to L70 is greater than or equal to 50. The count of the number of cells in the array K20:K70 that have a value greater than or equal to 50.: The sum of
ill in the blank: To combine rows from two or more tables based on a column, data professionals use the SQL JOIN clause. unique dissimilar foreign related: related
64. A data analyst wants to retrieve only records from a database that have matching values in
two different tables. Which JOIN function should they use? OUTER JOIN RIGHT JOIN INNER JOIN LEFT JOIN: INNER JOIN
65. You write a SQL query that will count values in a specified range. Which function should you
include in your query to only count each value once, even if it appears multiple times? COUNT RANGE COUNT DISTINCT COUNT COUNT VALUES: COUNT DISTINCT
66. Fill in the blank: Aliasing involves
naming a table or column to make a query easier to read and write. permanently perpetually temporarily privately: temporarily
67. Which of the following queries contain subqueries? Select all that apply.
1. SELECT call
2. FROM recordings
3. ORDER BY call.employee_id, call.start_time
1. SELECT employee_id
2. FROM employees
3. WHERE department_id IN (SELECT department_id
4. FROM departments
5. WHERE location_id = 1000)
1. SELECT product_name,
2. CASE
3. WHEN price < 10 THEN 'Low price'
4. WHEN price >= 10 AND price < 20 THEN 'Medium price'
5. ELSE 'High price'
6. END AS price_category
4. FROM products
1. SELECT price
4. FROM sales)
1. SELECT employee_id
2. FROM employees
3. WHERE department_id IN (SELECT department_id
4. FROM departments
5. WHERE location_id = 1000)
68. When working with subqueries, which query will execute first?
Rightmost Outermost Innermost Leftmost: Innermost
69. Which HAVING clause indicates to only retrieve products that have been sold more than
100 times? HAVING COUNT(order_items.product_id) > 100 HAVING COUNT(order_items.product_id) < 100 HAVING (order_items.product_id) > 100 HAVING (order_items.product_id > 100): HAVING COUNT(order_items.product_id) > 100
70. Fill in the blank: A data professional uses the SQL statement to return records that meet
conditions by including an if/then statement in a query. CASE HAVING WHEN CONCAT:
CASE
71. Absolute reference: A reference within a function that is locked so that rows and columns won't change if the function is copied
72. Aggregation: The process of collecting or gathering many separate pieces into a whole
73. Aliasing: Temporarily naming a table or column in a query to make it easier to read and write
74. COUNT DISTINCT: A SQL function that only returns the distinct values in a specified range
75. Data aggregation: The process of gathering data from multiple sources and combining it into a single, summarized collection
76. INNER JOIN: A SQL function that returns records with matching values in both tables
77. JOIN: A SQL function that is used to combine rows from two or more tables based on a related column
78. LEFT JOIN: A SQL function that will return all the records from the left table and only the matching records from the right table
79. LIMIT: A SQL clause that specifies the maximum number of records returned in a query
80. MATCH: A spreadsheet function used to locate the position of a specific lookup value
81. OUTER JOIN: A SQL function that combines RIGHT and LEFT JOIN to return all matching records in both tables
82. RIGHT JOIN: A SQL function that will return all records from the right table and only the matching records from the left.
83. Subquery: A SQL query that is nested inside a larger query
84. VALUE: A spreadsheet function that converts a text string that represents a number to a numeric value
85. You use VLOOKUP in a spreadsheet containing weather data. While search-ing for rainfall
levels in Chicago, you encounter an error because your spread-sheet value has a trailing space after the city name. What function should you use to eliminate this space? CUT TRIM NOSPACE
All records in the biography table and any matching rows from the books table All records in both the books table and the biography table All rows from the books table joined together with the biography table All records in the books table and any matching rows from the biography table: All records in the books table and any matching rows from the biography table
89. A spreadsheet cell contains the coldest temperature ever recorded in Aus-tria: -37 degrees
Celsius. Which function would convert that to Fahrenheit? =CONVERT(-37, F, C) =CONVERT(-37, C, F) =CONVERT(-37, "F", "C") =CONVERT(-37, "C", "F"): =CONVERT(-37, "F", "C")
90. Fill in the blank: A data
professional uses in order to ensure spread-sheet values are static, rather than carrying over a preexisting formula or function. conditional formatting formatting paste values only data validation: paste values only
91. Which data-validation menu option highlights data entry errors to ensure spreadsheet
formulas continue to run correctly? Reject invalid inputs Forbid entry Deny text
Remove validation: Reject invalid inputs
92. A data analyst selects Format Cells and the option Text Is Exactly Baseball. This changes
the color of all the cells that contain the word "Baseball." What spreadsheet tool is the analyst using? Conditional formatting Filtering Data validation CONVERT: Conditional formatting
93. Which SQL function combines groups of text strings from multiple cells in order to create a
new string? CONCAT COMBINE CONSOLIDATE CONNECT: CONCAT
94. What SQL clause can be added to this query to ensure only the first 50 results are
returned?
1. SELECT *
2. FROM Leaf_Database
3. WHERE tree_type = maple
LIMIT 50
FIRST 50
RETURN 50
ONLY 50: LIMIT 50
95. A data professional runs a query that will return a dataset containing numbers out to five
=LEN(P:12)
=LEN(P,12)
=LEN(P:P12)
=LEN(P12): =LEN(P12)
100. You prepare a project tracker spreadsheet. Next to each project is the name of the team
member responsible. What spreadsheet tool will create a drop-down list with team member names to save you time when assigning the projects? Data validation Conditional formatting Pop-up menus Find: Data validation
101. An analyst works with a dataset of financial data that is formatted in U.S. dollars.
However, it should be formatted as Japanese yen. What spreadsheet tool should they use to correct the format? Format as currency Format as yen Format as amount Format as money: Format as currency
102. You use a SQL database to examine food truck sales destinations. The database table
contains one column of lunch destinations and another col-umn of dinner destinations. What function will combine the lunch and dinner destinations into a new column? JOIN COMBINE GROUP CONCAT: CONCAT
103. A data professional uses a spreadsheet to track the total purchases made by each member of
the company's procurement department. What spread-