ہوم / مشق / اے سی سی اے / اسٹریٹجک پروفیشنل لیول میں نیا / SDS Programming for business
7 سوالات: اے سی سی اے اسٹریٹجک پروفیشنل لیول میں نیا، جوابات اور وضاحت کے ساتھ۔
جوابی کنجی کے ساتھ قابلِ پرنٹ ورک شیٹ
In SQL, which clause filters groups after aggregation?
درست جواب: 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?
درست جواب: 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?
درست جواب: pandas
pandas provides data frames for loading, cleaning and summarising data.
The SQL statement SELECT region, SUM(sales) FROM orders GROUP BY region returns:
درست جواب: 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:
درست جواب: 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:
درست جواب: Process each value in turn
Loops carry out repeated steps for each item.
A good practice when cleaning data in code is to:
درست جواب: Keep the raw data unchanged and make the steps repeatable
Repeatable, documented steps allow checking and re-running.