Docsity

Web Development Foundation Practice Questions, Exams of Web Design and Development

Toggle sidebar
bg1
C779 - Web Development Foundation (my study set)
1. Prior to HTML5, structuring a Web-
site using style sheets with the
<div> tag and its id attribute has
been an acceptable practice to
govern the document's structure.
HTML5 has introduced five new ele-
ments for more effective document
structuring. Which choice correctly
lists these five HTML5 structure el-
ements?
A) <nav>, <header>, <footer>,
<body>, <footnote>
B) <nav>, <banner>, <body>, <foot-
er>, <sideimage>
C) <nav>, <banner>, <article>,
<header>, <footer>
D) <nav>, <article>, <aside>, <head-
er>, <footer>
D) <nav>, <article>, <aside>, <header>, <footer>
HTML5 with CSS has introduced a more effective and
simple way to structure Webpages. Instead of using
the <div> tag as a multi-use element with its array of
attributes, the developers of HTML5 created specific
elements to define the document structure. These ele-
ments include <header>, <footer>, <nav>, <article> and
<aside>.
2. What is the RGB code for the color
red?
A) 255,0,0
B) 0,0,255
C) FF0000
D) 00FFFF
A) 255,0,0
The RGB code for red is 255,0,0, which indicates full red
(R) value, no green (G) value and no blue (B) value. The
corresponding hexadecimal (not RGB) value for red is
FF0000. The code 0,0,255 is RGB for blue and the code
00FFFF is hex for a green-blue color. You can specify
colors for the page background in HTML and CSS docu-
ments using words for values, such as "teal" and "tan".
Alternatively, you can also use a hexadecimal code to
specify color values. Colors are often specified in terms
of their RGB values. RGB stands for Red Green Blue. You
1 / 28
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c

Partial preview of the text

Download Web Development Foundation Practice Questions and more Exams Web Design and Development in PDF only on Docsity!

  1. Prior to HTML5, structuring a Web- site using style sheets with the tag and its id attribute has been an acceptable practice to govern the document's structure. HTML5 has introduced five new ele- ments for more effective document structuring. Which choice correctly lists these five HTML5 structure el- ements? A) , , , , B) , , , , C) , , , , D) , , , , D) , , , , tag as a multi-use element with i attributes, the developers of HTML5 create elements to define the document structure ments include , , , .
  2. What is the RGB code for the color red? A) 255,0, B) 0,0, C) FF D) 00FFFF

A) 255,0,

The RGB code for red is 255,0,0, which ind (R) value, no green (G) value and no blue corresponding hexadecimal (not RGB) valu FF0000. The code 0,0,255 is RGB for blue 00FFFF is hex for a green-blue color. You colors for the page background in HTML a ments using words for values, such as "tea Alternatively, you can also use a hexadeci specify color values. Colors are often spec of their RGB values. RGB stands for Red G

may know that if you were mixing paint, the red, green and blue together creates a rath color. But on a monitor screen, you are mix the mixture of red, green and blue light pro which is the presence of all colors. Black is of all colors. In RGB code, the higher the n representing a color, the lighter that color w lower the value, the darker the color. Color in RGB values ranging from 0 to 255. The value FF represents 255. Therefore, the he value #FFFFFF represents the highest pos all three RGB colors, producing white. The value #000000 represents the absence of or black. The number symbol ( # ) is not re current generation browsers, but you shou this symbol for full backward-compatibility.

  1. You have created a Webpage in HTML. When it fails W3C validation, you try changing the HTML stan- dard to make your code more com- pliant. But the page fails W3C val- idation tests each time, regardless of standard. Which element that you used to structure the page is failing to vali- date? A) B) C) D) Today, the use of the tag to structu considered improper practice by the W3C. structured with the tag will not pas dation tests, no matter what standard you

