100% found this document useful (3 votes)
3K views7 pages

Final Exam: Webpage Design & Development

Uploaded by

adane
Copyright
© © All Rights Reserved
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
100% found this document useful (3 votes)
3K views7 pages

Final Exam: Webpage Design & Development

Uploaded by

adane
Copyright
© © All Rights Reserved
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
  • Exam Overview and Instructions
  • Part I: True/False Items
  • Part II: Matching Items
  • Part III: Multiple Choice Questions
  • Part IV: Workout
  • Answer Sheet

MicroLink Information Technology and Business College

Department of Software Engineering


Final Exam for Webpage Design and Development
Course Code: CSSE-233
Academic Year: 2019/20 G.C
Exam Date: 2023 E.C
Maximum Score: 100%
Time Allowed: 2:00

Name: _____________________________________________ [Link]: ____________________

Dept. ___________________________________________ Section: ___________Year:_______

Program: __________________ Admission: Regular Extension Semester: ______

General Instructions

Write your Name, ID, Department and Section both on the cover page and the answer sheet.

Please make sure the exam has 4 parts and 6 pages including the cover page and answer sheet

Read carefully the instructions and attempt all questions.

Provide your answer only on the separate answer sheet.

Any material shall not be taken in to the exam room unless permitted by course instructor.

Cheating is strictly forbidden and it will lead you academic dismissal.

Please switch off your mobile until the end of the exam.

Please Do Not Turn This Page Until You Are Told To Do So!!

1
Part I. True/False Items (5 Points)

Instruction: Write TRUE if the statement is true and FALSE if the statement is false. (1 points each).

_________1. JPEG causes an image to lose detail when saved.

_________2. By default, the browser displays the image inline.

_________3. A text anchor is one or more words the browser underlines to indicate the fact that it

represents a link.

_________4. An HTML document that contains a FRAMESET definition has no BODY section in its

HTML code.

_________5. Frames will automatically have scrollbars if the content you've specified for them is too

big to fit the frame.

Part II: Matching Items (5 Points)


Instruction: For each apparatus listed below, identify the scientist who invented it and write the
letter of your choice on the space provided. A scientist listed under column ‘B’ may be
matched to the inventions only once. (1 point each)

Column “A” Column “B”


______1. Hypertext A. Allows a user to move from one web page to another by
using a mouse to click on special hypertext links.
______2. Task Oriented Sites B. <!-- Comment →
______3. Document Oriented Sites C. responsible for servicing requests for viewing that web site.
______4. Web server D. Provide information for users with limited interactivity
______5. JavaScript Comment E. Allow the user to interact with information or accomplish
some task.
F. /* Comment */

Part III. Multiple Choice Items (20 Points)


Instruction: Choose the correct answer among the given alternatives and write the letter of your
choice on the space provided on the separate answer sheet. (1 points each).

________1. What is the full form of php?


A. Hyper text markup language B. Hyphenation text markup language

C. Hyper text marking language D. Hyphenation test marking language

2
________2. In a PHP script, how can I retrieve the value of a form element named "zipcode" if the

form has been transmitted using the post method?

A. $a = $POST['zipcode'];
B. $a = $_POST['zipcode'];
C. $a = $FORM['zipcode', 'POST'];
D. $a = decode('zipcode', 'POST');

________3. Choose the correct HTML tag for the largest heading

A. the H6 tag B. the h1 tag C. the h4 tag D. the largest tag

________4. How would you write Hello in an alert box?

A. alert "hello" B. alert ("hello") C. alert ("hello"); D. alertbox ("hello");

________5. Which of the following is not a use of JavaScript?

A. Browser detection B. cookies C. form validation D. user verification

________6. What is the purpose of the HTML <td colspan>?

A. sets the number of rows a table should span

B. sets amount of space between table cells

C. sets number of columns a cell should span

D. sets the number of rows a column should span

