Practice IB Computer Science (CS) Topic B.1 the Basic Model with authentic exam-style questions for both SL and HL students. This question bank focuses on the exact syllabus content for B.1 the Basic Model and mirrors Paper 1, 2, 3 style where relevant.
Get instant solutions, detailed explanations, and build confidence with questions aligned to IB examiner expectations.
A logistics firm is developing a simulation to monitor the battery 'State-of-Health' (SoH) for its fleet of electric delivery vans. The simulation begins with a new battery at SoH and assumes a baseline degradation of (i.e., ) for every kilometer driven. The fleet manager uses this model to schedule vehicle replacements and estimate the long-term resale value of the fleet.
Describe the logic of a basic iterative simulation used to estimate the final SoH of a battery after a vehicle has completed a total distance of km.
Identify three operational or environmental variables that would likely influence the rate of battery degradation in a real-world setting.
Explain how the inclusion of the variables identified in the previous part would enhance the predictive power of the simulation.
Analyze the limitations of using a simplified linear simulation to predict the lifespan of complex hardware like lithium-ion batteries.
Identify two financial risks associated with an inaccurate battery degradation model, and explain how each would impact the logistics firm.
The automated management system of a hydroelectric dam uses a computer-based simulation to regulate water flow and safety. For example, the system:
The simulation software processes high-frequency data from a network of physical sensors to maintain a real-time model of the reservoir's status.
The simulation software monitors the reservoir height () and the rate of water inflow () from surrounding rivers to predict future water levels. During periods of heavy rainfall, the software must decide whether to activate the emergency overflow gates.
Explain the four logical steps the software must perform to determine if the overflow gates should be opened.
A simulation model is an abstraction of reality. Identify one physical attribute of the dam that would be treated as a constant parameter in the software, and suggest why it would not be represented as a variable.
Identify two distinct output devices or actuators that the simulation software controls to manage the physical infrastructure of the dam.
Here's the formatted version in markdown:
The rise in global temperatures has led to the melting of the sea ice in polar regions. Scientists have developed a number of computer models that can be used to make predictions about the rate of sea ice melting in these polar regions and its effect on coastal areas globally. In order to create a computer model a number of variables are identified.
A computer model of the effects of the melting of the sea ice in the Arctic Ocean may include the following variables:
In this model the following rules have been determined:
The initial values are:
For the next iteration, assume there is an increase of 0.04 °C in the ocean surface temperature.
The scientists observed when running the model numerous times using historical data there were significant differences between observed and expected results.
A second model was developed that included new variables and rules.
The surface of the ocean reflects the heat from the sun. The ratio between the area covered by the sea ice and the area where there is no sea ice (open ocean) affects the value of the average albedo. The lower the albedo, the quicker the sea ice will melt.
The average albedo is calculated using this formula:
Note:
The average albedo will change with every iteration of the model. Each iteration is 2 years after the previous.
The rules for the model are:
Explain why the accuracy of the simulation in predicting the area of the sea ice is critical.
Using the information above state the area of the sea ice.
Using the information above state the change in sea level.
Identify two ways that this model could be implemented.
Using the rules and initial values above, construct the pseudocode that would enable the area of the sea ice and the sea level rise to be calculated if there was an increase of 0.04 °C in the ocean surface temperature.
Copy and complete the following table showing each variable’s data type and a suitable range of values that would represent the information shown above.
Using the formula, rules and initial data given above, construct the pseudocode that would calculate the year that the area of sea ice will be less than 10 000 km2.
Urban planning and infrastructure development increasingly rely on computational models to handle the complexities of modern transportation. Traffic flow simulations are used to design efficient road networks and minimize congestion in growing cities.
State four quantitative parameters required to initialize a computer simulation of vehicle traffic at a major intersection.
Propose three visual formats that could be used to present simulation results to assist engineers in identifying traffic bottlenecks.
Explain the methodology of using a stochastic computer model to determine the optimal timing for traffic light cycles at a new junction.
Discuss the advantages and disadvantages of using predictive traffic simulations as the primary basis for high-cost infrastructure investments, such as new highways.
A regional water authority manages a primary reservoir currently containing million cubic meters () of water. Due to a predicted drought, engineers need to simulate the depletion of the reservoir over the next days to determine if emergency restrictions are necessary. The current estimated daily outflow for residential and industrial use is million .
Describe the iterative process for a basic simulation to determine the water volume remaining after days, assuming no rainfall occurs.
Identify three environmental or human variables, other than standard residential usage, that influence the water level in a reservoir.
Explain how the simulation model could be modified to incorporate the variables identified in part 1 to improve its predictive power.
Discuss the limitations of using historical data and simplified models to simulate natural resource availability.
Outline two distinct economic or ecological consequences that could arise if the water authority relies on an overly optimistic simulation.