compliance factor? A) You must make information equally available in color and with- out color. B) You must provide text-based al- ternatives to all non-text content (e.g., Java applets). C) You must make documents avail- able without requiring an associat- ed style sheet. D) You must identify all row and col- umn headers when using tables for data. clude: Providing text-based alternatives to all non (e.g., Java applets). Ensuring that all images have text-based d so that sight-impaired visitors can access s screen-reader technology. Providing forms that are easily read by scr technology. The other three answer choices are Websi provided by Section 508 of the Rehabilitati

  1. What is a metalanguage? A) A language that is used to de- scribe the data from which Web- pages are created B) A language that is used to format Webpages C) A language that is used to create other languages D) A language in which you need not define your own document lan- guage rules C) A language that is used to create other
  2. _____________________ is a meta- language used to create oth- er languages, including HTML. ___________________ is a powerful Standard Generalized Markup Language (

markup language that describes documents by organizing concepts separately from their visual presen- tation

  1. SGML essentially requires that you create, or define, your own doc- ument language rules. This set of language rules is called the ____________________. Document Type Definition (DTD) Once the DTD is established, then all elem document must conform to it.
  2. ________________________ is a set of rules contained in a simple text file that defines the structure, syntax and vocabulary as it relates to tags and attributes for a corresponding document. The Document Type Definition (DTD)
  3. Which service provides the ability to automate the planning and op- erations of an entire organization? A) Software-as-a-service (SaaS) B) Common Gateway Interface (CGI) C) Web development project cycle D) Enterprise resource planning (ERP) D) Enterprise resource planning (ERP) Enterprise resource planning (ERP) is the mate the planning and operations of an en zation. Depending on the organization, this might include hiring, termination, manufact marketing. Enterprise resource planning is typically provided by a cloud service provid
  4. Which of the following is no longer necessary when you use HTML5 to develop Webpages? A) Installing a third-party plug-in to include HTML5 provides modern requirements for with fewer plug-ins, such as the ability to s

provided with text-base alterna- tives. C) All images should have text-based descriptions so that sight-impaired visitors can access sites through screen-reader tech- nology. D) Disabled people need to be able to use development tools. that sight-impaired visitors can access site screen-reader technology.

  1. What does Extensible Hypertext Markup Language (XHTML) use to format a page's appearance in the Web browser? A) Hypertext Markup Language (HTML) B) Document Type Definition (DTD) C) Extensible Markup Language (XML) D) Cascading Style Sheets (CSS) A) Hypertext Markup Language (HTML) Hypertext Markup Language (HTML) desc document's visual layout, and Extensible M guage (XML) allows you to describe the fu context of the information contained in a do Cascading Style Sheets (CSS) are rules in text file that determine how to display HTM your Webpages. The Document Type Defi a set of rules contained in a simple text file the structure, syntax and vocabulary as it r and attributes for a corresponding docume
  2. Which site planning tool describes an outline for a Web presence? A) Storyboard B) Site map C) Wireframe D) Site diagram C) Wireframe A wireframe is an outline for a Web presen process of creating a wireframe is called w A site diagram and a storyboard both desc site plan. A site map is a brief, hierarchical represen

Website that enables visitors to quickly ide the site and navigate to them.

  1. Which of the following requires that all electronic and information technology developed, procured, maintained or used specifically by federal agencies be comparably ac- cessible to users with disabilities? A) Section 508 of the Rehabilitation Act B) Americans with Disabilities Act (ADA) C) Web Content Accessibility Guide- lines (WCAG) D) Web Accessibility Initiative (WAI) A) Section 508 of the Rehabilitation Act On June 21, 2001, the U.S. government im Section 508 of the Rehabilitation Act: Elec Information Technology Accessibility Stand 508 requires that all electronic and informa nology developed, procured, maintained o federal agencies be comparably accessible disabilities.
  2. ____________________________ was en- acted to protect the civil rights of people with disabilities. This law in- cludes mandates that electronic in- formation be accessible to users with disabilities. A) Section 508 of the Rehabilitation Act B) Americans with Disabilities Act (ADA) C) Web Content Accessibility Guide- lines (WCAG) D) Web Accessibility Initiative (WAI) B) Americans with Disabilities Act (ADA)

