NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content

Quiz: Data Analyst

Data Analyst questions from real interviews as a quiz, with an explanation for every option.

Try it: 5 questions

Loading…

Sample questions

  1. Which actions can lead to incorrect numerical values in a BI report? Choose three.

    • Join tables in a way that duplicates or drops fact rows.
    • Combine facts at different levels of granularity without proper aggregation.
    • Sort table rows alphabetically instead of by value.
    • Change a visualization’s color palette without changing the data.
    • Use different definitions of the same metric across reports.
    Full answer
  2. Which approach finds clients whose total commission for the current month in a selected category is above the average client total for that category and month? Include only clients who had transactions.

    • Compare each transaction's commission with the average commission per transaction for the month and category.
    • First sum commissions per client for the month and category, then compare those totals with their average.
    • Find each client's average commission in the category across all time, then compare it with their current-month total.
    • Compare each client's monthly commission total with the average commission per transaction in the category.
    Full answer
  3. Which of the following algorithms are commonly used by database systems to execute a join between two tables?

    • Nested Loop Join
    • Bitmap Join
    • Materialized View Join
    • Sort-Merge Join
    • Hash Join
    Full answer
  4. Which statement best describes indexing in ClickHouse tables using the MergeTree engine?

    • The primary index speeds up queries only when they match every column of the key exactly.
    • The sorting key defines data order, and a sparse primary index helps skip granules.
    • The primary index stores a separate entry for every row, like a B-tree in an OLTP database.
    • A skip index replaces the sorting key and determines the physical order of rows.
    Full answer
  5. Which sequence describes the stages of a classic ETL process?

    • Load → Extract → Transform
    • Extract → Load → Transform
    • Transform → Extract → Load
    • Extract → Transform → Load
    Full answer
  6. How can you get the sum of amount for each category group in Pandas?

    • df["amount"].groupby("category").sum()
    • df.groupby("amount")["category"].sum()
    • df["amount"].sum("category")
    • df.groupby("category")["amount"].sum()
    Full answer
  7. Which SQL query returns one row for each client status and the number of clients with that status in columns status and cnt?

    • SELECT status, COUNT(DISTINCT status) AS cnt FROM clients GROUP BY status;
    • SELECT status, COUNT(*) AS cnt FROM clients GROUP BY cnt;
    • SELECT status, COUNT(*) AS cnt FROM clients;
    • SELECT status, COUNT(*) AS cnt FROM clients GROUP BY status;
    Full answer
  8. How can you group strings that contain the same characters in different orders?

    • Use each string’s first character as a dictionary key
    • Use each string’s length as a dictionary key
    • Use each string’s sorted characters as a dictionary key
    • Use each string unchanged as a dictionary key
    Full answer
  9. Which description of an API contract and its specification is correct?

    • The contract is described in OpenAPI; the specification includes Info, Endpoints, Models, Authentication, and Responses.
    • The contract is described in JSON Schema; the specification includes Info, Paths, Components, Security, and Tags.
    • The contract is described in OpenAPI; the specification includes Info, Paths, Servers, Callbacks, and Examples.
    • The contract is described in OpenAPI; the specification includes Info, Paths, Components, Security, and Tags.
    Full answer
  10. What is the underlying structure of a Python dict, and how is lookup by key usually performed?

    • An array of values: each key becomes an index, so collisions cannot occur.
    • A linked list: Python compares keys one by one until it finds the requested one.
    • A hash table: the key’s hash helps locate its value, and lookup is O(1) on average.
    • A balanced tree: keys are stored in sorted order, so lookup takes O(log n).
    Full answer