wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Morse Code and JavaScript 30 Question Quiz (Hard Level)

Total questions: 30

Worksheet time: 14mins

Name
Class
Date
1.
True or False: HTML is a coding language used to create web pages.
a)
True
b)
False
2.
True or False: A web browser translates text-based HTML into a graphical web page.
a)
True
b)
False
3.
True or False: A hyperlink can be a word, phrase, or graphic.
a)
True
b)
False
4.
True or False: You must save a text file with a .html extention so a web browser can open it.
a)
True
b)
False
5.
True or False: A website's home page is typically named homepage.html.
a)
True
b)
False
6.
Which of the following tags is used to insert a blank line?
a)
<br>
b)
<h1>
c)
<hr>
d)
<p>
7.

Which of these actions is unethical?

a)

Creating a link on your website to another website after obtaining the owner's written permission.

b)

Creating new CSS and HTML that looks like the code used on another website.

c)

Copying the CSS and HTML from another website.

d)

Using images from another website after obtaining the owner's written permission.

8.

Mia created her company's Intranet site using proprietary HTML. The company recently updated its software and has mandated the use of a new web browser. The Intranet site that Mia developed no longer renders its content consistently. What should she do to ensure that the websites content renders consistently regardless of which browser is used?

a)

Update the website to use the proprietary HTML for the new browser.

b)

Update the website so that it uses a single HTML standard on all webpages.

c)

Remove the old proprietary HTML from the website.

d)

Update the websites HTML for only the areas that are not rendering properly

9.

Juan has been hired by The Kennesaw Foundation 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.

10.

Abdul was asked to create a webpage for his company's Intranet site that compares his company's four different medical insurance plans. What should he do to accomplish this?

a)

Use a table to layout the webpage and use the <pre> tag inside the table to organize the medical insurance plan information.

b)

Use JavaScript to layout the webpage and use a table to organize the medical insurance plan information.

c)

Use CSS to layout the webpage and use the <pre> tag to organize the medical insurance plan information.

d)

Use page structure tags to layout the webpage and use a table to organize the medical insurance plan information.

11.

Jacob created a webpage that has image-based navigation. He also wants to add text-based navigation to help ensure accessibility. What HTML5 tag should he use?

a)

<table>

b)

<footer>

c)

<article>

d)

<header>

12.

Vicki is developing a website in HTML5. She wants the new HTML5 structural elements to be styled consistently in all browsers. She knows that she needs to create each element using JavaScript and add a CSS rule to set the element type to ensure that the site will render successfully in older web browsers. The CSS rule should be set to which element type?

a)

script

b)

fixed

c)

block

d)

inline

13.

Yuri 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.

14.

Mikalet is creating a website for his company's Intranet. He needs to create a heading at the beginning of the content on each webpage. Which type of HTML element will he use for this task?

a)

A text-level element

b)

A content-level element

c)

A paragraph-level element

d)

A structure-level element

15.

Which of the following HTML elements is a text-level element?

a)

<br>

b)

<list>

c)

<h1>

d)

<blockquote>

16.

Why doesn't the following code validate as HTML5?

<!DOCTYPE html>

<html>

<head>

<title>Favorite Movie Quotes</title>

<link rel="stylesheet" href="css/styles.css" />

</head>

<body>

<p>This Web site is devoted to my favorite movie quotes.</p>

<p>CAPTAIN (Strother Martin) in Cool Hand Luke (1967)

<blockquote>"What we've got here...is failure to communicate."</blockquote>

</p>

</body>

</html>

a)

The second <p> tag is not closed.

b)

The <article> tag is missing.

c)

The <blockquote> tag should not be nested inside the <p> tags.

d)

The <meta> tag is missing.

17.
What does the word in red symbolize: hero.moveUp(); ?
a)
The title
b)
The object
c)
The header
d)
The hero
18.
What does the word in red symbolize: hero.moveRight();?
a)
The function
b)
The method
c)
The last part
d)
The end of the code
19.
You can pass a number as an argument to instruct your object to move more than one space at a time.
a)
True
b)
False
20.
It is not important to capitalize the name of the variables.
a)
True
b)
False
21.
JavaScript comments starts with what? 
a)
" "
b)
()
c)
//
d)
;
22.
Why do we use comments? 
a)
To leave hints
b)
To leave cool messages
c)
To give answers
d)
To communicate
23.
A while-true loop that repeats forever is called a(n) __________. 
a)
forever loop
b)
continuous loop
c)
nonstop loop
d)
infinite loop
24.
Why do we use hints? 
a)
I don't know
b)
To complete goals 
c)
To contain extra information
d)
It is a cheat sheet
25.
Why do we use loops? 
a)
It is easy to type
b)
It saves time
c)
To repeat a block of code without having to retype
d)
It is faster to create
26.

. -

a)

B

b)

A

c)

C

d)

G

27.

My sister plays the bass.

a)

type of horn

b)

low sounding stringed instrument

c)

a pair of connected drums

d)

an instrument played by pressing keys

28.

The musicians jammed.

a)

sang in a high pitched voice

b)

played music without practicing

c)

made an agreement to play

d)

agreed to form a band

29.

Her little brother is fidgety.

a)

quick to express anger

b)

jealous

c)

timid

d)

constantly moving

30.

He buys secondhand books.

a)

not valuable

b)

new

c)

entertaining

d)

previously used