We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Web Programming Revision Exercise
(a) What is the W3C? How important is it for web developers?
(b) What is the difference between web design and web development? (c) What is a database engine? Give two examples (d) What are HTML Frames? Explain and give an example of how they are used (e) What are the limitations of using HTML Frames? (f) Describe the following terms used in web programming and state their benefits i. Client server architecture ii. Dynamic content iii. Client-side programming iv. JavaScript (g) What do pixelated images on a website result from? (h) Which of the following is true of JPEG images? i. They can hold more colours than GIF images ii. They support background transparency iii. They are not supported by Netscape or Microsoft browsers iv. They are suitable for black and white line drawings (i) Write a JavaScript function that checks that all the required fields are filled in first
(j) Write a JavaScript program that displays the current time
(k) Write a JavaScript program that displays the current date minus four days and plus two months on the web page. Note: That is if the current date is 30/8/2015, then the output should be 26/10/2015 (l) A construction company would like to keep records of all their employees. Create a database “Mjengo” Create a table within database Mjengo and call it “Mjego_Employees” Mjengo_Employees should contain the employee’s id, the employee’s first name and last name, email address, their username, password and their role within the company. (m) Create an employee registration page form for Mjengo employees through which they can enter the above details into the Mjengo Construction Company’s system (n) Charlie is a student who has classes Monday to Friday, from 9am to 5pm. He is in class exactly 50% of the time. First, write a PHP function isPresent() that returns TRUE with 50% probability, and FALSE otherwise. Below the function, write code to generate a webpage that displays “Charlie is in class!” or “Charlie is not in class!” using the isPresent() function. (o) Create a PHP script that displays 1-2-3-4-5-6-7-8-9-10 on one line. There will be no hyphen(-) at starting and ending position. (p) Write HTML and CSS code that gives the following output: Note: Do not include the CSS code on this HTML file. Save it separately as “style.css” and ensure to include code for importing the styles to your HTML code.