PAPER KHOJ
Practice Examination — Set 1
For BITM · Semester 6
Based on the prescribed TU Faculty of Management syllabus and examination structure
Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.
Group 'A'
Brief Answer Questions. Attempt all questions.
[5 × 2 = 10]- [2]
Define a Data Warehouse according to W.H. Inmon and list its four essential characteristics.
View model answerHide model answer
Data Warehouse Definition (W.H. Inmon):
A Data Warehouse is a subject-oriented, integrated, time-variant, and non-volatile collection of data in support of management’s decision-making process.
- Subject-Oriented: Organized around high-level business entities (e.g. customers, sales, loans) rather than operational transactions.
- Integrated: Consolidates heterogeneous operational data sources into unified data formats, codes, and naming conventions.
- Time-Variant: Every record explicitly carries a timestamp, maintaining multi-year historical trend data.
- Non-Volatile: Historical records are read-only; they are never updated or deleted in place, preserving auditability.
- [2]
Distinguish between Operational Databases (OLTP) and Data Warehouses (OLAP).
View model answerHide model answer
OLTP vs. OLAP:
Feature Operational Database (OLTP) Data Warehouse (OLAP) Primary Purpose Day-to-day transactional execution. Historical reporting and analytical decision support. Data Schema Highly normalized (3NF/BCNF) to prevent write anomalies. Denormalized (Star/Snowflake) to accelerate read queries. Access Pattern High frequency, small atomic read/write updates. Complex, multi-table aggregate queries scanning millions of rows. Time Horizon Current, snapshot data (weeks/months). Historical multi-year time-series data (5–10 years). - [2]
What is a Data Mart? Distinguish between Dependent and Independent Data Marts.
View model answerHide model answer
Data Marts:
A specialized, departmental subset of an enterprise data warehouse focused on a single business function (e.g. Marketing, Finance).
- Dependent Data Mart: Sourced directly from a centralized enterprise data warehouse (EDW), guaranteeing corporate data consistency and single source of truth.
- Independent Data Mart: Built directly from operational source systems without an EDW. Cheaper and faster to build initially, but leads to inconsistent, redundant departmental data silos.
- [2]
Define Support and Confidence in Association Rule Mining.
View model answerHide model answer
Support & Confidence in Association Rules (
): - Support (
): The proportion of total transactions in dataset that contain both itemsets and : - Confidence (
): The conditional probability that a transaction contains itemset , given that it contains itemset :
- Support (
- [2]
Name four core OLAP multidimensional cube operations.
View model answerHide model answer
Four Core OLAP Cube Operations:
- Roll-up (Drill-up): Performs aggregation on data by climbing up a concept hierarchy (e.g. Day
Month Quarter Year) or by reducing dimensions. - Drill-down (Roll-down): Navigates from less detailed data to more detailed data (e.g. Year
Quarter Month Day) to reveal granular root causes. - Slice and Dice:
- Slice: Selects a single dimension value to produce a 2D sub-cube.
- Dice: Selects a sub-cube by applying selection conditions on two or more dimensions.
- Pivot (Rotate): Rotates the visual axes of the data cube to view data from alternative analytical perspectives.
- Roll-up (Drill-up): Performs aggregation on data by climbing up a concept hierarchy (e.g. Day
Group 'B'
Short Answer / Problem Solving Questions. Attempt any SIX questions.
[6 × 5 = 30]- [5]
Compare the two dominant Data Warehouse Architectural Approaches: Bill Inmon’s Enterprise Data Warehouse approach vs Ralph Kimball’s Dimensional Data Mart approach.
View model answerHide model answer
Inmon vs. Kimball Data Warehouse Architectures:
Inmon (Top-Down): [Sources] -> [ETL] -> [Normalized EDW (3NF)] -> [Dependent Data Marts] -> [Users] Kimball (Bottom-Up): [Sources] -> [ETL] -> [Conformed Dimensional Data Marts (Star)] -> [Users]
Architectural Dimension Bill Inmon (Top-Down / EDW) Ralph Kimball (Bottom-Up / Dimensional) Philosophical Paradigm Enterprise-first: Build the centralized enterprise warehouse in 3NF before building marts. Business-process first: Build conformed dimensional data marts linked via a shared bus architecture. Data Structure Highly normalized (3NF) relational database. Denormalized Star / Snowflake dimensional schemas. Initial Delivery Time Long (12–24 months); high initial capital outlay. Fast (3–6 months per business process); agile delivery. Maintenance Complexity Lower ongoing enterprise maintenance; single version of truth. Higher maintenance overhead to ensure conformed dimensions remain synchronized across marts. Query Performance Slower direct analytical queries; requires dependent data marts for fast reporting. Extremely fast read/aggregate query performance directly on star schemas. - [5]
Detail the ETL (Extract, Transform, Load) Pipeline. Explain Data Extraction strategies, common Transformation cleaning steps, and Initial vs Incremental Loading.
View model answerHide model answer
The ETL (Extract, Transform, Load) Pipeline:
ETL is the foundational data integration pipeline that populates and maintains the data warehouse from operational source systems.
1. Extract:
- Techniques: Full extraction (bulk snapshot) or Incremental Change Data Capture (CDC) via database transaction logs, triggers, or timestamp delta queries (
WHERE updated_at > last_sync).
2. Transform (The Heavy-Lifting Engine):
- Data Cleansing: Stripping whitespace, repairing invalid formatting, handling nulls/missing values.
- Deduplication: Merging duplicate customer accounts across CRM and legacy billing.
- Data Standardization: Mapping heterogeneous codes (e.g.
M/F,1/0,Male/FemaleMale/Female). - Surrogate Key Generation: Assigning system-generated sequential integer keys to isolate the warehouse from operational natural key changes.
- Aggregation & Derived Metrics: Precomputing daily/monthly store sales summaries.
3. Load:
- Initial Load: One-time bulk ingestion of all historical corporate data, often disabling indexes and foreign key constraints to maximize load throughput.
- Incremental Load: Scheduled delta batches (hourly, nightly) updating fact tables and managing Slowly Changing Dimensions (SCD Type 1, 2, or 3).
- Techniques: Full extraction (bulk snapshot) or Incremental Change Data Capture (CDC) via database transaction logs, triggers, or timestamp delta queries (
- [5]
Compare Star Schema, Snowflake Schema, and Fact Constellation Schema with architectural diagrams, structural characteristics, and performance trade-offs.
View model answerHide model answer
Star Schema vs. Snowflake Schema vs. Fact Constellation:
Star Schema: Snowflake Schema: Fact Constellation: [Dim: Time] [Dim: Day] -> [Month] -> [Year] [Fact: Sales] [Fact: Shipping] │ │ │ │ [Fact: Sales] ── [Dim: Store] [Fact: Sales] ── [Dim: Product] └─ [Dim: Date] ──┘ │ │ │ (Shared Conformed) [Dim: Product] [Dim: Store] [Category]
- Star Schema:
- Central Fact table surrounded by radial, single-tier denormalized Dimension tables.
- Pros: Simple intuitive queries; minimal SQL joins (single-level join between fact and dimension); fastest OLAP query response.
- Cons: Data redundancy within dimension tables (e.g. city/state repeated across store rows).
- Snowflake Schema:
- Dimension tables are completely or partially normalized into sub-dimension hierarchies (e.g. Product
Subcategory Category). - Pros: Eliminates data redundancy; saves disk storage space; easier dimension maintenance.
- Cons: Requires complex multi-table SQL joins, degrading analytical query performance.
- Dimension tables are completely or partially normalized into sub-dimension hierarchies (e.g. Product
- Fact Constellation (Galaxy Schema):
- Multiple fact tables sharing common, standardized conformed dimensions (e.g. Date, Customer shared between Sales Fact and Shipping Fact).
- Essential for enterprise-scale dimensional bus modeling.
- Star Schema:
- [5]
Explain the KDD (Knowledge Discovery in Databases) Process. Detail its 7 sequential stages from raw data to actionable knowledge.
View model answerHide model answer
7-Stage Knowledge Discovery in Databases (KDD) Process:
[Raw Data] ──► 1. [Data Cleaning] ──► 2. [Data Integration] ──► 3. [Data Selection] │ [Actionable Knowledge] ◄── 7. [Evaluation] ◄── 6. [Data Mining] ◄── 4. [Transformation]
- Data Cleaning: Removes noisy data, outliers, and handles missing values.
- Data Integration: Merges multiple heterogeneous operational databases, flat files, and external APIs into a unified dataset.
- Data Selection: Retrieves data relevant to the specific business analysis goal from the warehouse database.
- Data Transformation: Consolidates data into formats appropriate for mining via normalization, binning/discretization, feature selection, and aggregation.
- Data Mining (Core Intelligent Step): Applies advanced computational algorithms (Apriori, Decision Trees, K-Means, Neural Networks) to extract latent patterns.
- Pattern Evaluation: Evaluates candidate patterns against interestingness thresholds (support, confidence, lift), filtering out trivial or redundant findings.
- Knowledge Presentation (Visualization): Presents discovered insights to executives using charts, 3D surface plots, and executive dashboards for commercial decision-making.
- [5]
Explain the Apriori Property in association rule mining. Detail how Apriori uses candidate generation and pruning to avoid combinatorial explosion.
View model answerHide model answer
Apriori Algorithm & The Apriori Property:
In a dataset with
unique items, the total number of candidate itemsets is . For , evaluating all itemsets by brute force is computationally impossible.
The Apriori Property (Downward Closure Property):
“All non-empty subsets of a frequent itemset must also be frequent.” Conversely: “If an itemset is infrequent, all of its supersets will inevitably be infrequent and must be pruned immediately.”
Mathematically:
Algorithmic Execution (
-itemset generation): - Join Step (
): Generates candidate -itemsets by joining frequent -itemsets that share the first items in lexicographical order. - Prune Step: For every candidate
, verify whether any -subset of is not in . If any subset is infrequent, prune from immediately without scanning the database. - Scan Database: Scan the transaction database only to count frequencies of the remaining pruned candidate set
, retaining those meeting minimum support threshold to form .
- Join Step (
- [5]
Describe Density-Based Spatial Clustering of Applications with Noise (DBSCAN). Define Core Points, Border Points, and Noise Points, and contrast with K-Means.
View model answerHide model answer
DBSCAN Density-Based Clustering:
DBSCAN locates dense clusters separated by low-density regions, governed by two hyperparameters:
(Epsilon: neighborhood radius) and (minimum points required within radius).
Point Classifications:
- Core Point: A point
that contains at least points within its -neighborhood ( ). - Border Point: A point that is not a core point, but falls within the
-neighborhood of a core point. - Noise (Outlier) Point: A point that is neither a core point nor a border point.
DBSCAN vs. K-Means:
- Arbitrary Shapes: DBSCAN effortlessly discovers complex non-spherical clusters (e.g. concentric circles, elongated ribbons), whereas K-Means assumes convex spherical clusters.
- Cluster Count (
): DBSCAN determines the optimal number of clusters automatically from density distributions; K-Means requires specifying upfront. - Outlier Handling: DBSCAN explicitly isolates noise points as outliers; K-Means forces every outlier into its nearest centroid, distorting cluster boundaries.
- Core Point: A point
Group 'C'
Comprehensive / Analytical Questions. Attempt all questions.
[2 × 10 = 20]- [10]
Consider the following transaction database for a supermarket:
TID Items Purchased T100 {Bread, Milk, Butter} T200 {Bread, Diaper, Beer, Eggs} T300 {Milk, Diaper, Beer, Cola} T400 {Bread, Milk, Diaper, Beer} T500 {Bread, Milk, Diaper, Cola} T600 {Milk, Butter, Cola} T700 {Bread, Milk, Butter, Eggs} T800 {Bread, Diaper, Beer} Let Minimum Support Threshold = 37.5% (min_sup count = 3 transactions out of 8). Let Minimum Confidence Threshold = 70%. a) Apply the Apriori Algorithm step-by-step: show all candidate itemsets (C1, C2, C3) and frequent itemsets (L1, L2, L3) with their support counts. b) Generate all strong association rules from the frequent itemset {Bread, Diaper, Beer} that satisfy the minimum confidence threshold of 70%. c) Calculate the Lift metric for the rule {Diaper, Beer} => {Bread} and explain its commercial significance.
View model answerHide model answer
Step-by-Step Apriori Algorithm Trace:
Total transactions
. Minimum Support Count . Minimum Confidence .
Part (a): Apriori Iterations
Iteration 1:
- Scan database for
counts: (Pruned: )
- Frequent 1-Itemsets (
):
Iteration 2:
- Generate
pairs from and count occurrences in DB: - Frequent 2-Itemsets (
):
Iteration 3:
- Candidate Generation
from : Joining , , and yields: (Subsets:all belong to . Pruning passes). - Count Support in DB:
Occurs in T200, T400, T800
. - Frequent 3-Itemsets (
): - No candidates can be formed for
. Algorithm terminates.
Part (b): Association Rule Generation from {Bread, Diaper, Beer} (Count = 3)
Non-empty subsets:
. - Rule 1:
- Rule 2:
- Rule 3:
- Rule 4:
- Rule 5:
- Rule 6:
Part (c): Lift Calculation for {Diaper, Beer} => {Bread}
-
-
-
Commercial Interpretation: A Lift of exactly
indicates statistical independence. The occurrence of purchasing Diapers and Beer together provides zero incremental predictive lift on whether the customer will buy Bread, as Bread has an identical 75% baseline probability across the entire supermarket regardless.
- Scan database for
- [10]
A nationwide retail supermarket chain in Nepal (with 40 stores across Kathmandu, Pokhara, and Chitwan) intends to deploy an Enterprise Data Warehouse to optimize merchandise replenishment and customer loyalty promotions. Provide a comprehensive architectural blueprint: a) Dimensional Modeling: Design a Star Schema for Daily Retail Sales. Specify the Fact Table with primary key, foreign keys, and degenerate/additive metrics. Detail four Dimension Tables (Customer, Store, Product, Time) with sample attributes and Slowly Changing Dimension (SCD Type 2) tracking. b) Multi-Tiered Data Warehouse Architecture Diagram (Operational DBs, Staging Area, EDW, OLAP Cubes, BI Tools). c) Propose three advanced Data Mining applications that will generate immediate commercial ROI for the supermarket.
View model answerHide model answer
Retail Enterprise Data Warehouse Blueprint:
Part (a): Star Schema Dimensional Model for Daily Retail Sales
[Dim_Customer] (SCD Type 2) [Dim_Time] ├── customer_key (PK) ├── time_key (PK) ├── customer_id (NK) ├── date, day_of_week ├── full_name, phone ├── month, quarter, year ├── loyalty_tier, address └── nepali_bs_date, is_holiday ├── start_date, end_date, is_current │ │ │ └───────────────┐ ┌───────────────┘ ▼ ▼ ┌─────────────────────────────┐ │ Fact_DailySales │ ├─────────────────────────────┤ │ sales_fact_id (PK) │ │ customer_key (FK) │ │ time_key (FK) │ │ store_key (FK) │ │ product_key (FK) │ │ invoice_number (Degenerate) │ │ ── Measures ── │ │ quantity_sold (Additive) │ │ unit_selling_price │ │ gross_revenue (Additive) │ │ discount_amount (Additive) │ │ vat_amount (13%) (Additive) │ │ net_revenue (Additive) │ │ unit_cost, profit_margin │ └─────────────────────────────┘ ▲ ▲ ┌───────────────┘ └───────────────┐ │ │ [Dim_Store] [Dim_Product] ├── store_key (PK) ├── product_key (PK) ├── store_id (NK), store_name ├── product_id (NK), barcode ├── city, district, province ├── brand_name, category ├── total_square_footage ├── pack_size, uom └── store_manager_name └── standard_cost, list_price- Slowly Changing Dimension (SCD Type 2) on Dim_Customer:
When a customer moves from Pokhara to Kathmandu, rather than overwriting the record (Type 1), the system updates the existing row’s
end_date = '2026-03-12'and setsis_current = FALSE. A new row is inserted withcustomer_key = 10842,city = 'Kathmandu',start_date = '2026-03-13', andis_current = TRUE. This preserves historical sales attribution accuracy for Pokhara store sales.
Part (b): Multi-Tiered Architecture Diagram
[POS Terminals: 40 Stores] [E-Commerce Web/App] [ERP / Supplier Inventory] │ │ │ └─────────────────────┼───────────────────────┘ │ (Nightly Batch / Real-Time Kafka CDC) [Staging Area & ODS] (Data Cleaning, Deduplication, Surrogate Key Assignment) │ [Enterprise Data Warehouse (EDW)] (PostgreSQL / Snowflake / BigQuery) │ ┌─────────────────────────┴─────────────────────────┐ ▼ ▼ [MOLAP / Tabular Cubes] [Departmental Data Marts] (Precomputed Aggregations: Sales, Finance) (Procurement, Marketing, Loyalty) │ │ └─────────────────────────┬─────────────────────────┘ │ [Executive Dashboards & BI Analytics] (PowerBI, Metabase, Automated Restock Alerts)
Part (c): Three High-ROI Data Mining Applications:
- Market Basket Analysis (Apriori / Association Mining):
- Discovers frequently co-purchased items (e.g. Chiura and Mutton during Dashain) to optimize physical grocery aisle layouts and automated checkout bundle discounts.
- Customer Churn & Loyalty Prediction (Random Forest / XGBoost):
- Identifies high-value loyalty members whose shopping frequency has decreased by 30% over the last 45 days, automatically triggering personalized SMS discount vouchers.
- Automated Inventory Demand Forecasting (Prophet / LSTM):
- Forecasts daily store-level demand for perishable produce, accounting for seasonal festivals and local holidays, reducing stockouts by 35% and spoilage waste by 22%.
- Slowly Changing Dimension (SCD Type 2) on Dim_Customer:
When a customer moves from Pokhara to Kathmandu, rather than overwriting the record (Type 1), the system updates the existing row’s