Home / Practice / ACCA / New at Strategic Professional level / SDS Programming for business
7 ACCA New at Strategic Professional level questions with answers and explanations.
Printable worksheet with answer key
In SQL, which clause filters groups after aggregation?
Correct answer: HAVING
WHERE filters rows before grouping, and HAVING filters the groups.
Which SQL join keeps all rows from the left table and the matching rows from the right?
Correct answer: LEFT JOIN
Rows without a match have empty values for the right table's columns.
In Python, which library is most commonly used for working with tables of data?
Correct answer: pandas
pandas provides data frames for loading, cleaning and summarising data.
The SQL statement SELECT region, SUM(sales) FROM orders GROUP BY region returns:
Correct answer: One row per region with total sales
The aggregate is calculated for each group.
A join between a customer table and an orders table on the wrong column typically results in:
Correct answer: Duplicated or incorrect rows
The key must identify matching records.
In Python, a list of values such as [10, 20, 30] can be used in a loop to:
Correct answer: Process each value in turn
Loops carry out repeated steps for each item.
A good practice when cleaning data in code is to:
Correct answer: Keep the raw data unchanged and make the steps repeatable
Repeatable, documented steps allow checking and re-running.