Font size
WorksheetsBSD Mad Libs: HTML, CSS, Javascript Quiz (Teacher Amon)
Total questions: 21
Worksheet time: 18mins
What does HTML stand for in web development?
a) Hyper Text Markup Language
b) High Text Markup Language
c) Hyperlinks and Text Markup Language
d) Home Tool Markup Language
Which HTML tag is used to define an unordered list?
a) <ol>
b) <list>
c) <ul>
d) <ul>
How do you declare a variable in JavaScript?
a) var myVar;
b) let myVar;
c) const myVar;
d) All of the above
Which CSS property is used to change the text color within an element?
a) text-color
b) font-color
c) color
d) text-fill
What is the purpose of the 'box-sizing' property in CSS?
a) Defines the width and height of a box
b) Sets the position of an element
c) Specifies the box model
d) Controls the layout of elements
In the provided HTML, what is the role of the 'img' tag?
a) Defines a hyperlink
b) Represents a text input field
c) Displays an image
d) Indicates a table row
Which event triggers the 'switchChannel()' function in the provided JavaScript?
a) onmouseover event
b) onclick event
c) onsubmit event
d) onkeydown event
What does the 'border-radius' property in CSS define?
a) Adjusts the border thickness
b) Sets the background image size
c) Controls the border style
d) Specifies the curvature of box corners
Which HTML tag is used to link an external stylesheet in an HTML document?
a) <link rel="stylesheet">
b) <style src="stylesheet.css">
c) <css>
d) <style>
In JavaScript, how do you declare a constant variable that cannot be reassigned?
a) let myVar = value;
b) var myVar = value;
c) constant myVar = value;
d) const myVar = value;
What is the purpose of the 'this' keyword in JavaScript?
a) Refers to the previous element
b) Refers to the current element
c) Refers to a child element
d) Refers to the parent element
How can you reference an external JavaScript file in an HTML document?
a) <script href="script.js">
b) <script src="script.js">
c) <script type="text/javascript" href="script.js">
d) <javascript src="script.js">
What does CSS stand for in web development?
a) Cascading Style Sheets
b) Creative Style Sheets
c) Computer Style Sheets
d) Content Style Sheets
In CSS, which property is used to control the spacing between the elements' content and its border?
a) margin
b) padding
c) border-spacing
d) spacing
What CSS property is used to change the text color of an element?
a) text-color
b) font-color
c) color
d) text-fill
What does the acronym "DOM" stand for in JavaScript?
a) Document Object Model
b) Data Object Model
c) Display Object Model
d) Document Object Manipulation
How do you declare a variable in JavaScript?
a) var myVariable;
b) let myVariable;
c) const myVariable;
d) All of the above
What is the result of the expression: 10 + "5" in JavaScript?
a) 15
b) "105"
c) 105
d) "10 + 5"
What is the difference between "null" and "undefined" in JavaScript?
Explain the concept of event delegation in JavaScript.
What is the purpose of the "this" keyword in JavaScript, and how does its behavior differ between regular functions and arrow functions?
