0% found this document useful (0 votes)
13 views5 pages

BIT1202

This document outlines the examination details for the unit BIT1202: Introduction to Web Design at the University for the academic year 2023/2024. It includes instructions for answering questions from two sections, with various tasks related to web development concepts, HTML, JavaScript, PHP, and SQL. The exam covers topics such as web-based applications, cookies, form handling, and programming concepts.

Uploaded by

ndaidancan171
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views5 pages

BIT1202

This document outlines the examination details for the unit BIT1202: Introduction to Web Design at the University for the academic year 2023/2024. It includes instructions for answering questions from two sections, with various tasks related to web development concepts, HTML, JavaScript, PHP, and SQL. The exam covers topics such as web-based applications, cookies, form handling, and programming concepts.

Uploaded by

ndaidancan171
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

UNIVERSITY EXAMINATION 2023/2024

SCHOOL OF COMPUTING AND INFORMATICS


DEPARTMENT OF INFORMATION TECHNOLOGY/ENTERPRISE COMPUTING

BEDA/BBIT/BIT
VIRTUAL VARSITY

UNIT CODE: BIT1202 UNIT TITLE: INTRODUCTION TO WEB DESIGN

DATE: WED 17TH APRIL, 2024 4.00PM MAIN EXAM TIME: 2 HOURS

INSTRUCTIONS: ANSWER ALL QUESTIONS IN SECTION A AND ANY OTHER TWO


FROM SECTION B

SECTION A
QUESTION ONE: (COMPULSORY) 30 MARKS
a) Use relevant examples to explain the following terms in the context of Web
Development. (3 Marks)
i) DNS server
ii) Cookies
iii) Web based Application.

b) Write the HTML that would produce the output below: (5 Marks)

c) Write a complete script using a java script function called welcome whose
purpose is to display your name, and your best meal. (4 Marks)

d) Rewrite the following tag to make the page open in a new browser window.
<a href=” [Link] ABC website<a/> (2 Marks)

Paper One Page 1


i) Explain in details the following extract codes: (3 Marks)
$people=array (
“jay” => array
(“last_name” =>” greenspan”,
” age “=>32
),
“john” => array (
“last_name” =>” doe”
“age” => 52
)
);

e) Give appropriate statements that will allow you to print john’s age. (2 Marks)

f) Explain the meaning of the following attributes as used in a FORM tag:


using a code snippet
i) Action (2 Marks)
ii) Method. (2 Marks)

g) write the HTML tags for the following text: (4 Marks)

Departments:
B. Finance
C. Administrative
D. Quality Assurance
• Division 1
• Division 2.

h) Explain the following terms as used in Web based programming. (3 Marks)


i) Frame
ii) Form
iii) Table

SECTION B
QUESTION TWO
a) Write a JavaScript program to calculate and display the sum of two numbers,
given Mark A and B from the form shown below. (5 Marks)

b) Write a HTML code snippet that would represent date as 25th JUNE-2021.
(2 Marks)

Paper One Page 2


c) Consider the code snippet below.

What output is generated by the code above (4 Marks)

d) Write a CSS script snippet to declare the four types of <A> link pseudo classes.
Choose Values of your Choice for the declarations (4 Marks)

e) Other than the title tag, mention any four other tags can be used within the
HEAD tag. (2 Marks)

f) Write a java script code with a function called test which displays an alert
when an image is clicked. (3 Marks)

QUESTION THREE
a) Write a loop of your choice, write a PHP or JavaScript code that would
produce the output below inside a pull down option as shown. (6 Marks)

b) Describe the following concepts as used in web development. (4 Marks)


i) Client side programing
ii) Server side programing

c) Use a PHP script to demonstrate an Array that stores THREE flavors of LINUX
namely Redhat, Suse &Kali. The flavors should be received from the user
interactively (7 Marks)

d) What is a cookie? how are they important in web based applications


(3 Marks)

Paper One Page 3


QUESTION FOUR
a) Write the output of the following HTML (6 Marks)
<form method="post" action="[Link]">
<input name="subject" type="hidden" value="Class" />
<fieldset><legend>Academic information</legend>
<label for="degree">Degree</label>
<select name="degree" id="degree">
<option value="BA">Bachelor of Art</option>
<option value="BS">Bachelor of Science</option>
<option value="BAST" selected="selected">BSC. Acturial & Stats</option>
</select>
<br />
<label for="studentid">Student ID</label>
<input type="password" name="studentid" />
</fieldset>
<fieldset><legend>Personal Details</legend>
<label for="fname">First Name</label>
<input type="text" name="fname" id="fname" />
<br />
<label for="lname">Last Name</label>
<input type="text" name="lname" id="lname" />
<br />
Gender:
<input name="gender" type="radio" id="gm" value="m" />
<label for="gm">Male</label>
<input name="gender" type="radio" id="gf" value="f" />
<label for="gf">Female</label>
<br />
<label for="email">Email</label>
<input type="text" name="email" id="email" />
</fieldset>
<p>
<textarea name="terms" cols="30" rows="4"
readonly="readonly">TERMS AND CONDITIONS...</textarea>
</p>
<p>
<input type="submit" name="submit" value="Send Form" />
<input type="reset" value="Clear Form" />
</p>
</form>

b) State one difference and one similarity of the PHP $_GET and $_POST variable
(4 Marks)

Paper One Page 4


c) What is the main difference between radio buttons and checkboxes?
(4 Marks)

d) Explain any three frameworks used in web development. (6 Marks)

QUESTION FIVE
a) Consider the below form in order to answer the questions.

b)
i) Write the SQL statements required to create a database named
Registration (3 Marks)
ii) Write the SQL statements to create a table called bio_data and show
how it can be used to insert data captured from the form. (4 Marks)
iii) Assume that a user has filled the form. Write the PHP code that would
produce the output after the submit button is clicked. (7 Marks)

c) Distinguish between: (6 Marks)


i) IP Address and Domain name
ii) Static web pages and dynamic web pages
iii) Client side programming and server side programming

Paper One Page 5

You might also like