BSc CSIT (TU) Science Simulation and Modelling (BSc CSIT, CSC317) Question Paper 2080 Nepal
This is the official BSc CSIT (TU) (Science stream) Simulation and Modelling (BSc CSIT, CSC317) question paper for 2080, as set in the regular annual examination. It carries 60 full marks and a time allowance of 180 minutes, across 12 questions. On Kekkei you can attempt this Simulation and Modelling (BSc CSIT, CSC317) past paper online with a timer, get instant AI feedback and step-by-step solutions, and track the topics where you lose marks — completely free. Whether you are revising for your BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) exam or solving previous years' question papers, this 2080 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Explain the different stages/steps involved in a sound simulation study with a flowchart.
Steps in a Sound Simulation Study
A disciplined simulation study follows a sequence of well-defined stages (Banks, Carson, Nelson & Nicol):
- Problem formulation — State the problem clearly; analyst and client agree on objectives.
- Setting of objectives and overall plan — Define questions to be answered, performance measures, resources, time and budget.
- Model conceptualization — Abstract the real system into a conceptual model (entities, attributes, events, state variables). Start simple and add detail.
- Data collection — Gather input data (e.g., inter-arrival and service times) and fit probability distributions.
- Model translation — Code the model in a simulation language (GPSS, Arena) or a general language (C++/Python).
- Verification — Check that the program correctly implements the conceptual model (debugging). Is the model built right?
- Validation — Check that the model accurately represents the real system, often by comparing output with real data. Is it the right model? (Loop back to step 3/4 if invalid.)
- Experimental design — Decide which alternatives to simulate, run length, number of replications, warm-up period.
- Production runs and analysis — Execute runs and statistically analyze output to estimate performance measures.
- More runs? — Decide whether additional runs/scenarios are needed (loop back if yes).
- Documentation and reporting — Document the model (program and progress) and report results.
- Implementation — Put the recommended solution into practice.
Flowchart (described in words)
Problem Formulation
|
Setting Objectives & Plan
|
Model Conceptualization <----+
| |
Data Collection | (No)
| |
Model Translation |
| |
Verification? --No--> (fix code)
| Yes |
Validation? --No--------------+
| Yes
Experimental Design
|
Production Runs & Analysis
|
More Runs? --Yes--> (back to runs)
| No
Documentation & Reporting
|
Implementation
The verification and validation steps form feedback loops back to model building, and the "more runs?" decision loops back to production runs.
Explain model verification and validation. Describe the three-step approach for developing valid and credible simulation models.
Verification and Validation
Verification is the process of determining whether the simulation computer program correctly implements the conceptual model — i.e. "Is the model built right?" It is essentially debugging: checking code logic, the operational model, and that inputs are processed as intended.
Validation is the process of determining whether the model is an accurate representation of the real system for the study's objectives — i.e. "Is it the right model?" It establishes credibility so that decision-makers trust the results.
Three-Step Approach (Naylor and Finger)
To build valid and credible models, Naylor and Finger proposed a three-step approach:
-
Build a model with high face validity.
- The model should appear reasonable to people knowledgeable about the system.
- Involve domain experts and potential users; use sensitivity analysis to confirm output changes sensibly when inputs change.
-
Validate model assumptions.
- Structural assumptions — how the system operates (e.g., FIFO queue discipline, single vs. multiple servers).
- Data assumptions — the probability distributions chosen for inputs (e.g., exponential inter-arrival times), validated by goodness-of-fit tests (chi-square, K-S).
-
Validate input-output transformations.
- Treat the model as a black box and compare its output with that of the real system for the same inputs.
- Use statistical techniques (e.g., confidence intervals, hypothesis tests like the paired-t test) to compare model output measures with real-world measures.
If any step fails, the analyst loops back to refine the conceptual model, data, or code before re-validating.
Define system, model and simulation. Explain the different types of models and discuss the advantages and disadvantages of simulation.
Definitions
- System — A collection of entities (people, machines, etc.) that interact together over time toward the accomplishment of some logical end. It has a boundary, environment, entities, attributes, activities, events and state variables.
- Model — A simplified representation or abstraction of a system used to study and predict the system's behavior. It captures the essential features relevant to the study.
- Simulation — The imitation of the operation of a real-world system over time, by building a model and running it to generate an artificial history from which performance measures are estimated.
Types of Models
Models are broadly classified as:
- Physical (iconic) models — Scaled physical replicas (e.g., a model airplane, a globe).
- Mathematical / symbolic models — Use symbols and equations to represent the system. These split into:
- Static vs. Dynamic — static represents a system at a point in time (Monte Carlo); dynamic represents change over time.
- Deterministic vs. Stochastic — deterministic has no random variables; stochastic has one or more random inputs.
- Continuous vs. Discrete — continuous state changes continuously over time; discrete state changes only at discrete event points.
Simulation models are usually mathematical, dynamic, stochastic and discrete-event.
Advantages of Simulation
- Allows study of systems too complex for analytical solution.
- New policies, designs and methods can be explored without disrupting the real system.
- Hypotheses about how/why phenomena occur can be tested.
- Time can be compressed or expanded; bottlenecks can be identified.
- Helps understand how the system really works and "what-if" analysis.
Disadvantages of Simulation
- Model building requires special training and is an art; results vary with skill.
- Results may be hard to interpret because outputs are random variables.
- Simulation modeling and analysis can be time-consuming and expensive.
- It is used where an analytical solution is preferable but unavailable; sometimes used inappropriately when an exact analytical method exists.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Explain the importance of output analysis in simulation. Differentiate between terminating and steady-state simulation.
Importance of Output Analysis
Simulation output (e.g., average waiting time, utilization) consists of random variables, so a single run gives only one realization that may be far from the true mean. Output analysis applies statistical methods to estimate performance measures and their confidence intervals, ensuring conclusions are reliable rather than the result of randomness. It addresses autocorrelation between observations, choice of run length, number of replications, and removal of initialization bias.
Terminating vs. Steady-State Simulation
| Aspect | Terminating | Steady-state |
|---|---|---|
| End condition | A natural terminating event (e.g., bank closes at 5 PM) | Runs indefinitely; interest is in long-run behavior |
| Initial conditions | Important and part of the study | Affect transient phase; require a warm-up/deletion period |
| Length | Fixed by the event | Must be chosen long enough to reach steady state |
| Analysis method | Independent replications | Batch means or replication-deletion |
| Example | Daily operation of a shop | A continuously running telephone/network switch |
Explain the Poisson and exponential distributions and their role in queuing simulation.
Poisson Distribution
The Poisson distribution models the number of events (e.g., arrivals) occurring in a fixed interval when events happen independently at a constant average rate :
with mean and variance both equal to . It is discrete.
Exponential Distribution
The exponential distribution models the continuous time between successive events (inter-arrival or service times) with rate :
with mean . It is memoryless: .
Role in Queuing Simulation
The two are intimately linked: if the number of arrivals in an interval is Poisson with rate , then the inter-arrival times are exponential with mean . In the classic M/M/1 queue, arrivals follow a Poisson process and service times are exponential. The memoryless property makes the system Markovian, enabling tractable analysis. In simulation, exponential inter-arrival and service times are easily generated by the inverse-transform method (), driving the event clock of the queuing model.
Explain the features of a general-purpose simulation language (e.g., GPSS).
Features of a General-Purpose Simulation Language (GPSS)
GPSS (General Purpose Simulation System) is a process-/transaction-oriented, discrete-event simulation language. Key features:
- Transaction (entity) flow model — Dynamic entities called transactions (e.g., customers, jobs) move through a network of blocks that represent the system's operations.
- Block-diagram structure — A model is built from a fixed set of standard blocks (GENERATE, QUEUE, SEIZE, ADVANCE, RELEASE, DEPART, TERMINATE), making programming largely graphical/declarative.
- Built-in resources and facilities — Facilities (single servers) and storages (multi-capacity servers) are provided to model service with automatic capture/release logic.
- Automatic event scheduling and clock management — The language maintains the simulation clock, future/current event chains and advances time automatically; the user does not write the event-list logic.
- Built-in random number and variate generators — Standard statistical distributions are available for inter-arrival and service times.
- Automatic statistics collection — Queue lengths, waiting times, utilization and throughput are gathered and reported automatically.
- Queue handling and standard numerical attributes (SNAs) — Provide system status (clock, queue contents) usable in logic.
These features let an analyst build and analyze queuing-type models quickly without low-level coding.
Explain the chi-square test for testing the uniformity of random numbers with an example.
Chi-Square Test for Uniformity
The chi-square () test checks whether a sample of random numbers is uniformly distributed on (the frequency/uniformity test).
Procedure:
- Divide into equal sub-intervals (classes).
- With numbers, the expected count per class is .
- Count the observed number in each class.
- Compute the statistic:
- Compare with the critical value (table) at significance with degrees of freedom.
- Decision: if , the hypothesis of uniformity is not rejected; otherwise it is rejected.
Example
Suppose numbers are placed into classes, so . Observed counts are:
| Class | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| 8 | 12 | 9 | 11 | 10 | 7 | 13 | 10 | 9 | 11 |
With and , the table value . Since , we fail to reject ; the numbers are accepted as uniformly distributed.
Explain the classification of models: static vs dynamic, deterministic vs stochastic, continuous vs discrete.
Classification of Mathematical Models
1. Static vs. Dynamic
- Static model: represents the system at a particular point in time; time plays no role. Example: a Monte Carlo model estimating or an integral.
- Dynamic model: represents the system as it evolves over time. Example: simulating a bank's queue over an 8-hour day.
2. Deterministic vs. Stochastic
- Deterministic model: contains no random variables; a given set of inputs always produces the same output. Example: a fixed-schedule appointment system, or solving .
- Stochastic model: has one or more random inputs, so outputs are themselves random and must be treated statistically. Example: arrivals at a bank following a Poisson process.
3. Continuous vs. Discrete
- Continuous model: the state variables change continuously with respect to time, usually described by differential equations. Example: water level in a reservoir, or the flow of a chemical process.
- Discrete model: the state variables change only at discrete (countable) points in time (events). Example: the number of customers in a queue, which changes only at arrival/departure events.
Most simulation models in computer science are dynamic, stochastic and discrete-event models.
Explain the tests for randomness. Describe the frequency (Kolmogorov-Smirnov) test and the runs test.
Tests for Randomness
Generated random numbers must be tested for two properties: uniformity (frequency tests) and independence (autocorrelation/runs tests). Common tests include the chi-square test, the Kolmogorov-Smirnov (K-S) test, the runs test, the gap test, the poker test and the autocorrelation test.
Kolmogorov-Smirnov (Frequency) Test
The K-S test compares the empirical CDF of the sample with the theoretical uniform CDF on .
Procedure:
- Sort the numbers in ascending order: .
- Compute:
- Let .
- Compare with the critical value from the K-S table. If , uniformity is not rejected; otherwise reject. The K-S test works well for small samples and is exact (no class grouping).
Runs Test (Test for Independence)
A run is a succession of similar events (e.g., a run "up" = increasing sequence, run "down" = decreasing). The runs test counts runs to detect dependence/trends in the sequence.
For a sequence of numbers, the expected number of runs and its variance are:
The test statistic is standardized:
where is the observed number of runs. If , the hypothesis of independence is not rejected; otherwise the numbers show dependence.
Explain the basic properties of random numbers: uniformity and independence.
Basic Properties of Random Numbers
A sequence of random numbers generated for simulation must possess two key statistical properties:
1. Uniformity
- The numbers must be uniformly distributed over the interval ; every value (or sub-interval) is equally likely.
- Formally, the probability density function is:
- Expected value and variance .
- If is split into equal classes, each class should contain about of the numbers.
2. Independence
- Each random number must be statistically independent of the others; the probability of observing a value in any sub-interval is unaffected by previous values.
- There should be no correlation between successive numbers (no patterns, trends or cycles).
When both properties hold, the numbers behave like a true uniform stream. Departures are detected by uniformity tests (chi-square, K-S) and independence tests (runs, autocorrelation, gap, poker).
Explain the inverse transform technique for generating random variates from the exponential distribution.
Inverse Transform Technique — Exponential Distribution
The inverse transform method generates a random variate from a distribution with CDF by setting , where , and solving .
Step 1 — CDF of the exponential distribution. The exponential pdf with rate (mean ) is:
Its CDF is:
Step 2 — Set .
Step 3 — Solve for .
Since is also uniform on , this is commonly simplified to:
Example: with mean (so ) and :
Repeatedly applying this with fresh uniform numbers yields exponential inter-arrival or service times for the simulation.
Explain Kendall's notation for queuing systems with examples.
Kendall's Notation
Kendall's notation describes a queuing system using the standard form:
where:
- A — the arrival process / inter-arrival time distribution.
- B — the service time distribution.
- c — the number of parallel servers.
- N — the system capacity (maximum number in the system, queue + in service). Omitted if .
- K — the size of the calling population (source). Omitted if .
Common symbols for A and B:
- M — Markovian (exponential inter-arrival / service times; Poisson arrivals), memoryless.
- D — Deterministic (constant) times.
- E_k — Erlang distribution of order .
- G — General (arbitrary) distribution.
The default queue discipline is FCFS (first-come, first-served) unless stated.
Examples
- M/M/1 — Poisson arrivals, exponential service, one server, infinite queue and population (the basic single-server queue).
- M/M/c — Poisson arrivals, exponential service, c servers (e.g., a bank with tellers).
- M/M/1/N — same as M/M/1 but with finite system capacity (e.g., a buffer of size ).
- M/D/1 — Poisson arrivals, constant service time, one server (e.g., automated car wash).
- G/G/1 — general arrival and service distributions, one server.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) question paper 2080?
- The full BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2080 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
- Does the Simulation and Modelling (BSc CSIT, CSC317) 2080 paper come with solutions?
- Yes. Every question on this Simulation and Modelling (BSc CSIT, CSC317) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
- How many marks is the BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2080 paper?
- The BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2080 paper carries 60 full marks and is meant to be completed in 180 minutes, across 12 questions.
- Is practising this Simulation and Modelling (BSc CSIT, CSC317) past paper free?
- Yes — reading and attempting this Simulation and Modelling (BSc CSIT, CSC317) past paper on Kekkei is completely free.