UNIVERSITY EXAMINATIONS: 2016/2017
EXAMINATION FOR THE DIPLOMA IN BUSINESS INFORMATION
TECHNOLOGY
DBIT406 INTERNET APPLICATION PROGRAMMING
DATE: AUGUST, 2017 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.
QUESTION ONE [30 MARKS] – – COMPULSORY
(a) (i) Define the term ‘function’ as used in programming [2 Marks]
(ii) Write JavaScript program that would prompt a user to enter two numbers. The program
should then display the user entered number one and number two results on an alert box.
[6 Marks]
(b) Complete the table below by describing what each of the top level domains (TLDs) denotes: –
[4 Marks]
(c) Write HTML code to generate the webpage whose contents are lists and graphics about how
to make a fruit cake as shown below:- [9 Marks]
(d)The Interne has been described in various ways.
In reference to the above statement, evaluate each of the following descriptions of the Internet:-
(i) So close….yet so far away [3 Marks]
(ii) A knowledge treasure bank [3 Marks]
(iii)An international market [3 Marks]
QUESTION TWO [20 MARKS]
(iv) (a)Define the term ‘Active Server Pages (ASP) as used in Internet programming [2
Marks]
(b)Describe the following lists as used in HTML documents:-
(i) Ordered list [2 Marks]
(ii) Un-ordered list [2 Marks]
(c)Giving appropriate examples, explain the following types of websites: – [4 Marks]
(i) Commercial website
(ii) Individual website
(d)Write JavaScript code embedded onto an HTML page to display a button named “Click Me”
that displays a pop message “This page cannot be displayed” when the user clicks on the button
[10 Marks]
QUESTION THREE [20 MARKS]
(a) Outline four advantages of HTML [4 Marks]
(b)List and explain five factors you would consider while designing and implementing an E-commerce website [5 Marks]
(c)Explain four differences between Java programming language and JavaScript [8 Marks]
(d) Name three web authoring tools [3 Marks]
QUESTION FOUR [20 MARKS]
(a) Describe each of the following terms as used in Internet:- [6 Marks]
(i) Uniform Resource Locator
(ii) Hypertext
(iii)Browser
(b)Write HTML code that will display a frame with three rows of size 10%, 80% and 10% with
the first showing the content of file1.html, second showing the contents of file2.html and third
showing the content of the file3.html. [6 Marks]
(c) Distinguish between static and dynamic web pages [4 Marks]
(d)Distinguish between code editor and code generator as used in web authoring [4 Marks]
QUESTION FIVE [20 MARKS]
(a) Figure 1 shows a user interface for a voting system in a certain county. Use it to answer the
question that follows:-
Figure 1
Required: write HTML code that could generate the interface when run on a web browser [8
Marks]
(b)Explain the term animation as used in JavaScript [2 Marks]
(c)Write HTML tag that could be used to create each of the following links:
(i) Link a page named homepage.html to an image named Pic.png [2 Marks]
(ii) Link a sound file named song.mp3 from a page named songs.html [2 Marks]
(d)List and explain three benefits of Internet technology to an organization [6 Marks]