Uploaded by simon hamalwa

Web Design

advertisement
INTERNATIONAL TRAINING COLLEGE - LINGUA
Towards Educational Excellence
NCHE Reg. No: R0014
NQA Accreditation No: 000095
DEPARTMENT OF INFORMATION TECHNOLOGY
CLASS TEST
Lecturer: Mr C. Kasumba
Date: 7 September 2020
QUALIFICATION
: BACHELOR IN tourism management(NQF LEVEL 7)
YEAR
: 2
MODULE
: Tourism Web Design (NQF LEVEL 6)
CLASS TEST
: 1
TOTAL MARKS
: 40 marks
TIME
: 1 Hour
Marks Awarded
: ____ = ____%
40
INSTRUCTIONS
:
❖ Answer all questions
❖ Answer in the spaces provided
❖ This paper consists of 6 printed pages including cover page
❖ This paper consists of three sections: Section A & Section B
❖ All Cell phones must be switched off during exam sessions
Please Tick one box only:
Full-Time.
Part-Time.
Distance.
Student Name
: Estevao Luzolo________________________________
Surname
: Sebastiao ________________________________
Student Number: Lcs00205159it________________________________
Section A
[20 Marks]
Multiple Choices: Put you answer in the space provided on the right column.
Each question carries 1 mark
1. Following HTML and CSS standards helps make your web pages
a.
b.
c.
d.
e.
display faster
less accessible
forward compatible
only a and c are true, b is not true
a, b, and c are all true
2. Which is an example of purely presentational HTML markup
a.
b.
c.
d.
Answer ____
is a markup language
stands for Core Style Sheet
defines the presentational layer of a web page
none of the above are true
5. What is NOT part of the client tier?
a.
b.
c.
d.
e.
Answer ____
HTML code
cookies
session variables
JavaScript
DOM
6. JavaScript
a.
b.
c.
d.
Answer ____
<p> paragraph content </p>
<b> bold text </b>
<div id=“pagetitle”>My Website</div>
<img class= “playerphoto” src= “Jordan.jpg” title=”Michael Jordan” />
4. CSS
a.
b.
c.
d.
Answer ____
<p> paragraph content </p>
<b> bold text </b>
<div id=“pagetitle”>My Website</div>
<img class= “playerphoto” src= “Jordan.jpg” title=”Michael Jordan” />
3. Which example is the most semantic
e.
f.
g.
h.
Answer ____
is a language used to define the structural layer of a web page
is used in the database tier
is typically used to communicate with the web server
is used to manipulate the browser
Answer ____
7. If you want to insert content/data from an external source into a web page,
Answer ____
which language will NOT help?
a.
b.
c.
d.
CSS
SQL
JavaScript
PHP
8. Which of the following is most likely to happen if your page uses
HTML instead of XHTML?
Answer ____
a. The page will NOT load in most web browsers
b. The page may not be compatible with come XML-based systems.
c. Both a and b are correct
9. Which of the following is a full-featured programming language?
a.
b.
c.
d.
e.
CSS
PHP
HTML
SQL
All of the above are full-featured programming languages
10. In this CSS code, what is being set? body { color: #990000; }
a.
b.
c.
d.
Answer ____
The web server must have PHP processor
The code must be inside the <head> tag
The code must be inside a <script> tag
All of the above
12. What PHP variable is used to access URL variables?
a.
b.
c.
d.
Answer ____
Text Color of only paragraphs
Background Color of the entire web page
Text Color of the entire web page
Background Color of the body element
11. Which of the following must be true in order to use PHP code in a web page?
a.
b.
c.
d.
Answer ____
Answer ____
$_FORM
$_FILES
$_GET
$_POST
13. What PHP function is used to start a user session?
Answer ____
a.
b.
c.
d.
session_start()
session_init()
session()
$_SESSION
14. What has higher priority?
Answer ____
a. Styles define in a linked style sheet
b. Embedded styles
c. Inline styles
15. Which of the following is NOT a built-in associative array used by PHP?
a.
b.
c.
d.
Answer ____
$_URL
$_FILES
$_GET
$_POST
16. Consider the following regular expression and select the most correct answer:
Answer ____
^[a-zA-Z][a-z0-9]+$
a.
b.
c.
d.
The pattern must start with a capital letter
The pattern must contain exactly two characters
The pattern must contain at least one letter
The pattern must contain at least one numeric digit
17. Consider the following regular expression and select the most correct answer:
Answer ____
^[a-z0-9]+@[a-z0-9]+.com$
a.
b.
c.
d.
The pattern must end with .com
The pattern can only contain one dot
The pattern can NOT have any capital letters
All of the above are true
18. You can make a web page more accessible by
a.
b.
c.
d.
e.
f.
putting it on the a web server
using standard HTML and CSS
providing alternative style sheet for printers and screen readers
using a big font
a, b, and c are all correct; d is not really true
a, b, c, and d are all correct
Answer ____
19. Select the most correct statement
a.
b.
c.
d.
Radio buttons are used when multiple options can be selected
Check boxes are used when multiple options can be selected
Radio buttons can be used to submit a form.
Check boxes can be used to submit a user text entry
20. Using a single linked style sheet for an entire web site is
a.
b.
c.
d.
Answer ____
Answer ____
bad because the style sheet can be big and take a long time to download
bad because the style sheet gets downloaded repeatedly every time a page is requested
good because you can control the site’s appearance in one central place
good because it hides all your styles and people can’t steal your website code
Section B
1. What protocol allows multiple objects to be transferred within one TCP connection? [ 2 Marks]
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
____________________________________________________________________________________
2. Write down the codes that will give the following table as output
Name
John Maxwell
Lameck Amutenya
ID
64326
87906
[8 Marks]
Age
75
33
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
____________________________________________________________________________________
Download