Bct2110:Principles Of Computer Repair Question Paper
Bct2110:Principles Of Computer Repair
Course:Bachelor Of Information Technology
Institution: Meru University Of Science And Technology question papers
Exam Year:2010
1
a. What is the relation between the web and the internet? (2 Marks)
b. Using examples describe any two content types and explain why they are useful. (3 Marks)
c. Differentiate the following terms:
i. Static web page and generated web page. (2 Marks)
ii. HTTP and TCP/IP (2 Marks)
d. Using an example, show how an image is defined as a link in HTML. (3 Marks)
e. Write the HTML code to display the following: (5 Marks)
? Soda
? Juice
? Passion
? Mango
? Milk
f. Using an example, show how to link to an external style sheet is accommodated inside the head
section. (3 Marks)
g. Discuss four areas on how JavaScript can be used in web documents. (4 Marks)
h. Write down a PHP script that prints out the message: “God bless Kenya”. (3 Marks)
i. Show using an example how you create and assign a variable in PHP. (3 Marks)
2
QUESTION TWO – 20 MARKS
a. HyperText Markup language (HTML) is the main markup language for creating web pages and other
information that can be displayed in a web browser.
i. What is meant by a markup language? (2 Marks)
ii. Using an example, show the structure of a HTML document. (4 Marks)
iii. Give two examples of editors used to write HTML code. (2 Marks)
b. Using the output below as a guide, write down HTML code to send email from a form:
Send e-mail to someone@example.com: (12 Marks)
QUESTION THREE – 20 MARKS
a. CSS was introduced together with HTML 4, to provide a better way to style HTML elements.
(2 Marks)
i. Other than external (i.e external css file), list two other ways CSS can be added to HTML.
(2 Marks)
ii. Using any of the two techniques you listed in a(i), use an example showing how CSS is
embedded into a HTML file. (3 Marks)
b. Write down the HTML code to generate the following table and embed CSS to: (15 Marks)
i. Specify a blue border for the table
ii. Set the background colour of the page to white
The Executive
First name Last name
Uhuru Kenyatta
William Ruto
3
QUESTION FOUR – 20 MARKS
a. How is JavaScript different from other programming languages such as C or C++? (2 Marks)
b. JavaScript can be used to validate data in HTML forms before sending off the content to a server.
Outline four areas in which form data can by typically checked. (4 Marks)
c. Write down HTML code to generate the forms as shown below and include a JavaScript function that
alerts the user if the field is left blank. (14 Marks)
QUESTION FIVE – 20 MARKS
a. What can be contained in a PHP file and what is its default file extension? (4 Marks)
b. In PHP, what is meant by the statement scope of a variable? List any three variable scopes.
(4 Marks)
c. PHP is a loosely typed language. Explain. (2 Marks)
d. What is the result in PHP when the following operators are used: (2 Marks)
? 5*4
? 10%8
? Go.To
e. Write down PHP scripts to carry out the following:
i. Create a string variable, assign it a value and output the value of the variable (3 Marks)
ii. Output “Have a good day!” if current time is less than 4pm local time. (4 Marks)
More Question Papers