HTML CSS JS

a vibrant illustration of a computer screen displaying code snippets with elements of HTML, CSS, and JavaScript, bright colors, digital style

Test Your Knowledge: HTML, CSS & JavaScript Quiz

Challenge yourself with our engaging quiz designed to test your knowledge of HTML, CSS, and JavaScript! Perfect for web development enthusiasts, this quiz is a great way to brush up on your skills and discover new concepts.

Features:

  • Multiple choice and checkbox questions
  • Real-world programming examples
  • Score tracking to measure your progress
15 Questions4 MinutesCreated by CodingMaster27
What is the purpose of the XMLHttpRequest object in JavaScript?
To make HTTP requests
To create a new function
To create a new variable
To store data in the browser
What is the HTTP response code for a successful request?
404 Not Found
200 OK
500 OK Recieved
None
What does the following code output?

Screen Shot 2023-04-11 at 1.20.40 AM
 
5 and 10
10 and 10
Undefined and 10
5 and undefined
Which of the following property is used to add spacing between HTML elements in CSS?
Margin
Padding
Border-spacing
Line-height
What is the correct HTML for creating a hyperlink?
What is the correct JavaScript syntax to change the content of the HTML element below?
#demo.innerHTML = "Hello World!";
Document.getElementByName("p").innerHTML = "Hello World!";
Document.getElementById("demo").innerHTML = "Hello World!";
Document.getElement("p").innerHTML = "Hello World!";
How do you create a function in JavaScript?
Function = myFunction()
Function myFunction()
Function:myFunction()
2
Answer
Undefined
Error
Which function is used to serialize an object into a JSON string in Javascript?
Parse()
Stringify()
Convert()
None of the above
What will be the output of the following code snippet?
True
False
Undefined
None
What will be the output of the following code snippet?
Compilation error
14
59
Run time error
Whats the output of the code snippet
Undefined
SyntaxError
{ userId: 1, id: 1, title: 'delectus aut autem', completed: false }
Network response was not ok
Hello world!" in blue color
Hello world!" in red color
"Hello world!" in green color
"Hello world!" in a combination of blue, red, and green color
How can you set a cookie using JavaScript?
Use the document.cookie property to set the cookie value
Use the window.cookie method to set the cookie value
Use the navigator.cookie property to set the cookie value
Use the fetch() function to set the cookie value
What is the correct HTML tag to add a background
A
B
C
D
{"name":"HTML CSS JS", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Challenge yourself with our engaging quiz designed to test your knowledge of HTML, CSS, and JavaScript! Perfect for web development enthusiasts, this quiz is a great way to brush up on your skills and discover new concepts.Features:Multiple choice and checkbox questionsReal-world programming examplesScore tracking to measure your progress","img":"https:/images/course7.png"}
Powered by: Quiz Maker