Web Programming (HTML5, CSS3 and PHP Languages) (CSCT2110)

Computer Science - COS

Semester: First Semester

Level: 200

Year: 2016

1/2
FIRST SEMESTER EXAMINATION
SCHOOL: HTTTC DEPARTMENT: COMPUTER SCIENCE OPTION: ICT
COURSE CODE: CSCT2110 COURSE TITLE: Web Programming
LECTURER: Mbiethieu Cezar CREDIT VALUE: 3
DATE: TIME: 1h30 START …..AM/PM END……AM/PM
Instructions:
Exercise 1:
1. The _____________ attribute specifies an inline style associated with an element, which
determines the rendering of the affected element.
a) dir b) style c) class d) article
2. How title attribute works?
a) Displays text when hovering over the element b) Focus text when hovering over the
element
c) Highlight text when hovering over the element d) Zoom in and zoom out text when
hovering over the element
3. HTML uses
A. User defined tags B. Pre-specified tags C. Fixed tags defined by the language D.
Tags only for linking
4. How can you make a bulleted list with numbers?
A. <dl> B. <ol> C. <list> D. <ul>
5. What tag is used to display a picture in a HTML page?
A. picture B. image C. img D. src
6. HTML web pages can be read and rendered by _________.
A. Compiler B. Server C. Web Browser D. Interpreter
7. Which HTML tag produces the biggest heading?
A. <h7> B. <h9> C. <h4> D. <h1>
8. Tags and test that are not directly displayed on the page are written in _____ section.
A. <head> B. <title> C. <body> D. <html>
9. If we want to define style for an unique element, then which css selector will we use ?
A. Id B. Text C. class D. name
10. If we want to use a nice looking green dotted border around an image, which css property
will we use?
A. border-color B. border-decoration C. border-style D. border-line
REPUBLIC OF CAMEROON
Peace Work Fatherland
----------
REPUBLIQUE DU CAMEROUN
Paix Travail -Patrie
-------
www.schoolfaqs.net
2/2
11. Which element is used in the <HEAD> section on an HTML / XHTMLpage, if we want
to use an external style sheet file to decorate the page ?
A. <src> B. <link> C. <style> D. <css>
12. Which attribute can be added to many HTML / XHTML elements to identify them as a
member of a specific group ?
A. Id B. div C. class D. span
13. When we write <img src="img.png">, what "img.png" inside double quote implies?
A. element B. Attribute C. value D. operator
14. Which CSS property is used to control the text size of an element?
A. font-style B. text-size C. font-size D. text-style
15. How will you make all paragraph elements 'RED' in color?
A. p.all {color: red;} B. p.all {color: #990000;} C. all.p {color: #998877;}D. p {color: red;}
Exercise 2
1. Write the CSS code to set the font-family of the text in the body of the page to be combined
Tahoma and Serif.
2. Using combined selector, set the color of the text inside the h1, h2 and h3 tag to be red and
bold text.
3. Write the CSS code to set the color of a link to #000105 when the link is visited
4. Show how to use internal, external and inline stylesheet
5. Create the following web page using HTML and CSS and JS
The JS allows checking if the fields have been filled
AUTHENTIFICATION
Login:
Password:
Submit Cancel
www.schoolfaqs.net