ExamGecko
Home / CompTIA / DA0-001 / List of questions
Ask Question

CompTIA DA0-001 Practice Test - Questions Answers, Page 8

Add to Whishlist

List of questions

Question 71

Report Export Collapse

A data analyst has been asked to create a sales report that calculates the rolling 12-month average for sales. If the report will be published on November 1, 2020, which of the following months shouts the report cover?

October 1, 2019 to October 31, 2020
October 1, 2019 to October 31, 2020
October 31, 2020 to November 1, 2021
October 31, 2020 to November 1, 2021
November 1, 2019 to October 31, 2020
November 1, 2019 to October 31, 2020
October 31, 2019 to October 31, 2020
October 31, 2019 to October 31, 2020
Suggested answer: A
Explanation:

The report should cover the months from October 1, 2019 to October 31, 2020. A rolling 12-month average is a type of moving average that calculates the average of the last 12 months of data for each month. It is useful for smoothing out seasonal fluctuations and identifying long-term trends in the data. To calculate the rolling 12-month average for sales for November 1, 2020, the analyst needs to use the sales data from the previous 12 months, starting from November 1, 2019 and ending on October 31, 2020. The other options are either too short or too long to cover the required period.

asked 02/10/2024
Christopher Adams
47 questions

Question 72

Report Export Collapse

A data analyst has been asked to merge the tables below, first performing an INNER JOIN and then a LEFT JOIN:

CompTIA DA0-001 image Question 72 95246 10022024175129000000

Customer Table -

In-store Transactions Γ±

CompTIA DA0-001 image Question 72 95246 10022024175129000000

Which of the following describes the number of rows of data that can be expected after performing both joins in the order stated, considering the customer table as the main table?

INNER: 6 rows; LEFT: 9 rows
INNER: 6 rows; LEFT: 9 rows
INNER: 9 rows; LEFT: 6 rows
INNER: 9 rows; LEFT: 6 rows
INNER: 9 rows; LEFT: 15 rows
INNER: 9 rows; LEFT: 15 rows
INNER: 15 rows; LEFT: 9 rows
INNER: 15 rows; LEFT: 9 rows
Suggested answer: C
Explanation:

An INNER JOIN returns only the rows that match the join condition in both tables. A LEFT JOIN returns all the rows from the left table, and the matched rows from the right table, or NULL if there is no match. In this case, the customer table is the left table and the in-store transactions table is the right table. The join condition is based on the customer_id column, which is common in both tables.

To perform an INNER JOIN, we can use the following SQL query:

SELECT * FROM customer INNER JOIN in_store_transactions ON customer.customer_id = in_store_transactions.customer_id; This query will return 9 rows of data, as shown below:

customer_id | name | lastname | gender | marital_status | transaction_id | amount | date 1 | MARC | TESCO | M | Y | 1 | 1000 | 2020-01-01 1 | MARC | TESCO | M | Y | 2 | 5000 | 2020-01-02 2 | ANNA | MARTIN | F | N | 3 | 2000 | 2020-01-03 2 | ANNA | MARTIN | F | N | 4 | 3000 | 2020-01-04 3 | EMMA | JOHNSON | F | Y | 5 | 4000 | 2020-01-05 4 | DARIO | PENTAL | M | N | 6 | 5000 | 2020-01-06 5 | ELENA | SIMSON| F| N|7|6000|2020-01-07 6|TIM|ROBITH|M|N|8|7000|2020-01-08 7|MILA|MORRIS|F|N|9|8000|2020-01-09

To perform a LEFT JOIN, we can use the following SQL query:

SELECT * FROM customer LEFT JOIN in_store_transactions ON customer.customer_id = in_store_transactions.customer_id;

This query will return 15 rows of data, as shown below:

customer_id|name|lastname|gender|marital_status|transaction_id|amount|date

1|MARC|TESCO|M|Y|1|1000|2020-01-01 1|MARC|TESCO|M|Y|2|5000|2020-01-02

2|ANNA|MARTIN|F|N|3|2000|2020-01-03 2|ANNA|MARTIN|F|N|4|3000|2020-01-04

3|EMMA|JOHNSON|F|Y|5|4000|2020-01-05 4|DARIO|PENTAL|M|N|6|5000|2020-01-06

5|ELENA|SIMSON||F||N||7||6000||2020-01-07 6||TIM||ROBITH||M||N||8||7000||2020-01-08

7||MILA||MORRIS||F||N||9||8000||2020-01-09

8||JENNY||DWARTH||F||Y||NULL||NULL||NULL

As you can see, the customers who do not have any transactions (customer_id = 8) are still included in the result, but with NULL values for the transaction_id, amount, and date columns.

Therefore, the correct answer is C: INNER: 9 rows; LEFT: 15 rows.

Reference: SQL Joins - W3Schools

asked 02/10/2024
Miroslav Burzinskij
41 questions

Question 73

Report Export Collapse

A data analyst needs to create a weekly recurring report on sales performance and distribute it to all sales managers. Which of the following would be the BEST method to automate and ensure successful delivery for this task?

Become a Premium Member for full access
  Unlock Premium Member

Question 74

Report Export Collapse

Which of the following is an example of a discrete variable?

Become a Premium Member for full access
  Unlock Premium Member

Question 75

Report Export Collapse

Which of the following data types would a telephone number formatted as XXX-XXX-XXXX be considered?

Become a Premium Member for full access
  Unlock Premium Member

Question 76

Report Export Collapse

The director of operations at a power company needs data to help identify where company resources should be allocated in order to monitor activity for outages and restoration of power in the entire state. Specifically, the director wants to see the following:

* County outages

* Status

* Overall trend of outages

INSTRUCTIONS:

Please, select each visualization to fit the appropriate space on the dashboard and choose an appropriate color scheme. Once you have selected all visualizations, please, select the appropriate titles and labels, if applicable. Titles and labels may be used more than once.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

CompTIA DA0-001 image Question 76 95250 10022024175129000000

Become a Premium Member for full access
  Unlock Premium Member

Question 77

Report Export Collapse

Q3 2020 has just ended, and now a data analyst needs to create an ad-hoc sales report that demonstrates how well the Q3 2020 promotion went versus last year's Q3 promotion.

Which of the following date parameters should the analyst use?

Become a Premium Member for full access
  Unlock Premium Member

Question 78

Report Export Collapse

A data analyst has been asked to create an ad-hoc sales report for the Chief Executive Officer (CEO).

Which of the following should be included in the report?

Become a Premium Member for full access
  Unlock Premium Member

Question 79

Report Export Collapse

Which of the following can be used to translate data into another form so it can only be read by a user who has a key or a password?

Become a Premium Member for full access
  Unlock Premium Member

Question 80

Report Export Collapse

Which of the following is an example of a discrete data type?

Become a Premium Member for full access
  Unlock Premium Member
Total 368 questions
Go to page: of 37
Search