Font size
WorksheetsFront-End Development Beginner Knowledge Test
Total questions: 10
Worksheet time: 5mins
What does HTML stand for?
HyperText Markup Language
Hyperlink Text Marketer
High Tech Markup Language
HyperTexting Machine Language
What is the correct way to create a heading in HTML?
(a) <heading>Your Text Here</heading>`
(b) <h1>Your Text Here</h1>`
(c) <b>Your Text Here</b>`
(d) <u>Your Text Here</u>`
What is the purpose of CSS in web development?
To define the structure of a webpage
To add styling and layout to a webpage
To make the webpage interactive
To connect the webpage to a database
How do you add a background color to an element in CSS?
(a) <style>background-color: blue;</style>
(b) background-color: "blue";
(c) <color>blue</color>
(d) color: blue;
What does the following CSS selector target: #main-content?
All elements with the class "main-content"
The first element with the class "main-content"
An element with the ID "main-content"
All paragraphs within the element with the ID "main-content"
What does JavaScript allow you to do in web development?
Define the structure and content of a webpage
Add interactivity and dynamic behavior
Create visual designs for the webpage
Connect the webpage to a server
How do you declare a variable in JavaScript?
(a) var name = "John";
(b) <var>name = "John";</var>
(c) let name = "John";
(d) define name = "John";
What is the difference between an if statement and an elseif statement in JavaScript?
There is no difference, they do the same thing.
An if statement only checks one condition, while elseif can check multiple conditions.
An if statement checks for true, while elseif checks for false.
if is used for loops, and elseif is used for conditional statements.
What is the purpose of an alert() function in JavaScript?
To perform calculations
To display a pop-up message on the webpage
To get user input
To style elements
What is the DOM (Document Object Model) in web development?
A programming language for web development
A representation of the webpage structure that allows manipulation by JavaScript
A way to connect a webpage to a database
A framework for building user interfaces
