NEW
Font size
Worksheets2018 ECS Exam Review
Total questions: 71
Worksheet time: 1hrs 10mins
Which heading produces the largest text?
H1
H2
H3
H4
Which is an example of metadata about a webpage?
The title of the webpage
The body of the webpage
A header tag on the webpage
All of the above
What is the function of the "<br>" tag?
Create a line break on the resulting webpage
Create a horizontal line on the resulting webpage
Italicize text
Bold text
Which is the correct HTML code to create a hyperlink that says "Click Me" and links to google.com?
"Click Me <a>https://google.com</a>"
"<a>Click Me</a href="https://google.com">"
"<a href="https://google.com">Click Me</a>"
"<a href="Click Me">https://google.com</a>"
What HTML code will insert an image into a webpage?
"<img https://codehs.com/static/img/logo.png>"
"<img>src = "https://codehs.com/static/img/logo.png"
"<img>https://codehs.com/static/img/logo.png"
"<img src = "https://codehs.com/static/img/logo.png">"
Suppose you have the CSS rules as in the attached image. What font color will be applied to the following HTML element?
My First Paragraph
red
blue
green
black
In the code below, how many times is the dance function called and how many times is it defined?
Called 1, Defined 1
Called 1, Defined 3
Called 3, Defined 1
Called 3, Defined 3
What is wrong with the code in the example below?
The go function is called twice
The go function has a syntax error
The go function has been defined twice
How many times will Karel move in the code below?
1
5
6
7
What does the mystery function do?
Karel moves until he's on a ball
Karel moves once if there is no ball present
Karel moves until he puts down a ball
Karel checks if there is a ball in the current spot and then moves once
If Karel is on a location with one tennis ball, how many balls will there be after the following code runs?
0
1
2
6
var groceries = ["milk", "eggs", "cookies", "cake"];
What's the output of the following program?
[1, 2, 3]
[4, 5]
[3, 4, 5]
[1, 2]
[1, 3, 4, 5]
2
[1, 2, 4, 5]
3
What's the output of the following program?
2
1
-1
true
What is the value of the boolean variable canVote at the end of the following code?
true
false
yes
none, there is a syntax error
What is printed by the following program?
Is it warm: true
Is it warm: false
Is it warm: yes
Is it warm: no
