COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A software developer is designing a simulation of city street traffic over a 24-hour period. As part of the design, the simulation will use a variable that represents the amount of time, in hours, that elapses between the entry of successive cars onto the street. During a run of the simulation, which of the following best describes what values should be assigned to the variable in order to create the most realistic simulation?
A
Values that decrease linearly during the simulation
B
Values that increase exponentially during the simulation
C
Values that oscillate during the simulation above and below a specified mean
D
Values randomly generated during the simulation that are integers between 1 and 23, inclusive
Explanation: 
There is 1 question to complete.