St.
Thomas Institute for Science & Technology
Department of Computer Science and Engineering
Internal Assessment Test 1, September 2024
Sem: 7 Duration: 1.5 Hr
CST 463 WEB PROGRAMMING
Date: Max. Marks: 50
After completion the assessment students will be able to
Use Hypertext Markup Language (HTML) for authoring web pages and understand the fundamentals
CO 1
of WWW(Cognitive Knowledge Level: Understand)
Construct and visually format responsive, interactive web pages using CSS and JavaScript (JS)
CO 2
(Cognitive Knowledge Level: Apply)
CO- Course Outcome, Cognitive Level (Bloom’s Taxonomy Level (B.L) :(L1- Remember, L2- Understand, L3 – Apply, L4 –
Analyze, L5 – Evaluate and L6– Create)
PART A (Answer all questions)
Q. No Questions Marks CO BL
Describe the characteristics that make MIME an extension feature and justify
1 3 1 L2
your answer with relevant examples and explanation.
Identify and describe the components of a URL and provide an example to
2 3 1 L1
illustrate each part.
Show the basic structure of an HTML document and provide an example to
3 3 1 L1
demonstrate each element.
Discuss the differences between ID selectors and class selectors in CSS,
4 3 2 L2
providing suitable examples to illustrate their usage and applications.
Illustrate the differences between Absolute Positioning and Relative
5 Positioning in CSS, using examples to demonstrate their distinct effects on 3 2 L3
element layout and behavior
Demonstrate the concept of a callback function in JavaScript, and explain how
6 3 2 L3
it differs from a regular function, including its purpose and syntax
PART B
(Answer any one full question from each module)
MODULE I
7 (a) Show the equivalent HTML code to implement the following elements 8 1 L1
on a web page:
SERIES QP/IQAC/SEM B/AY 23-24/rev00 Page 1 of 4
1. An image element with the source file "flower.jpg", including
attributes to specify:
- Height and width dimensions
- Alternative text (message) to display if the image cannot be loaded
2. An unordered list containing the items:
- Tea
- Coffee
- Milk
Discuss the purpose and usage of the following HTML tags, providing
examples to illustrate their application:
1. <textarea>
2. <span>
7 (b)
8 1 L2
3. <tr>
4. <form>
5. <a>
OR
Describe the HTML code required to generate the following table structure,
including all necessary tags and attributes to replicate the table's layout and
content.
8 (a)
8 1 L1
8 (b) Discuss the HTML code required to create a registration form that includes a 8 1 L2
dropdown menu for the 'Course' field, which contains the following eight
options: BCA, BBA, B. Tech, MBA, MCA, M. Tech. Explain the purpose of
SERIES QP/IQAC/SEM B/AY 23-24/rev00 Page 2 of 4
each HTML element and attribute used to create the form and populate the
dropdown menu.
MODULE II
Illustrate the CSS style rules required to achieve the following effects on a web
page
a. to display the content of hyperlinks with red background color and in
8 2 L3
9 (a) italics.
b. to display the contents of unordered lists in Times New Roman font.
c. to display "Ocean.gif' as the background image of the page.
Discuss various types of control statements in JavaScript 8 2 L2
9 (b)
OR
10 (a) Examine the purpose and usage of class selectors in CSS, and explain how they 8 2 L3
can be employed to apply different styles to the same HTML element based on
context. Provide an example by writing the equivalent CSS style rules to
achieve the following two distinct styles for paragraph (p) elements:
Style 1:
- Text color: blue
- Text alignment: right
-Text decoration: underline
- Font style: italics
- Word spacing: 2 cm
Style 2:
- Background color: yellow
- Border color: blue
SERIES QP/IQAC/SEM B/AY 23-24/rev00 Page 3 of 4
- Padding: 1.5 cm
Assume that these styles need to be applied to different paragraph elements on
the same web page, and demonstrate how class selectors can be used to target
and style these elements accordingly
Describe the process of creating a JavaScript program that calculates the
factorial of a user-inputted number, utilizing a prompt dialog box to obtain the 8 2 L2
10 (b)
input value from the user
SERIES QP/IQAC/SEM B/AY 23-24/rev00 Page 4 of 4