D) To specify the hyperlinks con- tained in the page

  1. What is the difference between a container tag and an empty tag? A) Container tags are supported in HTML5 while empty tags are not. B) Container tags do not require the use of a closing slash / while empty tags do. C) Container tags come in pairs that enclose content, while empty tags do not directly format content and thus come alone. D) Container tags are enclosed in alligator brackets < > while empty tags are enclosed in parentheses ( ). C) Container tags come in pairs that enclo while empty tags do not directly format con come alone. Container tags — tags that come in pairs. tags use starting and ending tags. For exa you want emphasis (italic) text, you will con between starting and ending
    tags are also called the opening and closin Empty tags — tags that stand alone. Empt those that do not directly format a specified and therefore one tag can execute the inst example, if you want to create a line break the
    tag at the point you want the brea Empty tags are also referred to as self-clos
  2. Which of the following statements about HTML5 is true? A) HTML5 documents start with the structural elements and . B) HTML5 documents are back- ward-compatible to older browser versions. C) The DTD file is no longer required in HTML5. C) The DTD file is no longer required in HT Previous HTML and XHTML documents w from HTML5 documents because the DO laration included a Document Type Definiti which referenced a specific HTML or XHTM The DTD file is no longer required in HTML

D) The declaration is no longer required in HTML5.

  1. Consider the following line from an HTML document:

    This code shows an example of: A) an invalid HTML tag. B) a container tag. C) an empty tag. D) a stand-alone non-empty tag. D) a stand-alone non-empty tag. There are two types of tags: container and tainer tags come in pairs; empty tags stand tainer tags use opening and closing tags. C tags are also known as non-empty tags. Th notation for stand-alone non-empty tags, in opening and closing tags are combined, pl slash ( / ) character after the element name closing wicket), rather than before the elem like in a standard closing tag.

  2. Which technique should you use to indent a paragraph or create addi- tional spaces between words on an HTML page? A) Insert a character break. B) Insert a line break. C) Press the spacebar. D) Insert non-breaking spaces. D) Insert non-breaking space The HTML special character code for a no space is . You can insert non-break you want to create indentations in a paragr ate additional spaces between words. You character to be useful because more than sive space is ignored in HTML. However, a space is never ignored.

  3. What is the default value for align- ing images relative to text using CSS? A) middle B) left C) top D) bottom D) Bottom The values that you can use for aligning im to text using CSS are: Bottom - The bottom of the image is aligne baseline of adjoining text. This is the defau Middle - A vertical - not horizontal - alignm

Default is 100%. To change it do this:

  1. Which of the following can be con- sidered an advantage of PNG im- age files? A) They are the most popular for- mat for animated images. B) They feature lossless compres- sion, using an uncopyrighted algo- rithm. C) They have a smaller color pallet which is easier to render. D) They avoid interlacing in order to speed up Webpages. B) They feature lossless compression, usin righted algorithm. Portable Network Graphics (PNG) images compression, unlike standard JPEG comp the compression used in the PNG image fo copyrighted, which has helped ensure dev user agent vendor support. The PNG format supports 48-bit color, a la than the 8-bit and 24-bit pallets offered by JPEG respectively.PNG compression supp ing. Furthermore, interlacing is generally u slow download speeds, not exacerbate the The GIF format is more popular for animat than the PNG format.
  2. Which of the following would be the best method to use for float- ing images to the left and right of text in HTML5 if you are developing sites with multiple pages? A) External CSS classes B) The inline CSS style attribute C) The height attribute of the element D) The width attribute of the element A) External CSS classes The syntax for the CSS class entries are a img.floatleft { float: left; margin: 5px; }
  1. Consider the following HTML code: A-D What does the internal hyperlink in this example do? A) It links to the home page of a separate file on the Internet. B) It bookmarks the image hyper- link on your Webpage. C) It links to an internal anchor in an external file. D) It links to an internal anchor in an internal file. C) It links to an internal anchor in an extern Suppose you want to link to a specific poin page without first accessing the top of that link to an internal anchor in an external file following syntax: link age
  2. When you create an internal hyper- link with the anchor element, which attribute should you use to define the area of the Webpage to which the hyperlink will link? A) The id attribute B) The img attribute C) The href attribute D) The link attribute A) The id attribute An internal hyperlink requires an internal b called an anchor, to identify the point that t reference within the page. The syntax for creating an internal link is a target anchor text or i both) other page content here text/images linkin getArea1
  3. Which CSS table property should you use if you want to combine The CSS border-collapse property collapse of adjacent cells into a single border instea