________7. How can you make a list that lists the items with numbers?
A. the list tag B. the ul tag C. the ol tag D. the dl tag
________8. to add notes or comments, insert a comment tag using the syntax ______
A. <---comment> B. <!--comment--> C. </--comment> D. <!--comment!-->
________9. A style sheet file has the file extension _____, which distinguishes it from an
HTML file.
A. html B. css C. docx D. htm
________10. An Attribute that is supported by paragraph element?
A. Align B. HREF C. SRC D. Background
________11. The correct syntax to add graphical anchor is________________?
3
A. <A HREF="URL" IMG SRC="Image File Name" ></A>
B. <A HREF="URL"><IMG SRC="Image File Name"></A>
C. <A SRC="URL"><IMG HREF="Image File Name"></A>
D. <A SRC="URL" IMG HREF="Image File Name" ></A>
________12. One of the following is different among the following
A. p{ color: #F00 } B. p { color: #FF0000 }
C. p { color: rgb(255,0,0) } D. p { color: rgb(100%, 0%, 0%) } E. None
________13. Setting row and column in Frameset can be in ________________?
A. Pixels B. Percentage C. By setting asterisk (*) D. All
________14. one of reserved implicit names in frames that enables to load the content
directed to this name into the calling frame.
A. _blank B. _self C. _top D. _parent

________15. if you want to nest additional tables with in a table which element is proper?
A. <TD></TD> B. <caption> C. <TR></TR> D. <Table>

________16. When you using the address element, the address text is displayed in _____ by

default.

A. bold B. Underline C. Italics D. bold italics

________17. Item 1 indicated in the figure above is the ____ element.

A. heading B. Body C. Block-level D. link

________18. Item 2 in the figure above represents the _______ of the style sheet.

A. heading B. Filename C. Body D. folder


4
________19. Item 3 in the figure above represents the style sheet ______.

A. text B. Filename C. Link D. Language

________20. The style sheet rules in a(n) ________ style sheet take precedence over any

rules set in the browser’s internal style sheet or in a user-defined style sheet.

A. internal B. Outside C. Embedded D. External

________21. Adonay has decided to display the text of all h1 headings found within the page

header in green. The style rule applied is _____.

A. header h1 {shade: green;} C. header h1 {green: color;}

B. header h1 {green: shade;} D. header h1 {color: green;}

________22. One of the following is the possible selector in defining CSS?

A. Any HTML tag B. Class C. ID D. All

________23. a tag defines a field in which the end user can type multiple lines of text.

A. <Input> B. <Select> C. <Textarea> D. None

________24. An attribute tells the form how to send its information back to the script.
A. Action B. Method C. Name D. Value
________25. Specifies the maximum number of characters to be allowed for a text or
password field.
A. Size B. Maxlength C. Value D. Type

Part IV: Workout (5 points)

Instruction: write your answer clearly for the following questions and write your answer on the
space provided (2.5 points each).

1. Write the correct php script that connects to a MySQL database?

2. Draw the output of the following code (3 pt's)

<HTML>
<HEAD> <TITLE>Row and Column Spanning</TITLE> </HEAD>
5
<BODY>
<TABLE BORDER>
<TR> <TH COLSPAN=3>DC nationals</TH> </TR>
<TR> <TH>Offense</TH> <TH>Defense</TH> <TH>Goalie</TH> </TR>
<TR> <TD>Husmann</TD> <TD>O'Donnell</TD> <TD ROWSPAN=4>Weinberg</TD> </TR>
<TR> <TD COLSPAN=2>Popplewell</TD> </TR>
<TR> <TD>McGilly</TD> <TD>Longo</TD> </TR>
<TR> <TD>Donahue</TD> <TD>Seymour</TD> </TR>
</TABLE>
</BODY>
</HTML>

MicroLink Information Technology and Business College


Department of Software Engineering
Final Exam for Webpage Design and Development
2023 Academic Year
Answer Sheet

Name: _________________________________________Department: ____________________


[Link]: __________________________________Sec:___________ Year: _________________
Program:_______________________Enrollemnt:______________Semester:________________
ADD: Drop: DD/MM/YYYY: ____________________________

Part I: True False Part III: Multiple Choice Questions (1 points each)
Questions (1 points Part II: Matching
each) Items (1 points each)

6
1. ________ 1. ________ 1. ________ 11. ________ 21. _________

2. ________ 2. ________ 2. ________ 12. ________ 22. _________


3. ________ 3. ________ 3. ________ 13. ________ 23. _________
4. ________ 4. ________ 4. ________ 14. ________
24. _________
5. ________ 5. ________ 5. ________ 15. ________
25. _________
6. ________ 16. ________

7. ________ 17. ________

8. ________ 18. ________

9. ________ 19. ________

10. _______ 20. ________

Part IV: Workout(2.5 points each)

1.

2.

Common questions

Powered by AI

Choosing between inline, internal, or external JavaScript depends on project requirements: inline JavaScript offers quick, specific functionality directly within an HTML element, useful for simple scripts and one-time actions but clutters HTML and is against modern practices due to maintainability issues. Internal JavaScript is useful for a single page where scripts need to be encapsulated within the <head> or <body> and offers a more organized structure. External JavaScript is preferred for large projects due to its modularity, reusability across multiple pages, and separation from HTML, which improves load times and maintainability. External scripts enhance caching benefits and source code maintainability .

A web server's role is to store, process, and deliver web pages to users. It handles requests received from web browsers (clients) and serves them with the requested resources, such as HTML documents, by using HTTP. It can host other components like databases and application code, enabling interaction between users and web applications. The server also performs various tasks such as executing server-side scripts, supporting security protocols, and managing load balancing .

To define a CSS class, use the period '.' symbol followed by the class name (e.g., .myClass) and specify styles within curly braces. For defining an ID, use the hash '#' symbol followed by the ID name (e.g., #myID). Classes are reusable on multiple elements, suitable for grouping similar styles, enhancing consistency and versatility. IDs, however, are unique per page, ideal for targeting single elements for unique styles or JavaScript manipulation. Choose classes for reusability and IDs for specific, one-time styling needs .

The 'DOCTYPE' declaration in HTML is crucial because it instructs the web browser about the version of HTML being used, which in turn affects how the browser renders the page. Without the proper declaration, browsers may render the same HTML code with different results, leading to inconsistencies in the presentation across different platforms. It also triggers standards mode, rather than quirks mode, ensuring that the page is rendered according to the latest standards .

JPEG compression causes an image to lose detail when saved due to its lossy compression algorithm, which reduces file size by discarding some image data. It is a common choice for web images because it significantly reduces the file size, which improves page load times, making it ideal for web use where bandwidth conservation is important .

Internal style sheets are defined within the <head> tag of an HTML document using the <style> tag, providing styling for a single document. External style sheets are separate CSS files linked to HTML documents, allowing the same styling across multiple pages, promoting reusability and easier management. Embedded style sheets are written inside HTML elements using the 'style' attribute, useful for quick, specific styles. The choice depends on the scope and maintainability needs; use external for consistent site-wide presentation, internal for single pages with specific design requirements, and embedded for one-off styles .

The '<td colspan>' attribute in HTML specifies the number of columns a table cell should span. This affects the table layout by allowing a single cell to stretch across multiple columns, which can be useful for creating headers or cells that contain data spanning several smaller columns. It helps organize data into more readable and comprehensible formats, enhancing the presentation and structural flexibility of tables .

The HTML5 <video> element provides developers with a standard method to embed video content that doesn't rely on third-party plugins like Flash, leading to more consistent behavior across different browsers and devices. This makes development easier by reducing compatibility issues and enhances webpage performance and security. For end-users, it means faster load times, reduced resource usage, and improved native features such as controls and tracks for subtitles. It also allows for better accessibility, enabling native browser support for assistive technologies, ultimately leading to richer, more inclusive experiences .

JavaScript plays a pivotal role in client-side form validation, enhancing user interaction by providing immediate feedback about the form input. This preemptive validation reduces server load, as incorrect submissions can be caught before even reaching the server, which improves the user experience by saving time and reducing frustration. JavaScript validation contributes to security by preventing malicious data from reaching the server while also allowing for dynamic, interactive, and user-friendly form designs .

Using a frameset in HTML can hinder search engine optimization (SEO) because search engines may index frames as separate pages, creating challenges in proper indexing and page ranking. Frames can also negatively impact user experience as they disrupt the normal functioning of the back button on web browsers, lead to inconsistent bookmarking, and cause difficulties in accessibility for users with disabilities. Consequently, many developers avoid framesets in favor of more modern and SEO-friendly practices like using CSS for layout .

1
MicroLink Information Technology and Business College
Department of Software Engineering
Final Exam for Webpage Design and
2
Part I. True/False Items (5 Points)
Instruction: Write TRUE if the statement is true and FALSE if the statement is false. (
3
________2.
In a PHP script, how can I retrieve the value of a form element named "zipcode" if the
form has been transmitted
4
A.
<A HREF="URL" IMG SRC="Image File Name" ></A>
B.
<A HREF="URL"><IMG SRC="Image File Name"></A>
C.
<A SRC="URL"><IMG HREF
5
________19. Item 3 in the figure above represents the style sheet ______.
A. text
B. Filename
C. Link
D. Language
________2
6
<BODY>
<TABLE BORDER>
<TR>
<TH COLSPAN=3>DC nationals</TH>
</TR>
<TR>
<TH>Offense</TH> <TH>Defense</TH> <TH>Goalie</TH> </T
7
1. ________
2. ________
3. ________
4. ________
5. ________
1. ________
2. ________
3. ________
4. ________
5. ________
1.

You might also like