Web Programming 1 (COME3107)
Computer Engineering - COM
Semester: First Semester
Level: 300
Year: 2019
C . A t th e e n d o f t h e d o cu m e n t
D . Anywhere in the document
3. Which
HTML tag is used to
define an internal style sheet?
A. <script>
B.
< c s s >
C.
< s t y l e >
D. <input>
4.
Which HTML attribute is used
to define inline styles?
A . C l a s s
B . S t y l e s
C . S t y l e
D .
f o n t
REPUBLIC OF CAMEROON
Peace-Work- Fatherland
THE UNIVERSITY OF BAMENDA
P.O. Box 39 Bambili
END OF SEMESTER EXAMINATION
SCHOOL
NAT IONAL HIGHER P OLYTECHNIC INSTITUTE
DEPARTMENT
COMPUTER ENGINEERING
LEVEL
300 (YEAR 2)
SEMESTER 1
COURSE TITLE
WEB PROGRAMMING 1
TIME ALLOWED 2
HOURS
SESSION
MARCH 2019
General instructions
You are reminded of the necessity for good English and orderly presentation of your material. Write
all your answers in your answer sheet.
Exercise
1: Generalities on the Internet and the web (6 marks)
1. Define the following terms: protocol, world wide web, web browser, web server. (2 marks)
2. How many internets are there? Is the Google one of them? (1 mark)
3. What is the difference between the Internet and the World Wide Web? (WWW)
(1
mark)
4. Explain the use of the following
languages/technologies: HTML, CSS, JAVASCRIPT, PHP, SQL.
(2 marks
.
)
Exercise 2: HTML and CSS
(6
marks)
1. What is the correct HTML for
referring to an external style sheet?
A. <link
rel="stylesheet"
type="text/css"
href="mystyle.css">
B. <stylesheet>mys0e.css<
/styles
beet>
C.
<style scr="mystyle.css">
D.
<input type="css"
name="mystyle.css" />
2. Where in an HTML document is
the correct place to refer to an
external style sheet?
A. In the <body> section
B. In the <head> section
5. Write an HTML page containing the following table at its center preceded by the title list of students
.
(2 marks)
Names Registration number Age
Department
ANYE Wilson STU20111 18
Physics
Maths
CHI Paul STU20112 19
P a g e 1 1 2
www.schoolfaqs.net
KAMGA Philemon STU20113 17 Biology
FONDZE Eric
STU20114
20
Hi
story
ATANGANA Simon
STU20115 16 Modern letters
6. Write an HTML page containing a form to insert a new student in the database of
students given the information of question 5. (2 marks)
Exercise 3: NIP
(4 marks
)
1. Answer by true or false."
(0.5 mark)
PHP is a server-side scripting language.
2. Write the class of the object student with the attributes defined in exercise 2 question 5.
(1.5 mark)
3. Write a PHP script that collects the data in the form of question 6, exercise and insert
them in the database
(2 marks)
Exercise 4: SQL
(4 marks)
1. Wha t does S QL sta n d f o r?
(0.5 mark)
2. Insert the missing statements to get all the columns from the Customers table.
(1 mark)
*
customers;
2. Write the SQL command to create the table students defined here above. (1.5 mark)
3. Write the SQL command to insert a new record in the table students defined here above.
(1 mark)
P a g e
212
www.schoolfaqs.net