0% found this document useful (0 votes)
86 views

Internet Based Programing

Best revision material

Uploaded by

Song Benard
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views

Internet Based Programing

Best revision material

Uploaded by

Song Benard
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

REGIONAL CURRICULUM MANAGEMENT COLLEGE

P.O. Box11518– 00100 Nairobi-Kenya


Tel: +254 (0)727525000, +254 (0)727525000, +254 (0)727525000
Website: www. regionalcollege.ac.ke Email: [email protected]

College Examination 2023/2024


COURSE WORK FOR OCTOBER EXAMINATION FOR THE ININFORMATION
COMMUNICATION TECHNOLOGY

2920: INTERNET BASED PROGRAMMING

DATE: OCTOBER 2023 TIME: 2 HOURS

INSTRUCTIONS: Answer all the questions

QUESTION ONE (30 MARKS)

a) Differentiate between html tags. (4 marks)


(i) <br> and <p>
(ii) <UL>. . </UL> and <OL>..</OL>
(iii) <STRONG> And <B>
(iv) <DD> and <DT>
b) Briefly describe the purpose of any two face attributes used to display formatted html
text. (4 marks)
c) Distinguish between external and internal document referencing as used in html.
(4 marks)
d) Differentiate between POST and GET methods as used in web scripting. (2 marks)
e) Describe the purpose of the following as used in html forms. (4 marks)
(i) Radio buttons
(ii) Check boxes
f) Use a diagram to explain the term DOM as used in web design. (4 marks)
g) Write a JavaScript code embedded in HTML code to assign 2 numbers to variables,
add the two numbers and display the result. (3 marks)
h) Write the format of incorporating a JavaScript code into the head section of a HTML
script. (4 marks)
i) Briefly explain the process of creating a remote web server. (3 marks)
©2023 Regional Curriculum Management College
Course Work Exam October 2023 Page 1
Best Wishes from ICT Department
QUESTION TWO (20 MARKS)

a) Differentiate between; (4 marks)


(i) For and while statements
(ii) || and && operators
b) Design a JavaScript program that will allow users to input a name and display the
name entered. (6 marks)
c) Write a JavaScript program to input student name, maths, science and English then
calculate total and average marks, indicate pass when average is greater than 50 or
otherwise fail remark. (5 marks)
d) Write HTML code that will be able to generate the following information in a web
browser. (5 marks)

REGIONAL CURRICULUM MANAGEMENT COLLEGE


ADMISSION NUMBER NAME ADMISSION HEAD OF
DATE DEPARTMENT
RCM/25/2023 SHARON 25
H.O.D
RCM/28/2023 CEDRIC 28 MR. BENARD
ICT
RCM/26/2023 ARLVIN 26

QUESTION THREE (20 MARKS)

a) One of the most common uses of event handler is to display a message on the status
line when the user moves a mouser over a link. Write JavaScript code to:
(i) Display the message “Order a product” on the status line. (3 marks)
(ii) Clear the status line. (2 marks)
b) An organization would like to design and upload a website where users are required to
interact with the site and the site can validate users’ inputs. Explain to the
management the advantages and disadvantages of using JavaScript as compared to
other scripting languages. (5 marks)
c) Write a JavaScript statement that will allow voters to input their names and age then
validate if age is greater or less than 18. If it is greater than 18, the message “You are
allowed to vote” should be displayed otherwise the message “you are not allowed to
vote”. (8 marks)

d) Write PHP in full (2 marks)

©2023 Regional Curriculum Management College


Course Work Exam October 2023 Page 2
Best Wishes from ICT Department
QUESTION FOUR (20 MARKS)
a) Write a HTML code that will display the following statement in browser (6mks)

SOFT WARE (PROGRAMS)


These are instructions given to computer to do useful work. They tell a computer what to do,
how and what to do that. There are two types of software namely
System software
Software manages and controls the computer hardware operations. It loads in duplication
software in a computer.
Application software
This is a collection of related programs that are used to perform various jobs/Tasks. Major
application software includes;
I. Word processing
II. Electronic spreadsheets
Word processing software
Word-perfect
MS word
Word star
Multi mate

a) Write a JavaScript embedded in HTML statement to create a form having 2 textboxes, radio
buttons, a checkbox and a reset button. On clicking the reset button, the entire form is
reset
(Cleared). (6 marks)

b) Write html code that will be able to create links to the following. (6 marks)
(i) A picture file adminblock.mpeg
(ii) A web page www.nba.com
(iii) A section named section1 within the document

©2023 Regional Curriculum Management College


Course Work Exam October 2023 Page 3
Best Wishes from ICT Department
c) Explain the importance of Common gateway Interface in web scripting. (4 marks)
d) Explain the function of the following HTML tags. (4 marks)
(i) <frameset>
(ii) <form>

QUESTION FIVE (20 MARKS)

a) Briefly describe 4 data types used in JavaScript variables. (4 marks)


b) Mr. Benard an ICT lecturer at Regional curriculum management college was tasked to
develop a website where a salesman car enter product name, quantity and price of a
product then total price will be calculated and discount offered depending on total
price as follows:

Total price Discount

Over 100000 10% of total price

Between 50000 and 100000 5% of total price

Below 50000 No discount

Design a website that will facilitate field salesmen to calculate discount and net price where
net price = total price – discount. (6 marks)

c) Design a JavaScript code to create 2 radio buttons named “Square” and “cube” and a
text box to input a number such that if the square radio button is active, the number
will be squared and if the cube radio button is active, the number will be cubed.
(5 marks)
d) Before 1990 Internet connection was expensive with only a few organizations in the
developed countries connected to the internet. Today internet is one of the most
popular means of communication and sharing information. Discuss the factors that
have contributed to a widespread use of internet. (5 marks)

©2023 Regional Curriculum Management College


Course Work Exam October 2023 Page 4
Best Wishes from ICT Department

You might also like