اردو

Home / Practice / ACCA / New at Strategic Professional level / SDS Programming for business

SDS Programming for business

Written by Saad Rahman (ACCA)

7 ACCA New at Strategic Professional level questions with answers and explanations.

Printable worksheet with answer key

All questions with answers
  1. In SQL, which clause filters groups after aggregation?

    • 1 WHERE
    • 2 HAVING
    • 3 FROM
    • 4 ORDER BY
    Show answer

    Correct answer: HAVING

    WHERE filters rows before grouping, and HAVING filters the groups.

    Report a mistake

  2. Which SQL join keeps all rows from the left table and the matching rows from the right?

    • 1 INNER JOIN
    • 2 UNION
    • 3 LEFT JOIN
    • 4 CROSS JOIN only
    Show answer

    Correct answer: LEFT JOIN

    Rows without a match have empty values for the right table's columns.

    Report a mistake

  3. In Python, which library is most commonly used for working with tables of data?

    • 1 random
    • 2 os
    • 3 pandas
    • 4 turtle
    Show answer

    Correct answer: pandas

    pandas provides data frames for loading, cleaning and summarising data.

    Report a mistake

  4. The SQL statement SELECT region, SUM(sales) FROM orders GROUP BY region returns:

    • 1 One row per region with total sales
    • 2 Only the largest region
    • 3 The average sales
    • 4 One row for each order
    Show answer

    Correct answer: One row per region with total sales

    The aggregate is calculated for each group.

    Report a mistake

  5. A join between a customer table and an orders table on the wrong column typically results in:

    • 1 Fewer errors
    • 2 Duplicated or incorrect rows
    • 3 A faster query
    • 4 No change
    Show answer

    Correct answer: Duplicated or incorrect rows

    The key must identify matching records.

    Report a mistake

  6. In Python, a list of values such as [10, 20, 30] can be used in a loop to:

    • 1 Encrypt the data
    • 2 Process each value in turn
    • 3 Format the screen
    • 4 Delete the database
    Show answer

    Correct answer: Process each value in turn

    Loops carry out repeated steps for each item.

    Report a mistake

  7. A good practice when cleaning data in code is to:

    • 1 Keep the raw data unchanged and make the steps repeatable
    • 2 Delete all rows with any missing value
    • 3 Do the work by hand without notes
    • 4 Overwrite the original file
    Show answer

    Correct answer: Keep the raw data unchanged and make the steps repeatable

    Repeatable, documented steps allow checking and re-running.

    Report a mistake

More New at Strategic Professional level topics