wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

BITM2113 QUIZ HTML5

Total questions: 20

Worksheet time: 7mins

Name
Class
Date
1.

In HTML, which attribute is used to specify that an input field must be filled out?

a)

required

b)

validate

c)

formvalidate

d)

placeholder

2.

Which of these should not be used in HTML5?

a)

<h6>

b)

<strong>

c)

<center>

d)

<head>

3.

Which method is used to get user’s position?

a)

getCurrentPosition()

b)

getDirectPosition()

c)

post()

d)

getDirection

4.

What does getCurrentPosition() returns?

a)

latitude

b)

longitude

c)

direction

d)

coordinates

5.

Which of the following technique is not for the mobile browser to identify the location of a user?

a)

GPS

b)

IP based position

c)

WIFI based position

d)

A-GPS

6.

Which property is like the GPS in car?

a)

watchPosition()

b)

clearWatch()

c)

getCurrentPosition()

d)

showPosition()

7.

Does geolocation (online) need HTTPS?

a)

Yes

b)

No

8.

Which of the following feature is a part of HTML 5?

a)

Canvas

b)

Audio & Video

c)

Geo location

d)

All of Above

9.

HTML5 documents may contains a ___________ element, which is used to set the header section of a document.

a)

header

b)

footer

c)

section

d)

none of the mentioned

10.

Which is the most current version of CSS?

a)

CSS1

b)

CSS2

c)

CSS3

d)

CSS4

11.

HTML5 APIs consist of HTML5, CSS and JavaScript

True or False?

a)

TRUE

b)

FALSE

12.

________is an HTML5 API that provides a place on a Web page where developers can display graphics, animation, video and games "on the fly" without the need for a plug-in.

a)

Offline Application Cache

b)

Geolocation

c)

SVG

d)

Canvas

13.

What are the default width and height of Canvas API?

a)

Width = 300

Height = 150

b)

Width = 150

Height = 300

c)

Width = 200

Height = 100

d)

Width = 30

Height = 15

14.

What string will call the <canvas> element's drawing context?

a)

canvas.getContext("3d")

b)

canvas.getContext("2d")

c)

canvas.loadContext("2d")

d)

<canvas>("2d")

15.

Which one of the following is the correct tag for displaying HTML5 video?

a)

<div id = “video”>

</div>

b)

<video> </video>

c)

<section id = “video”>

</section>

d)

<object> </object>

16.

Which one of the following video formats/file extensions is most widely supported on the web?

a)

ogg

b)

webm

c)

avi

d)

mp4

17.

Aishah needs to indent and center a quote on his company's webpage. What style attribute or element is the best way to do this using HTML5?

a)

The align attribute with the <p> tag.

b)

The style attribute with the <p> tag.

c)

The <blockquote> element.

d)

The <center> element.

18.

What section of a web page contains the author of the document, copyright information, links to the terms of the use, contact information, etc.

a)

Header

b)

Footer

c)

Nav

d)

Div

19.

All of the following are true of HTML5 EXCEPT:

a)

It requires Windows 8 or higher

b)

It can be used to create Web apps and PC/device apps

c)

It is platform-independent

d)

It is built on an open standard

20.

Bakar has been hired by his company to update their website. He discovers that the existing webpages were structured using tables and needs to explain to The Kennesaw Foundation why the website needs to be rewritten using HTML5 with CSS to control the structure of the webpages. What is the most important reason for doing this?

a)

To ensure that the website can be rendered by all standard compliant web browsers and mobile devices.

b)

To improve the look of the website.

c)

To increase user traffic to the website.

d)

To increase the website rank in search engines.