Web Technology (BSc CSIT, CSC318): the questions likely to come
33 analyzed questions from 8 past papers (2074-2082), grouped by syllabus unit — each with its probability, how often it's been asked, and where to study the answer.
What is JSON? Differentiate between JSON and XML for data exchange.
JSON
JSON (JavaScript Object Notation) is a lightweight, text-based, language-independent data-interchange format. It represents data as key/value pairs (objects, {}) and ordered lists (arrays, []), and is easy for humans to read and for machines to parse and generate. Example:
{
"name": "Alice",
"age": 22,
"courses": ["Web Tech", "DBMS"]
}
JSON vs XML for Data Exchange
| Aspect | JSON | XML |
|---|---|---|
| Syntax | Key/value pairs, braces/brackets | Tags with open/close pairs |
| Verbosity | Compact, less markup | Verbose (closing tags) |
| Data types | Native (string, number, boolean, array, object, null) | All text; types inferred |
| Parsing | Fast, native in JS (JSON.parse) | Needs a parser/DOM |
| Attributes/Namespaces | Not supported | Supported |
| Comments | Not supported | Supported |
| Validation | JSON Schema | DTD / XML Schema |
| Best for | APIs, AJAX, config | Documents, mixed content |
In short, JSON is preferred for modern web APIs because it is lighter and maps directly to JavaScript objects, whereas XML offers richer structure (attributes, namespaces, schemas) suited to complex documents.
JavaScript
What is JSON? Differentiate between JSON and XML for data exchange.
Explain client-side form validation using JavaScript. Write an HTML form with JavaScript to validate a username, password and a checkbox before submission.
What are cookies? Explain how cookies are created and read in a web application.
What is AJAX? Explain how AJAX enables asynchronous communication between the client and the server.
What is the Document Object Model (DOM)? Explain how JavaScript is used to manipulate the DOM.
What are jQuery selectors? Explain jQuery callback and chaining effects with appropriate jQuery scripts.
Explain JavaScript data types, operators and control structures with examples.
Write HTML script to demonstrate the onkeydown and onkeypress events.
Write a HTML script with proper JavaScript that will take an input from prompt box and display the input as output using the alert box.
What is the use of alert box? Write a JavaScript program to show the use of RegExp object.
Sit a probable paper
A full mock exam built from the most likely questions, mirroring the real paper's structure. Every slot is a real past question.
Most Probable Paper
Mirrors the real structure · 60 marks · based on 8 past papers
- 1.[10 marks]
Explain client-side form validation using JavaScript. Write an HTML form with JavaScript to validate a username, password and a checkbox before submission.
This question has recurred in 3 of 8 years; so far only in internal assessments, not the board; and its topic (JavaScript) appears in 100% of years.
- 2.[10 marks]
Explain cookies and sessions in PHP. Write a PHP script that uses sessions to manage user login state.
This question has recurred in 3 of 8 years; so far only in internal assessments, not the board; and its topic (PHP (Server-Side Scripting)) appears in 100% of years.
- 3.[10 marks]
Explain how PHP handles forms and connects to a MySQL database. Write a PHP script to insert and retrieve student records from a MySQL database.
This question has recurred in 3 of 8 years; so far only in internal assessments, not the board; and its topic (PHP (Server-Side Scripting)) appears in 100% of years.
- 1.[5 marks]
What is JSON? Differentiate between JSON and XML for data exchange.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (JavaScript) appears in 100% of years.
- 2.[5 marks]
What is AJAX? Explain how AJAX enables asynchronous communication between the client and the server.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (JavaScript) appears in 100% of years.
- 3.[5 marks]
What is the Document Object Model (DOM)? Explain how JavaScript is used to manipulate the DOM.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (JavaScript) appears in 100% of years.
- 4.[5 marks]
Explain arrays in PHP. Differentiate between indexed, associative and multidimensional arrays with examples.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (PHP (Server-Side Scripting)) appears in 100% of years.
- 5.[5 marks]
Differentiate between the Internet and the World Wide Web. Explain the client-server architecture of the web.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (Introduction to Web Technology) appears in 100% of years.
- 6.[5 marks]
Explain the structure of a URL and the role of DNS in resolving domain names.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (Introduction to Web Technology) appears in 100% of years.
- 7.[5 marks]
Explain different types of CSS selectors with examples.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (HTML and CSS) appears in 100% of years.
- 8.[5 marks]
What are cookies? Explain how cookies are created and read in a web application.
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (JavaScript) appears in 100% of years.
- 9.[5 marks]
Explain JavaScript data types, operators and control structures with examples.
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (JavaScript) appears in 100% of years.
Behind the numbers
The raw evidence the predictions are computed from: marks per unit per year, syllabus weights, trends, and coverage.
Show the heatmap, topic table and coverage analysis
The receipt: marks per unit, per year
Each row is a syllabus unit, each column an exam year, each cell the marks that unit earned that year. Click any cell to see the actual questions behind it.
| # | Syllabus unit | Probability | Appeared | Avg marks | Syllabus weight | Exam vs syllabus | Trend | Questions |
|---|---|---|---|---|---|---|---|---|
| 1 | U3JavaScript | Very likely100% | 21.2 | 20%9 lecture hrs | Over-examinedexam 28% · syllabus 20% | Steady | 6 recurring10 total | |
| 2 | U5PHP (Server-Side Scripting) | Very likely100% | 17.5 | 20%9 lecture hrs | Balancedexam 23% · syllabus 20% | Steady | 5 recurring8 total | |
| 3 | U1Introduction to Web Technology | Very likely100% | 13.1 | 9%4 lecture hrs | Over-examinedexam 18% · syllabus 9% | Steady | 4 recurring5 total | |
| 4 | U2HTML and CSS | Very likely100% | 11.9 | 20%9 lecture hrs | Balancedexam 16% · syllabus 20% | Steady | 3 recurring6 total | |
| 5 | U4XML | Very likely100% | 11.2 | 16%7 lecture hrs | Balancedexam 15% · syllabus 16% | Steady | 3 recurring4 total | |
| 6 | U6Web Services, Web Security and Emerging Technologies | Occasional0% | 0 | 16%7 lecture hrs | Under-examinedexam 0% · syllabus 16% | Steady | None |
Study smart, not hard
Drag the slider: studying the top 4 units in priority order covers ~85% of all observed marks.
- ~80% line
Lecture time vs exam marks
Where the exam pays more than the curriculum spends: ● lectures vs ● exam marks, as a share of the whole course. A long teal-leading bar = high-yield unit.