WorksheetsHTML Basics and CSS Intro
Total questions: 78
Worksheet time: 43mins
Which HTML tag is used to create the largest heading?
<h2>
<img>
<heading>
<h1>
Which HTML element displays an image?
<img>
<ul>
<ol>
<a>
Which of the following is the correct way to add a paragraph?
A) <paragraph> My Paragraph </paragraph>
B)
<p>This is my paragraph.</p>
C) <h1>My Paragraph</h1>
D) <img>My Paragraph</img>
The HTML tag for creating a paragraph is ______.
<a>
<p>
<ul>
<img>
link
button
image
form
Which keyword is used to declare a variable that might change?
A) let
B) const
C) var
D) int
Which keyword is used to declare a variable that should not change?
A) let
B) const
C) var
D) change
What is the correct way to declare a variable called name and set it to "Alice"?
var name = "Alice"
let "Alice" = name
const Alice = "name"
int name = "Alice"
To declare a variable that might change, we use the keyword ______.
var or let
const
static
final
To create a variable called age with a value of 12, we would write: ______.
var age = 12;
let age = 12;
int age = 12;
age = 12;
A constant variable that should not change is declared with the keyword ______.
const
var
let
static
var city = "New York"; stores the value "New York" in the variable ______.
city
variable
value
New York
Which data type would you use to store text?
Boolean
String
Number
Array
Which data type is best for representing true or false values?
String
Boolean
Number
Object
If you want to store a list of items, which data type would you use?
Object
Array
Symbol
Boolean
How would you check the data type of a variable called score?
typeof(score)
checkType(score)
score typeof
var typeof score
Which data type is used to store multiple properties about one item, like a person's name, age, and location?
String
Array
Object
Number
A ______ is used to store text, like "hello, world".
string
integer
boolean
float
The ______ data type represents true or false values.
bool
int
string
float
______ are lists of values, such as [1, 2, 3].
array
function
variable
object
To check a variable's type, we use the ______ operator.
typeof
instanceof
var
let
Which of the following is a correct way to declare a variable with the keyword let?
let 12 = age
let myName = "Sam"
const age = let 12
let: age = 12
Which data type can store both whole numbers and decimal numbers?
Boolean
Array
Number
String
If you want to store a unique value, which data type would you use?
Array
String
Symbol
Object
What would be the typeof result for a variable declared as let price = 19.99;?
boolean
number
float
symbol
The ______ data type is used to store multiple pieces of information, like {name: "Jordan", age: 13}.
Object
Array
String
Number
A ______ is a list that stores multiple items in one variable, like ["apple", "banana", "cherry"].
array
integer
function
string
The ______ operator is used to check the type of a variable, for example, typeof(price) to check the type of a price variable.
typeof
instanceof
typeofof
typeis
When you store a decimal number like 5.7, it is considered a ______ or number.
float
integer
string
boolean
Explain why you would use const instead of let for a variable.
To allow the variable to be reassigned later.
To prevent the variable from being reassigned.
To improve the performance of the code.
To make the variable accessible globally.
Which of the following are examples of string values?
42
"Hello, World!"
3.14
"Quizizz"
When might you use an array?
To store a single value
To store multiple values of the same type
To perform arithmetic operations
To create a user interface
How do you write code to check the data type of a variable myNumber?
typeof(myNumber)
checkType(myNumber)
getType(myNumber)
myNumber.type()
A collection of interlinked web pages on the World Wide Web
website
app
internet
www
Hypertext Markup Language, a language used to create web pages
HTML element
HTML tag
website content
website structure
HTML
A piece of a website, marked by a start tag and often closed with an end tag
HTML element
HTML tag
website content
website structure
HTML
The special set of characters that indicates the start and end of an HTML element and that element's type
HTML element
HTML tag
website content
website structure
HTML
The purpose of different pieces of content in a web page, used to help the computer determine how that content should be displayed
HTML element
HTML tag
website content
website structure
HTML
The raw text, images, and other elements included in a web page
HTML element
HTML tag
website content
website structure
HTML
Which of the following are opening HTML tags?
<p>
</p>
</body>
<body>
<h1>
Which of the following are closing HTML tags?
<p>
</p>
</body>
<body>
<h1>
Which heading HTML elements will create the smallest font size on a website?
<h1>name</h1>
<h3>name</h3>
<h6>name</h6>
<h2>name</h2>
<h5>name</h5>
Which heading HTML elements will create the biggest font size on a website?
<h1>name</h1>
<h3>name</h3>
<h6>name</h6>
<h2>name</h2>
<h5>name</h5>
Look at the HTML code below and predict how the headings will be displayed.
<h3> Eggs </h3>
<h1> Bacon </h1>
<h6> Waffles </h6>
Choose from one of the options.
The collected information about an individual across multiple websites on the Internet.
website content
website structure
HTML tag
HTML element
digital footprint
Look at the list above and predict the HTML code you would use to display it correctly. Choose from the following answers.
Look at the list above and predict the HTML code you would use to display it correctly. Choose from the following answers.
A work or invention that is the result of creativity, such as a piece of writing or a design, to which one has rights and for which one may apply for a patent, copyright, trademark, etc.
copyright
creative commons
intellectual property
citation
A collection of public copyright licenses that enable the free distribution of an otherwise copyrighted work, used when an author wants to give people the right to share, use, and build upon a work that they have created
creative commons
intellectual property
citation
digital footprint
A quotation from or reference to a book, paper, or author, especially in a scholarly work.
citation
intellectual property
creative commons
copyright
Select the image tag that is correctly written in HTML code.
Which of the following Creative Common licenses is the LEAST restrictive?
Which of the following Creative Common licenses is the MOST restrictive?
Part of a program that does not work correctly.
bug
debugging
digital footprint
hyperlink
Finding and fixing problems in an algorithm or program.
bug
debugging
hyperlink
indentation
Debugging: Which of the following html elements contains a bug?
A note in the source code of a computer program that helps explain the code to people who read it. I can explain the different parts of the code and what it should create. It can help you to debug, and will also help other people who are trying to understand your code
indentation
citation
comment
debugging
A link from a HTML file to another location or file, typically activated by clicking on a highlighted word or image on the screen.
copyright
HTML tag
bug
hyperlink
citation
the main heading in a web document?
HTML stands for
Hyper Text Marker Language
Hyper Text Marker Lingo
Hyper Text Markup Language
Hyper Text Markup Lingo
CSS stands for
Code Style Sheet
Coding Style Sheet
Cascading Sheet Style
Cascading Style Sheet
HTML tag keywords are surrounded by
!--tag--!
<tag>
/tag/
{tag}
Which is the correct CSS syntax?
body {color: yellow;}
body:color=yellow;
{body:color= yellow;}
{body;color: yellow;}
Which one is the correct syntax for CSS?
property {selector : value}
value {property : selector}
selector {value : property}
selector { property : value}
