WorksheetsBootCamp Test3
Total questions: 50
Worksheet time: 28mins
What programming language did we learn in class this week?
Karel
Java
JavaScript
Visual Basic
A variable in Javascript is a (a) for information you want to store.
Inside which HTML element do we put the JavaScript?
<scripting>
<Javascript>
<Script>
<Js>
How can you add a comment in a JavaScript?
//This is a comment
<!--This is a comment-->
"This is a comment"
Is JavaScript case-sensitive?
Yes
No
Which is the correct order for these list tags?
<li>
<ul> </ul>
</li>
<ul>
</ul> <li>
</li>
<ul>
<li> </ul>
</li>
<ul>
<li> </li>
</ul>
Which section of a web page contains information about the web page such as the title and style.
Head
HTML
Body
Paragraph
What is the difference between a <h1> and a <h3> tag?
<h1> is bigger than <h3>
<h3> is bigger than <h1>
<h1> cannot be used for titles
<h3> cannot be used for titles
How do you add a blank line to a web page?
<hr>
<blank>
<br>
<break>
In a <table>, what does the <th> tag do?
it defines the table row
It displays the data for that cell on screen
It doesn't do anything
Makes the data in that cell bold like a heading
In a <table>, what does the <tr> tag do?
it defines the table row
It displays the data for that cell on screen
It doesn't do anything
Makes the data in that cell bold like a heading
What does <hr> do?
Adds a horizontal line across the page
Adds the current time in hours to the page
It is a placeholder for blank content
It adds a heading to the page
<a href = “ “ > … <a/>
You want to set the heading to use the font Arial.
h1 { font-family: arial; }
h1 { font: arial; }
heading 1 { font-family: arial; }
The correct syntax to connect an external style sheet to a Web page
<style rel="stylesheet" type="text/css" href="file.css" />
<link rel="stylesheet" type="text/css" href="file.css" />
<attach rel="stylesheet" type="text/css" href="file.css" />
<a rel="stylesheet" type="text/css" href="file.css" />
<style> </style>
tells the web browser the file is an HTML document
inserts multiple images
sets the formatting of elements on a web page
You want to set the font size to 150%.
font-size: 150%;
size: 150%
font size: 150
What does CSS stand for?
Cascading Style Sheets
Colorful Style Sheets
Computer Style Sheets
Creative Style Sheets
What tag is used to insert an image?
<img src = "...">
<a href = "..."> Title </a>
<iframe...> </frame>
<ol> ... </ol>
<ul> ... </ul>
Which of these will correctly add a title to a web page
Which of these is a correctly coded hyperlink?
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
“WWW” is the abbreviation for which of the following?
World Without Websites
World Wide Web
Workforce Wide Web
World Wide Watch
Suppose you are making a music streaming website and you want to make a page that displays a user’s music library.
Which of the following is the proper HTML code to create the following table:
<table border="1">
<tr>
<td>Title</td>
<td>Artist</td>
<td>Length</td>
</tr>
<tr>
<td>Memory</td>
<td>Tom Misch</td>
<td>5:41</td>
</tr>
<tr>
<td>CD Jam</td>
<td>Rooney Pitchford</td>
<td>3:55</td>
</tr>
</table>
<table border="1">
<tr>
<th>Title</th>
<th>Artist</th>
<th>Length</th>
</tr>
<tr>
<td>CD Jam</td>
<td>Rooney Pitchford</td>
<td>3:55</td>
</tr>
<tr>
<td>Memory</td>
<td>Tom Misch</td>
<td>5:41</td>
</tr>
</table>
<table border="1">
<tr>
<th>Title</th>
<th>CD Jam</th>
<th>Memory</th>
</tr>
<tr>
<td>Artist</td>
<td>Rooney Pitchford</td>
<td>Tom Misch</td>
</tr>
<tr>
<td>Length</td>
<td>3:55</td>
<td>5:41</td>
</tr>
</table>
<table border="1">
<tr>
<th>Title</th>
<td>CD Jam</td>
<td>Memory</td>
</tr>
<tr>
<th>Artist</th>
<td>Rooney Pitchford</td>
<td>Tom Misch</td>
</tr>
<tr>
<th>Length</th>
<td>3:55</td>
<td>5:41</td>
</tr>
</table>
What is the result of the following HTML code:
<ol>
<li>Bread</li>
<li>Milk</li>
<li>Eggs</li>
</ol>
Which CSS selector applies to the yellow element(s) only? Select the correct answers!
li a{ ... }
li.a{ ... }
li, a{ ... }
li-a{ ...}
none of the above
Choose the correct CSS Class ...
#navbar
*navbar
=navbar
.navbar
What language is used to define the structure of a webpage?
HTML
CSS
JavaScript
French
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
Which HTML tag is used to create a list item?
<list>
<item>
<li>
<ul>
What are the four components of the CSS box model?
content, padding, border, margin
padding, border, margin, content
margin, content, padding, border
content, padding, border, padding
What type of selector is this? .container
Class
Element
Id
Group
How would you select an ELEMENT with the ID name red-text?
#red-text
=red-text
.red-text
red-text