gram to process the script. B) Cascading Style Sheets (CSS) can be used for all form styles but are not yet supported by most browsers. C) Advanced features are now avail- able for better control of validation and input control. D) Cascading Style Sheets (CSS) are used for all form styles. Advanced features are now available, such elements and attributes, and
A) The cols attribute B) The maxlength attribute C) The width attribute D) The size attribute rows - Specifies the number of rows of tex the box.

  1. In a raw text string, which of the fol- lowing is used to delimit name=val- ue pairs? A) Ampersands ( & ) B) Quotation marks ( " " ) C) Plus signs ( + ) D) Pipe symbols ( | ) A) Ampersands ( & ) Additional Information: Assume that a seve residing on a Web server receives a raw te a Web browser that resembles the followin Name=Dimitri+Pappas&Email=stu- [email protected]&AddToList=yes
  2. What occurs when the Web server receives raw text strings from the client? A) A server-side script parses and formats the raw text strings into a computer-readable format. B) A server-side script parses and formats the raw text strings into a human-readable format. C) A server-side script replaces spaces with plus signs ( + ) and inserts ampersands ( & ) between name=value pairs in the raw text strings. D) A server-side script strips the val- ues from the name=value pairs and B) A server-side script parses and formats strings into a human-readable format. Ex. Name=Dimitri+Pappas&Email=stu- [email protected]&AddToList=yes After the server receives this information, a script can parse and format the raw text st human-readable format similar to the follow Name: Dimitri Pappas Email: [email protected] Mailing List: Yes

ements for a raw text string, which is then processed by the Web serv- er? A) The method attribute B) The action attribute C) The name attribute D) The type attribute pair. The tag's name attribute orga mation input by the user into name=value p ample, the Web form in the preceding figur user input according to the following code.

  1. The element supports which three formats? A) MP3, Ogg and Wav B) MP4, Ogg and Wav C) Ogg, Wav and WebM D) MP3, MP4 and Ogg A) MP3, Ogg and Wav element supports three formats: M and Wav. element also supports three forma WebM and Ogg.
  2. Which of the following coords at- tribute values defines a rectangle? A) coords="x1,y1,radius" B) coords="x1,y1,x2,y2,x3,y3,x4,y4" C) coords="x1,y1,x2,y2" D) coords="x1,y1" C) coords="x1,y1,x2,y2"
  1. Image layers are supported in which of the following file formats? A) GIF B) JPG

D) PNG

When you design an image, each individua of the image can be created on its own lay ing that component to be manipulated inde of the entire image. A series of layers will c

C) BMP

D) PNG

entire image, and an image can have as m necessary. Layers are supported in the PN but are not supported by GIF, BMP or JPG

  1. Which of the following is an open standard for Web images that pro- vides compression, searchable text and zooming features, in addition to animation? A) Scalable Vector Graphics (SVG) B) Adobe Flash C) Java applets D) Microsoft Silverlight A) Scalable Vector Graphics (SVG) Unlike Java, Flash and Silverlight, Scalable ics (SVG) is an open standard. However, S similar features in addition to animation, in Compression - The compression algorithm SVG allow you to create high-quality image that are smaller in file size than other form images have more efficient compression th GIF images. Searchable text - Text within SVG images and searched. Zooming - You can zoom in on portions of without losing image quality.
  2. Which HTML tag should you use to define a hot spot region on an im- age map? A) The tag B) The tag C) The tag D) The tag C) The tag