BSc CSIT (TU) Science Simulation and Modelling (BSc CSIT, CSC317) Question Paper 2078 Nepal
This is the official BSc CSIT (TU) (Science stream) Simulation and Modelling (BSc CSIT, CSC317) question paper for 2078, 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 2078 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Differentiate between true and pseudo-random numbers. Explain the linear congruential method of generating pseudo-random numbers with an example.
True vs Pseudo-Random Numbers
| Aspect | True random numbers | Pseudo-random numbers |
|---|---|---|
| Source | Physical phenomena (thermal/atmospheric noise, radioactive decay, coin tosses) | A deterministic mathematical algorithm |
| Reproducibility | Not reproducible | Fully reproducible from the same seed |
| Periodicity | No period | Eventually repeat (finite period) |
| Speed/cost | Slow, need special hardware | Very fast, cheap |
| Use in simulation | Hard to use (cannot repeat experiments) | Standard choice (debugging, variance reduction) |
True random numbers are genuinely unpredictable but cannot be reproduced, so simulation uses pseudo-random numbers: a deterministic sequence that appears random and passes statistical tests of uniformity and independence.
Linear Congruential Method (LCG)
The LCG generates a sequence of integers using the recurrence:
where:
- = seed (start value),
- = multiplier, = increment, = modulus
Random numbers in are obtained by .
If it is a mixed LCG; if it is a multiplicative LCG. The maximum period is ; choosing carefully (Hull–Dobell conditions) gives a full period.
Example
Let .
So the generated sequence is giving uniform random numbers
Explain discrete-event simulation. Describe the event-scheduling/time-advance algorithm used in simulation with a flowchart.
Discrete-Event Simulation (DES)
In discrete-event simulation the state of the system changes only at discrete points in time, called events (e.g. a customer arrival, start/end of service). Between events the system state is assumed constant, so the simulation "jumps" from one event to the next rather than advancing in fixed steps. This makes DES efficient for systems such as queues, networks and inventories.
Key components:
- System state – variables describing the system (e.g. number in queue, server busy/idle).
- Simulation clock – current value of simulated time.
- Event list (FEL) – list of future events ordered by their scheduled time.
- Statistical counters – accumulate output measures (waiting time, utilisation).
Event-Scheduling / Time-Advance Algorithm
The next-event time-advance approach repeatedly removes the most imminent event from the future event list (FEL), advances the clock to that event's time, executes the corresponding event routine (which updates state, statistics and may schedule new events), and repeats.
1. Initialize: clock = 0, set initial state,
initialize statistical counters,
schedule initial (first arrival) event in FEL.
2. While FEL not empty AND stopping condition not met:
a. Remove the imminent event (smallest event time) from FEL.
b. Advance simulation clock to that event time.
c. Execute the event routine:
- update system state
- update statistical counters
- generate future events and insert into FEL
3. End: compute and report output statistics.
Flowchart (described in words)
+------------------------+
| Initialization |
| clock=0, FEL, counters |
+-----------+------------+
v
+------------------------+
| Remove imminent event |
| Advance clock to it |
+-----------+------------+
v
+------------------------+
| Execute event routine: |
| update state & stats, |
| schedule new events |
+-----------+------------+
v
< Stop condition? >---No--> (back to Remove imminent event)
| Yes
v
+------------------------+
| Generate report / |
| output statistics |
+------------------------+
The loop continues until a stopping condition (fixed time, fixed number of customers, or empty FEL) is reached, after which output measures are reported.
Explain the different stages/steps involved in a sound simulation study with a flowchart.
Steps in a Sound Simulation Study
A disciplined simulation study (Banks, Carson, Nelson & Nicol) follows these stages:
- Problem formulation – clearly state the problem and objectives.
- Setting objectives and overall project plan – define questions to answer, scope, resources, timeline.
- Model conceptualization – abstract the real system into a conceptual model (entities, variables, logic).
- Data collection – gather input data (arrival rates, service times, distributions).
- Model translation – code the model in a simulation language/package (GPSS, SIMSCRIPT, Arena, etc.).
- Verification – check that the program correctly implements the conceptual model (debugging).
- Validation – check that the model accurately represents the real system; compare with real data, often iteratively (loops back to conceptualization/data).
- Experimental design – decide which scenarios, run lengths, number of replications.
- Production runs and analysis – execute runs and statistically analyse output.
- More runs? – if needed, design and run additional experiments.
- Documentation and reporting – document model, assumptions and results.
- Implementation – put the recommended solution into practice.
Flowchart (described in words)
Problem formulation
|
Set objectives & project plan
|
Model conceptualization <---------+
| |
Data collection ------------------+ (loops back if validation fails)
|
Model translation (coding)
|
< Verified? >--No--> back to Model translation
| Yes
< Validated? >--No--> back to Model conceptualization / data
| Yes
Experimental design
|
Production runs & analysis
|
< More runs? >--Yes--> Experimental design
| No
Documentation & reporting
|
Implementation
Verification and validation are decision points that feed back into earlier stages, making the process iterative rather than purely sequential.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Explain Markov chains and their application in simulation with an example.
Markov Chains
A Markov chain is a stochastic process that moves among a finite set of states such that the next state depends only on the current state, not on the past history (the Markov / memoryless property):
The one-step transition probabilities form a transition matrix , where each row sums to 1. The state probability vector after steps is , and the long-run (steady-state) distribution satisfies .
Application in Simulation
Markov chains model systems whose future depends only on present state, e.g. machine up/down status, weather, customer brand switching, queue length. In simulation we generate a uniform random number at each step and use the current row of to decide the next state, producing a realistic state trajectory.
Example (Weather)
States: Sunny (S), Rainy (R), with
If today is Sunny, then . To simulate, draw : if next state is Sunny, else Rainy. The steady-state solves , giving — i.e. about 67% sunny days in the long run.
Differentiate between physical models and mathematical models with examples.
Physical vs Mathematical Models
Physical (iconic) model – a tangible, scaled physical representation of the real system that looks and/or behaves like it. The model's properties are represented by physical properties.
Mathematical model – represents the system using mathematical symbols, equations and logical relationships among variables; it is solved analytically or by simulation rather than built physically.
| Aspect | Physical model | Mathematical model |
|---|---|---|
| Form | Tangible, scaled object | Equations / symbols |
| Cost & flexibility | Expensive, hard to change | Cheap, easy to modify |
| Solution | Observation/experiment on the object | Analytical or numerical/simulation |
| Accuracy of "what-if" | Limited | Easily explores many scenarios |
Examples
- Physical models: a wind-tunnel model of an aircraft, a scaled model of a dam or building, a globe representing the Earth.
- Mathematical models: Newton's , the queuing relation (Little's law), for an LCG, a set of differential equations describing population growth.
Most computer simulations are built on mathematical models because they are flexible, inexpensive and allow rapid experimentation.
Explain the mid-square method and the additive congruential method of generating random numbers.
Mid-Square Method
Proposed by von Neumann, it generates random numbers by squaring the seed and extracting the middle digits.
Steps (for -digit numbers):
- Take a seed of digits.
- Square it; pad with leading zeros to digits.
- Extract the middle digits → next number .
- Repeat; .
Example (, seed ):
- → middle 4 digits →
- → middle 4 digits →
Drawback: if the middle digits become 0 the sequence degenerates and the period can be short.
Additive Congruential Method
This method extends the linear congruential idea by adding two (or more) previous values instead of multiplying. The general recurrence uses the last seeds:
A common form (lagged Fibonacci) uses two earlier terms:
It requires an initial set of seed values. It is fast and can achieve very long periods, but is more sensitive to the choice of seeds and lags than the LCG.
Example: with and seeds , using : , , ,
Define entity, attribute, activity, event and state of a system in the context of simulation.
Basic Simulation Terminology
-
Entity – an object of interest in the system whose behaviour is modelled. It may be dynamic (moves through the system, e.g. a customer, a part) or static (e.g. a server). Example: customers in a bank.
-
Attribute – a property or characteristic of an entity. Example: a customer's arrival time, priority, or account balance.
-
Activity – a time-consuming operation or process that changes the system, with a known/specified duration. Example: the service of a customer by a teller.
-
Event – an instantaneous occurrence that changes the state of the system (it takes no time). Example: a customer arrival or a service completion (departure).
-
State of the system – the collection of variables needed to describe the system at any instant, relative to the study's objectives. Example: number of customers in the queue and whether the teller is busy or idle.
Thus events are the instants at which activities begin and end, entities possess attributes, and the values of the state variables evolve as events occur.
Explain the importance of output analysis in simulation. Differentiate between terminating and steady-state simulation.
Importance of Output Analysis
Simulation output is random (because inputs are random variates), so a single run gives only one realization. Output analysis applies statistical methods to these random outputs to draw valid conclusions. Its importance:
- Estimates performance measures (mean waiting time, utilisation) with confidence intervals rather than a single uncertain number.
- Distinguishes real differences between system alternatives from random noise.
- Determines required run length, warm-up period and number of replications.
- Prevents wrong decisions from treating one lucky/unlucky run as truth.
Terminating vs Steady-State Simulation
| Aspect | Terminating simulation | Steady-state (non-terminating) simulation |
|---|---|---|
| Stopping | A natural terminating event/condition (e.g. bank closes at 5 pm) defines run length | No natural end; runs "forever", interested in long-run behaviour |
| Interest | Behaviour over the finite interval | Steady-state (long-run) performance independent of initial conditions |
| Initial conditions | Important and part of the answer | A transient/warm-up period must be discarded to remove initial bias |
| Analysis method | Independent replications | Batch means or replication/deletion after warm-up |
| Example | Bank open 9–5; one-day shift of a machine | A continuously running telephone exchange or hospital ICU |
In terminating simulations the modeller runs many independent replications and averages; in steady-state simulations the initial transient is removed and methods like batch means are used to estimate the long-run mean.
Explain the Poisson and exponential distributions and their role in queuing simulation.
Poisson Distribution
A discrete distribution giving the probability of events occurring in a fixed interval when events happen independently at a constant average rate :
with mean and variance . It models the number of arrivals per unit time.
Exponential Distribution
A continuous distribution describing the time between successive events of a Poisson process, with rate :
mean . It is memoryless: .
Role in Queuing Simulation
These two distributions are duals: if arrivals are Poisson with rate (number per unit time), then inter-arrival times are exponential with mean . The same holds for service: exponential service times correspond to Poisson service completions. This is the basis of the classic M/M/1 queue (Markovian arrivals/Markovian service, one server), where both inter-arrival and service times are exponential.
In simulation we generate exponential inter-arrival and service times by inversion:
These variates drive the event list to schedule arrivals and departures.
Explain the features of a general-purpose simulation language (e.g., GPSS).
General-Purpose Simulation Language (GPSS)
GPSS (General Purpose Simulation System) is a process/transaction-oriented, discrete-event simulation language especially suited to queuing systems. Its main features:
- Transaction (entity) flow model: the system is described as dynamic entities called transactions moving through a sequence of blocks that represent operations (GENERATE, ADVANCE, QUEUE, SEIZE, RELEASE, TERMINATE).
- Built-in resources: Facilities (single-server resources), Storages (multi-capacity resources) and Queues are predefined, so modelling servers and waiting lines is easy.
- Automatic clock and event handling: the simulation clock, future-event scheduling and entity movement are managed by the system; the modeller does not code the time-advance logic.
- Built-in random-number and distribution generators for arrival and service times.
- Automatic statistics collection: utilisation, queue length, average waiting time and counts are gathered and reported automatically.
- Block-diagram (flowchart) representation: models map directly to an easy-to-read block diagram, reducing programming effort.
Because these queuing constructs and statistics are built in, GPSS lets a modeller build and analyse discrete-event models quickly with little general-purpose programming, at the cost of less flexibility than a general language.
Explain the chi-square test for testing the uniformity of random numbers with an example.
Chi-Square Test for Uniformity
The chi-square () goodness-of-fit test checks whether a set of random numbers is uniformly distributed on .
Procedure:
- Divide into equal sub-intervals (classes).
- Count the observed frequency of numbers falling in each class.
- For numbers and equal classes the expected frequency is .
- Compute the statistic
- Compare with the critical value (degrees of freedom ). If , do not reject — the numbers are uniform.
Example
Suppose numbers are placed into classes, so . Observed counts:
| Class | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| 8 | 12 | 9 | 11 | 10 | 13 | 7 | 10 | 11 | 9 |
Degrees of freedom . At , . Since , we do not reject : the numbers are uniformly distributed.
Explain the classification of models: static vs dynamic, deterministic vs stochastic, continuous vs discrete.
Classification of Simulation Models
Static vs Dynamic
- Static model: represents a system at a particular point in time; time plays no role. Example: a Monte-Carlo model estimating or evaluating an integral.
- Dynamic model: represents a system as it evolves over time. Example: a bank queue simulated over an 8-hour day.
Deterministic vs Stochastic
- Deterministic model: contains no random variables; the same input always gives the same output. Example: a set of differential equations for a known chemical reaction.
- Stochastic model: contains one or more random variables, so outputs are themselves random and must be analysed statistically. Example: a queue with random (exponential) arrival and service times.
Continuous vs Discrete
- Continuous model: the state variables change continuously with respect to time, typically described by differential equations. Example: the level of water in a reservoir.
- Discrete model: the state variables change only at discrete points in time (events). Example: the number of customers in a queue, which changes only at arrivals/departures.
These dimensions are independent; a real model is described by one choice from each pair (e.g. a single-server queue is dynamic, stochastic, discrete).
Frequently asked questions
- Where can I find the BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) question paper 2078?
- The full BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2078 (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) 2078 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) 2078 paper?
- The BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2078 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.