wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Front-End Development Beginner Knowledge Test

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does HTML stand for?

a)

HyperText Markup Language

b)

Hyperlink Text Marketer

c)

High Tech Markup Language

d)

HyperTexting Machine Language

2.

What is the correct way to create a heading in HTML?

a)

(a) <heading>Your Text Here</heading>`

b)

(b) <h1>Your Text Here</h1>`

c)

(c) <b>Your Text Here</b>`

d)

(d) <u>Your Text Here</u>`

3.

What is the purpose of CSS in web development?

a)

To define the structure of a webpage

b)

To add styling and layout to a webpage

c)

To make the webpage interactive

d)

To connect the webpage to a database

4.

How do you add a background color to an element in CSS?

a)

(a) <style>background-color: blue;</style>

b)

(b) background-color: "blue";

c)

(c) <color>blue</color>

d)

(d) color: blue;

5.

What does the following CSS selector target: #main-content?

a)

All elements with the class "main-content"

b)

The first element with the class "main-content"

c)

An element with the ID "main-content"

d)

All paragraphs within the element with the ID "main-content"

6.

What does JavaScript allow you to do in web development?

a)

Define the structure and content of a webpage

b)

Add interactivity and dynamic behavior

c)

Create visual designs for the webpage

d)

Connect the webpage to a server

7.

How do you declare a variable in JavaScript?

a)
  • (a) var name = "John";

b)
  • (b) <var>name = "John";</var>

c)
  • (c) let name = "John";

d)

(d) define name = "John";

8.

What is the difference between an if statement and an elseif statement in JavaScript?

a)

There is no difference, they do the same thing.

b)

An if statement only checks one condition, while elseif can check multiple conditions.

c)

An if statement checks for true, while elseif checks for false.

d)

if is used for loops, and elseif is used for conditional statements.

9.

What is the purpose of an alert() function in JavaScript?

a)

To perform calculations

b)

To display a pop-up message on the webpage

c)

To get user input

d)

To style elements

10.

What is the DOM (Document Object Model) in web development?

a)

A programming language for web development

b)

A representation of the webpage structure that allows manipulation by JavaScript

c)

A way to connect a webpage to a database

d)

A framework for building user interfaces