Probability Engine · CSC318

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.

8
Papers analyzed
2074-2082
33
Analyzed questions
across 6 syllabus units
5
Very likely units
high-probability topics
4
Units = 80% of marks
study these first
Model answers for this subject are being written. Every question links to its original paper so you can study from the source meanwhile.
Pick a unit
U3 · Q1/10 · 20815 marks
JavaScript

What is JSON? Differentiate between JSON and XML for data exchange.

58%
Likely to appearAppeared in 5 of the last 5 board papers
Seen in
How well do you know this?rating moves you on
MODEL ANSWERU3 · 5 marks

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

AspectJSONXML
SyntaxKey/value pairs, braces/bracketsTags with open/close pairs
VerbosityCompact, less markupVerbose (closing tags)
Data typesNative (string, number, boolean, array, object, null)All text; types inferred
ParsingFast, native in JS (JSON.parse)Needs a parser/DOM
Attributes/NamespacesNot supportedSupported
CommentsNot supportedSupported
ValidationJSON SchemaDTD / XML Schema
Best forAPIs, AJAX, configDocuments, 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.

AI-generated answer · unverifiedView in 2081 paper →
U3 · Question 1 of 10
Question Priority · U3ranked by appearance likelihood — study top-down

JavaScript

Analyzed next58%
1
★ TOP PICK

What is JSON? Differentiate between JSON and XML for data exchange.

5 marksSEEN IN
58%
2

Explain client-side form validation using JavaScript. Write an HTML form with JavaScript to validate a username, password and a checkbox before submission.

10 marksSEEN IN
27%
3

What are cookies? Explain how cookies are created and read in a web application.

5 marksSEEN IN
51%
4

What is AJAX? Explain how AJAX enables asynchronous communication between the client and the server.

5 marksSEEN IN
50%
5

What is the Document Object Model (DOM)? Explain how JavaScript is used to manipulate the DOM.

5 marksSEEN IN
50%
6

What are jQuery selectors? Explain jQuery callback and chaining effects with appropriate jQuery scripts.

10 marksSEEN IN
25%
7

Explain JavaScript data types, operators and control structures with examples.

5 marksSEEN IN
43%
8

Write HTML script to demonstrate the onkeydown and onkeypress events.

5 marksSEEN IN
25%
9

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.

5 marksSEEN IN
25%
10

What is the use of alert box? Write a JavaScript program to show the use of RegExp object.

5 marksSEEN IN
25%
03The mock

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

Section A: Long Answer QuestionsAttempt any TWO questions.
  1. 1.

    Explain client-side form validation using JavaScript. Write an HTML form with JavaScript to validate a username, password and a checkbox before submission.

    [10 marks]
    JavaScriptVery likelyfrom 2077 paper →

    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. 2.

    Explain cookies and sessions in PHP. Write a PHP script that uses sessions to manage user login state.

    [10 marks]
    PHP (Server-Side Scripting)Very likelyfrom 2081 paper →

    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. 3.

    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.

    [10 marks]
    PHP (Server-Side Scripting)Very likelyfrom 2081 paper →

    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.

Section B: Short Answer QuestionsAttempt any EIGHT questions.
  1. 1.

    What is JSON? Differentiate between JSON and XML for data exchange.

    [5 marks]
    JavaScriptVery likelyfrom 2081 paper →

    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. 2.

    What is AJAX? Explain how AJAX enables asynchronous communication between the client and the server.

    [5 marks]
    JavaScriptVery likelyfrom 2080 paper →

    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. 3.

    What is the Document Object Model (DOM)? Explain how JavaScript is used to manipulate the DOM.

    [5 marks]
    JavaScriptVery likelyfrom 2081 paper →

    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. 4.

    Explain arrays in PHP. Differentiate between indexed, associative and multidimensional arrays with examples.

    [5 marks]
    PHP (Server-Side Scripting)Very likelyfrom 2081 paper →

    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.

    Differentiate between the Internet and the World Wide Web. Explain the client-server architecture of the web.

    [5 marks]
    Introduction to Web TechnologyVery likelyfrom 2081 paper →

    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. 6.

    Explain the structure of a URL and the role of DNS in resolving domain names.

    [5 marks]
    Introduction to Web TechnologyVery likelyfrom 2079 paper →

    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. 7.

    Explain different types of CSS selectors with examples.

    [5 marks]
    HTML and CSSVery likelyfrom 2081 paper →

    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. 8.

    What are cookies? Explain how cookies are created and read in a web application.

    [5 marks]
    JavaScriptVery likelyfrom 2081 paper →

    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. 9.

    Explain JavaScript data types, operators and control structures with examples.

    [5 marks]
    JavaScriptVery likelyfrom 2081 paper →

    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.

04The receipts

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.

Marks:nonefew → many
2074
2075
2077
2078
2079
2080
2081
2082
Total
U3JavaScript
170
U5PHP (Server-Side Scripting)
140
U1Introduction to Web Technology
105
U2HTML and CSS
95
U4XML
90
U6Web Services, Web Security and Emerging Technologies
0
#Syllabus unitProbabilityAppearedAvg marksSyllabus weightExam vs syllabusTrendQuestions
1U3JavaScriptVery likely100%21.220%9 lecture hrsOver-examinedexam 28% · syllabus 20%Steady6 recurring10 total
2U5PHP (Server-Side Scripting)Very likely100%17.520%9 lecture hrsBalancedexam 23% · syllabus 20%Steady5 recurring8 total
3U1Introduction to Web TechnologyVery likely100%13.19%4 lecture hrsOver-examinedexam 18% · syllabus 9%Steady4 recurring5 total
4U2HTML and CSSVery likely100%11.920%9 lecture hrsBalancedexam 16% · syllabus 20%Steady3 recurring6 total
5U4XMLVery likely100%11.216%7 lecture hrsBalancedexam 15% · syllabus 16%Steady3 recurring4 total
6U6Web Services, Web Security and Emerging TechnologiesOccasional0%
016%7 lecture hrsUnder-examinedexam 0% · syllabus 16%SteadyNone

Study smart, not hard

Drag the slider: studying the top 4 units in priority order covers ~85% of all observed marks.

  1. ~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.

U3JavaScript
20% of lectures → 28% of markshigh yield
U5PHP (Server-Side Scripting)
20% of lectures → 23% of marks
U1Introduction to Web Technology
9% of lectures → 18% of markshigh yield
U2HTML and CSS
20% of lectures → 16% of marks
U4XML
16% of lectures → 15% of marks
U6Web Services, Web Security and Emerging Technologies
16% of lectures → 0% of markslow yield

Topics are the official CSC318 syllabus units. Predictions are data-driven probabilities computed from 8 past papers (2074-2082) by mapping each real question to its syllabus unit. They indicate what has historically been likely, not guaranteed questions. Always study the full syllabus.