Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Student Name:
Student Number:
This test is closed book. You have 1 hour to complete this test.
Answer all the questions using your scantron form.
1. What is the term used to describe image file that contains multiple small graphics?
a. thumbnail image
b. sprite
c. image link
d. viewport
2. Choose the example below of a descendant selector that configures the anchor tags within the
a. #content a
b. .content a
c. a#content
d. content#a
3. The _______ pseudo-class configures the styles that will apply when the mouse is placed over a hyperlink.
a. :hover
b. :click
c. :active
d. :over
1
4. _________ flow displays the elements on the page in the order they appear in the web page source code.
a. default
b. source code
c. browser
d. normal
5. Use ___________ positioning to slightly change the location of an element in relation to where it would
a. absolute
b. static
c. relative
d. fixed
6. The CSS to create the class called myfloat that floats to the right of the other page content, has a 10px mar-
7. Use ___________ positioning to configure the location of an element to remain the same and to not move
even when the web page is scrolled within the browser viewport.
a. absolute
b. static
c. relative
d. fixed
2
8. Use the _______________ property to eliminate the bullets from an unordered list.
a. bullet-image
b. list-style-none
c. list-style-type
d. list-style-image
9. Use ____________ positioning to precisely configure the location of an element outside of normal flow.
a. absolute
b. static
c. relative
d. fixed
10. The _______ pseudo-class configures the styles that will apply when a hyperlink is clicked,
a. :hover
b. :click
c. :active
d. :over
11. If an element is configured with ___________ the other content on the page will appear to its left.
a. position: left;
b. position: relative;
c. float :left;
d. float: right;
3
12. __________________ will cause an object not to display.
a. display: block;
b. display: 0px;
c. display: none;
d. display: fixed;
13. Use the ________ property along with the left, right and/or top property to precisely configure
a. position: absolute;
b. position: relative;
c. position: float;
d. absolute: position;
a. float or clear
b. clear or overflow
c. position or clear
d. overflow or float
15. From the choices below select the correct order to code CSS pseudo-classes.
4
16. Which value for the display property is useful when configuring horizontal navigation within an
unordered list?
a. none
b. block
c. inline
d. fixed
17. Select the example below that could be used to clear a right float.
a. clear: right;
b. clear: left;
c. right: clear;
d. overflow: right;
18. Select the example below that configures a container to clear all floated elements that are within
the container.
a. clear: both;
b. overflow: all;
c. overflow: auto;
d. clear: all;
19. Select the property that is useful to remove the underline from a hyperlink.
a. font-style
b. underline
c. text-decoration
d. u
5
20. The _______ pseudo-class configures the styles that will apply for a hyperlink that has not been visited by
the user.
a. :unvisited
b. :link
c. :visited
d. :new
21. When used as a selector in CSS, the _______ character represents the universal selector.
a. #
b. &
c. *
d. /
22. Use the _______ attribute in the HTML link element to associate a web page with a style sheet for print-
ing.
a. media="print"
a. out="printer"
b. media="paper"
c. media="screen"
23. The _______ property configures the stacking order of a positioned element on a web page.
a. z-index
b. stacking
c. display
d. stack
6
24. CSS Flexible Box Layout is best suited for:
d. floating layouts
e.
b. two-dimensional layouts
d. floating layouts
a. order
b. container
c. display
d. flex
7
28. When using flexbox layout, setting justify-content: space-between; will configure the following:
c. Flex items begin at main start and end at main end with equal empty space between flex
items.
d. Flex items are evenly distributed in the flex container with space before the first flex item and
b. configures the amount of space a flex item takes up and how much it will shrink or
grow
30. The ________ meta tag configures scale and dimension on mobile web page display.
a. flexible
b. viewport
c. fragment identifier
d. media query
31. A ______ determines the capability of the mobile device, such as screen resolution, and directs browsers
to CSS.
a. flexible image
b. viewport
c. media query
d. feature query
8
32. The ______ property configures a grid container.
a. container
b. grid
c. flex
d. order
33. When using grid layout, grid _____ delineate grid rows and grid columns.
a. gaps
b. lines
c. cells
d. orders
34. When configuring flexbox or grid layout, the ______ property can be used to change the sequence of the
a. gap
b. fr
c. skip
d. order
35. A hyperlink with the _____ scheme may cause a web browser on a mobile device to initiate a phone call.
a. phone:
b. sms:
c. tel:
d. mobile:
9
36. When configuring a grid layout, the flex factor unit
38. Use the expression ___________________ in a media query to target devices with screens up to 480 pix-
els in width.
a. (width: 480px)
b. (max-width: 480px)
c. (min-width: 480px;)
d. (size: 480px;)
39. Use the ______ value for the CSS display property to configure an element to not display.
a. block
b. none
c. 0
d. hide
10
40. The purpose of the ____________ element is to provide a method for a browser to display dif-
a. media
b. target
c. picture
d. sizes
41. The purpose of the imagd element’s ______ attribute is to provide a method for a browser to
display different images depending on specific criteria indicated by the web developer.
a. picture
b. srcset
c. sizes
d. media
42. Configure a _______ property on a grid item to configure the area in rows that is reserved for
a. grid-gap
b. grid-rows
c. grid-template-rows
d. display
43. The _______ property informs the browser to provide empty space or gutters between grid
tracks.
a. grid
b. grid-gap
c. grid-gutter
c. grid-template
11
44. The file extensions .avi, .m4v, and .ogv are used for:
a. audio files
b. video files
45. The file extensions .wav, .mp3, and .ogg are used for:
a. audio files
b. video files
b. supply text descriptions of audio and video files that appear in your web pages
b. a markup language
c. an HTML5 element
12
48. Use the _______ attribute on a video element to display user controls for the video player.
a. poster
b. player
c. controls
d. image
49. Use the _______ attribute on a video element to display an image that represents the movie.
a. poster
b. player
c. controls
d. image
a. The use of a copyrighted work for purposes such as criticism, reporting, teaching, scholarship, or
research.
13
51. The _______________ element was widely used but never part of the W3C standard until HTML5.
a. object
b. applet
c. embed
d. canvas
52. The _________ element is a void element that specifies a media file and a MIME type.
a. object
b. source
c. param
d. iframe
a. object
b. source
c. canvas
d. iframe
14
54. The CSS3 _____________ property allows you to rotate, scale, skew, or move an element.
a. display
b. transform
c. transition
d. hover
55. The CSS3 _____________ property provides for changes in property values to display in a smoother
a. display
b. transform
c. transition
d. hover
56. The _______________ element is a placeholder in which dynamic graphics can be configured.
a. video
b. script
c. embed
d. canvas
57. Use the ________ element to associate JavaScript with a web page.
a. object
b. script
c. embed
d. canvas
15
58. When coding an audio element, the code placed before the closing audio tag is considered to be:
a. invalid
b. fallback content
d. required
59. Scenario: The Firefox browser is being used to display a web page with a video but no video controls dis-
play —only the poster image is shown. Read the following code snippet and select the reason for the incorrect
60. Select an advantage of displaying HTML5 video in a web page from the list below:
16
61. Select a disadvantage of displaying Flash media in a web page from the list below:
62. Select a transition-timing-function value which configures a transition effect that begins at a constant
a. ease
b. linear
c. ease-in
d. ease-out
63. Scenario: The Internet Explorer 8 browser is being used to display a web page with an audio player but
the audio element displays nothing on the page. Read the following code snippet and select the reason for the
<audio controls="controls">
<source src="podcast.mp3" type="audio/mpeg">
<source src="podcast.ogg" type="audio/ogg">
</audio>
c. There is no fallback content to display for browsers that do not support the audio element.
17
64. JavaScript can be described as:
a. Ajax
b. jQuery
c. Flash
d. Java
66. Select the term below which is a protocol that provides a method for software components to communi-
a. JavaScript
c. Java
d. Canvas
67. Select the term below which names an HTML5 API that allows web page visitors to share their geo-
graphic location.
a. geodata
b. web storage
c. canvas
d. geolocation
18
68. When a browser supports the details and summary elements,
a. the initial display does not show the content contained within either the details and or summary elements.
b. the initial display shows only the content contained within the summary element.
c. the initial display shows only the content contained within the details element but not the summary ele-
ment.
d. the initial display shows the content contained within both the details and summary elements.
69. Select the term below which names an HTML5 API that is used in progressive web applications:
a. geolocation
b. service workers
c. web storage
d. canvas
70. Select the HTML code to configure a button that, when clicked, will automatically reset form
a. <input type="reset">
c. <reset>
d. <form action="reset">
19
PART B
TIME ALLOWED: 2HRS
INSTRUCTIONS: You are allowed to use any resources of your choice.
(Open book)
Upload your file to the drop box named TEST2
20
b) On clicking on Next button it should display the following form
21