Model Paper
Model Paper
1. Image (on the top left-hand side) used in the page is the file “logo.gif” and is in the “images”
folder in the document root.
3. Top table having width 800 and height 100 consist of an image (160X100) and two lines of text.
4. Text colour of main heading, “External Degree Programmes”, should be “Black”, it should be
centered accordingly and in header size 1 font.
5. The text “Be a Part of the Knowledge Society” bust be treated as Emphasized text block which
must be centered and bottom aligned with header size 4 font.
6. Line after the main heading section should be given in colour “Navy”.
7. The text before the second table (“FEES &PAYMENT METHODS”) must be in colour green and
align to left with font size 4.
8. The second table must have a width of 700 and must be distributed to 5 columns with following
width 300,80,80,80,160.
9. First row and first Colum must be treated as table header to improve the visibility.
10. The first row of the table and last row of the table must have a background colour R, G, B values
204,204,204.
11. The third and fifth row must be with background colour RGB values 153,153,204.
14. The text “Copyright 2024 ©” must appear in black colour and with font size 2.
Define styles for the following requirements in a separate style sheet “MyStyle.css”( write the
required code for the MyStyle.css).
o Arial font
o Left alignment
o in blue colour
• Heading 3 styles with
o Courier font
o red colour
o Font size 3
o blue colour
o center alignment
Assume that you have 3 different paragraphs where you have to change the colour of the font as
mentioned below through the active link (“Change Colour”) on the page. When the link is clicked
the paragraph’s colour must be changed. Write all required code (HTML, Java Script function/s)
based on styles for this task
The page must appear as given below and must be titled as “Change Font Color”
Question 04 (40 Marks)
Few rows of a table named “student” in a MySQL database named “school” is given below.
id name date_of_birth sex class
a) Give PHP statements required to establish a connection to this MySQL database “school”.
Clearly state all your assumptions, if any.
b) How do you verify that the connection you have tried to establish in part a) above had
been established without any error? Writing PHP code is necessary to display the errors
encountered if the attempt failed.
c) Design a web page with form to insert student’s data and write a PHP script to add form
data to “student” table.
d) Write a PHP script that accepts a connection to the database “student” and prints only the
“ids” and “names” of all students in the table “school”.