University Examinations Examination For Sep/Dec 2019 For Bachelor of Science in Computer Science
University Examinations Examination For Sep/Dec 2019 For Bachelor of Science in Computer Science
SPECIAL INSTRUCTIONS:
This examination paper consists Questions in Section A followed by section B.
Answer Question 1 and any Other Two questions.
QUESTIONS in ALL Sections should be answered in answer booklet(s).
Page 1 of 4
QUESTION ONE 30 MARKS (COMPULSORY)
a) Describe the concept of Simulation and Modelling ( 3 Marks)
b) Explain the difference between Deterministic or Stochastic Simulation Models ( 4 Mark)
c) List four advantages for using simulation other than experimenting with real life
Systems? (4 Mark)
d) Explain the two types of random numbers and the desired properties of a good random
numbers generator ( 6Marks)
e) You have been tasked to simulate a PIR Motion Sensor using Tinkercad 3D CAD design
tool, explore the sample circuit below and write a sample program.
Page 2 of 4
ANSWER ANY TWO QUESTIONS
a) Explain the steps that are followed in simulation and modelling (8 Marks)
b) Judy is a manager of a mobile factory company. Her factory has been quite successful the
past three years. She is wondering whether or not it is a good idea to expand her factory
this year. The cost to expand her factory is $1.5M. If she does nothing and the economy
stays good and people continue to buy lots of gadgets she expects $3M in revenue; while
only $1M if the economy is bad. If she expands the factory, she expects to receive $6M if
economy is good and $2M if economy is bad. She also assumes that there is a 40% chance
of a good economy and a 60% chance of a bad economy.
Draw a Decision Tree showing these choices showing if Ann should expand the factory or
not (12 Marks)
Page 3 of 4
Question Five
a) Explain how an activity duration may be specified ( 4 marks)
b) Briefly explain any three common techniques used to generate random numbers
(4 marks)
c) There are ten people in an office of which any one of them can talk on his/her phones any
Minute with a probability of 0.25. Write statements to simulate this situation and identify
the number of people who will be on phone between 9.00 am to 9.30 am (6 marks)
d) Explain three factors that affects the selection method for forecasting (6 Marks)
Page 4 of 4