Font size
WorksheetsAssessment - Unit 1 Review
Total questions: 45
Worksheet time: 2hrs 15mins
src attribute in an image tag means what?
Source of the image
Name of the image
Description of the image
Not used with image tag
To insert an image: "koala.jpg" then the code that we write in the body is...
<..bgimage=”koala.jpg”>
<…picture=”koala.jpg”>
<img src = "koala.jpg">
<…background picture=”koala.jpg”>
Choose the correct HTML element for the largest heading:
<head>
<h1>
<heading>
<h6>
<p> is the opening tag for a _____________
page
paragraph
preorder
period
Which of the following is the proper format for an HTML tag?
>h1<Content Affected by Tag >/h1<
<h1>Content Affected by Tag<h1>
<h1 Content Affected by Tag />
<h1>Content Affected by Tag</h1>
Which rule set would change the font size to 24?
font-size: 24px
size: 24px;
font-size: 24px;
font size: 24px;
Select the rule that sets the color of words in a paragraph to pink
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
Select the rule set to make all the text in your web page blue and centered.
p {
color: blue;
}
body {
text-align: left;
color: blue;
}
p {
text-align: center;
color: blue;
}
body {
text-align: center;
color: blue;
}
Which of the following is the proper format for an HTML tag?
>h1<Content Affected by Tag >/h1<
<h1>Content Affected by Tag<h1>
<h1 Content Affected by Tag />
<h1>Content Affected by Tag</h1>
Which keywords can you use to declare variables?
var
int
let
char
const
Which way of declaring a variable can not be reassigned
var
let
const
How do I declare a new variable?
let newVariable = 5
Variable int = new Variable()
let 5 = myVariable
int var = 5
A programming language used for webpage functionality such as interactivity, data processing, animation, and development of purpose built apps such as mobile and desktop apps and more.
HTML5
CSS
JS
C#
What would print to the console when the following lines of code are run:
let myVar = "Hello World!"
let myOtherVar = "Good Night!"
console.log(myVar)
"Hello World!"
"Good Night!"
"Hello World!"
"Good Night!"
undefined
Which keywords can you use to declare variables?
var
int
let
char
const
How do I declare a new variable?
let newVariable = 5
Variable int = new Variable()
let 5 = myVariable
int var = 5
Variable names must begin with a letter, an underscore, or a dollar sign $
True
False
Variable names are case sensitive.
True
False
Reserved words cannot be used as names for variables.
True
False
Creating a variable is called "_____" a variable.
Declaring
Initializing
Setting
Typing
How do I add comments in my JS codes?
Use double forward slash, like this:
// say something
Use /* and */ to enclose some lines of text as comments
Use #, hash symbol, like this:
# say something
Use <!-- and --> to enclose some lines of text as comments
Which of the following is/are valid JavaScript variable name(s)?
num1
1num
my_name
my name
Which of the following is NOT a valid starting character for JS variable names?
Uppercase Letter
Number
Dollar Sign
Underscore
Select the best way to declare a variable
let MyName = "Kelly"
let myName = "Kelly"
let MYNAME = "Kelly"
let MY_NAME = "Kelly"
Which keywords can you use to declare variables?
var
int
let
char
const
How do I declare a new variable?
let newVariable = 5
Variable int = new Variable()
let 5 = myVariable
int var = 5
Creating a variable is called "_____" a variable.
Declaring
Initializing
Setting
Typing
Select the best way to declare a variable
let MyName = "Kelly"
let myName = "Kelly"
let MYNAME = "Kelly"
let MY_NAME = "Kelly"
What is the following data type:
1
String
Number
Boolean
Array
Object
What is the following data type:
"10"
Number
String
Boolean
Array
Object
What is the following data type:
[2, "a", 10]
Number
String
Boolean
Array
Object
What is the following data type:
"hello world"
Number
String
Boolean
Array
Object
What is the following data type:
false
Number
String
Boolean
Array
Object
What is the correct way to declare an array?
let arr = (0, 2, 3)
let arr = [0, 2, 3]
let arr = {0, 2, 3}
let arr = <0, 2, 3>
What JS keyword is used to declare a variable?
(a)
Fill in the blank with the missing piece of code:
let myString (a) "Hello World!"
Fill in the blank in the missing code:
p { (a) }
This should be CSS code the changes the paragraph element's color to red.
Fill in the blank with the missing piece of code:
let firstName = "John"
(a)
This missing line should print the firstName variable to the console.
Fill in the blank with the missing piece of HTML code:
<p>This is a paragraph element! (a)
