WorksheetsJavaScript and Web Development Quiz
Total questions: 15
Worksheet time: 20mins
What does HTML stand for?
Hyperlinks and Text Markup Language
Hyper Text Markup Language
Home Tool Markup Language
Hyperlinking Text Management Language
Which of the following is used to style HTML elements?
JavaScript
CSS
SQL
PHP
In JavaScript, what symbol is used to denote comments?
// for single-line comments
#
/* */ for single-line comments
Which HTML tag is used to link an external JavaScript file?
What is the correct way to write an array in JavaScript?
var colors = "red", "green", "blue"
var colors = ["red", "green", "blue"]
var colors = (1:"red", 2:"green", 3:"blue")
var colors = {red, green, blue}
Which of the following is a JavaScript framework?
Laravel
Django
React
Flask
How do you create a function in JavaScript?
function = myFunction()
function myFunction()
def myFunction()
create myFunction()
Which HTML attribute is used to define inline styles?
font
class
style
styles
Which method is used to select an element by its ID in JavaScript?
document.getElementByClass()
document.getElementById()
document.querySelector()
document.selectById()
What is the default file extension for JavaScript files?
.html
.css
.js
.java
What does the "DOM" stand for in web development?
Which JavaScript method is used to parse a JSON string into a JavaScript object?
Which HTTP method is used to submit data to be processed to a server?
In JavaScript, which keyword is used to declare a block-scoped variable?
What is "event bubbling" in JavaScript?
