Practice IB Computer Science (CS) Topic C.3 Distributed Approaches to the Web with authentic exam-style questions for both SL and HL students. This question bank focuses on the exact syllabus content for C.3 Distributed Approaches to the Web and mirrors Paper 1, 2, 3 style where relevant.
Get instant solutions, detailed explanations, and build confidence with questions aligned to IB examiner expectations.
MetroPulse is a digital news agency that hosts an extensive online archive of historical newspaper articles.
To ensure a professional and uniform appearance across thousands of archived pages, the developers use a single file to manage the visual presentation. The following line is included in the <head> section of every page:
<link rel="stylesheet" type="text/css" href="/assets/styles/main.css">
The site features an interactive archive viewer where users can see the date they accessed the specific record. This is handled by a script included in the page footer.
Part of the script in the file archive_utils.js is shown below:
function updateAccessStamp() { const stampElement = document.getElementById("access-timestamp"); const currentTime = new Date(); const formattedDate = "Record retrieved on: " + currentTime.toLocaleString(); if (stampElement !== null) { stampElement.textContent = formattedDate; }}
window.onload = updateAccessStamp;The administrators of MetroPulse want to ensure that their historical records are easily discoverable by researchers using global search engines. They also need to secure the subscriber login area where users manage their accounts.
Identify two benefits of using an external Cascading Style Sheet (CSS) file rather than defining styles internally within each individual HTML document.
Explain the processing that occurs within the client's web browser when the updateAccessStamp() function is executed.
Explain two ways in which the developers can use technical configuration files to assist search engine crawlers in indexing the MetroPulse archive effectively.
Distinguish between the GET and POST methods in the context of an HTTP request.
Explain how the implementation of HTTPS protects the data of users logging into the MetroPulse subscriber portal.
A company is developing a distributed web application to provide real-time data analysis for its clients. The system is designed to handle large volumes of data and deliver insights with minimal latency. It leverages distributed computing resources across multiple geographic locations to ensure high availability and fault tolerance.
Explain how load balancing is implemented in the distributed web application to optimize resource utilization.
Explain the role of distributed computing in enhancing the performance of the web application.
Evaluate the benefits and drawbacks of using a distributed web application compared to a centralized one.
Describe how data consistency is maintained across distributed nodes in the web application.
Discuss the challenges of ensuring low latency in a distributed web application.
HTTPS is not a distinct protocol, but makes specific use of a combination of two separate protocols.
A web application provides a search form that allows a user to search a library database by author name. The user enters an author and submits the form in a web browser. The browser sends the form data to a web server, which runs a server-side script that queries a database and returns an HTML results page to the browser.
Identify these two protocols.
Outline their functions.
Outline the interaction between a user, a web browser and a domain name server when accessing sites on the internet.
Describe the processing that takes place when the form that was sent from the client is received by the web server.
Explain, giving two reasons, why the use of server-side scripting promotes security when retrieving content from databases.
A non-profit organization is launching an international educational portal named 'EduGlobal'. The portal provides interactive learning modules, a searchable database of academic papers, and a private forum for registered educators.
The portal is hosted on a central server and accessed via the URL: https://www.eduglobal-portal.org/resources/index.php.
To ensure high performance, the developers must decide which tasks are handled by the user's browser and which are handled by the server. They also need to ensure the site is easily discoverable by search engines while keeping sensitive data secure.
Identify two components of the URL https://www.eduglobal-portal.org/resources/index.php.
When a user signs up for the forum, a script checks if the password meets the minimum length requirements.
Outline one advantage of performing this check using client-side scripting rather than server-side scripting.
State the HTTP status code that the server would return to a browser if a student attempts to access a deleted lesson page.
The 'EduGlobal' team adds new research papers to the portal every week. Outline one way a web crawler (spider) identifies that new content has been added to the site's index.
The 'EduGlobal' portal must be accessible to students using various browsers (e.g., Chrome, Safari, Firefox) and different operating systems.
Explain the role of the World Wide Web Consortium (W3C) in making this possible.
The portal consists of a public blog and a private database of academic papers that requires a subscription to access.
Distinguish between the Surface Web and the Deep Web in the context of this portal, and explain why the academic papers might not appear in general search engine results.
A company is developing a distributed system to handle high volumes of transactions and provide a seamless user experience worldwide. The system uses modular components and a database system to ensure scalability, reliability, and low latency.
Explain the concept of modular software design and its benefits in a high-volume transaction system.
Describe how a database management system supports the scalability and reliability of the transaction system.
Discuss the challenges of maintaining data consistency when many users access and update the system at the same time.
Explain how caching contributes to the performance and reliability of the transaction system.
Evaluate the benefits and drawbacks of using a modular system compared to a single, monolithic program for this scenario.