wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

FE Basic Quiz

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyperlink and Text Markup Language

b)

HyperText Markup Language

c)

High-Level Text Management Language

d)

Home Tool Markup Language

2.

Which HTML tag is used to create a hyperlink?

a)

<link>

b)

<url>

c)

<a>

d)

<hlink>

3.

Which tag is used to define the largest heading in HTML?

a)

<h1>

b)

<h6>

c)

<head>

d)

<header>

4.

What is the correct way to insert an image in HTML?

a)

<image src="image.jpg">

b)

<img src="image.jpg" alt="Description">

c)

<pic src="image.jpg">

d)

<img alt="image.jpg">

5.

Which tag is used to create a numbered list?

a)

<list>

b)

<ul>

c)

<ol>

d)

<li>

6.

How do you add a background color in HTML?

a)

<body bg="blue">

b)

<background color="blue">

c)

<body style="background-color: blue;">

d)

<bg color="blue">

7.

What does the <br> tag do in HTML?

a)

Creates a new paragraph

b)

Inserts a line break

c)

Makes text bold

d)

Adds a border

8.

Which attribute is used to open a link in a new tab?

a)

new="tab"

b)

open="new"

c)

target="_blank"

d)

tab="new"

9.

What is the correct doctype declaration for HTML5?

a)

<!DOCTYPE html>

b)

<doctype html5>

c)

<html5>

d)

<doctype>

10.

Which tag is used to define a table row?

a)

<table>

b)

<tr>

c)

<td>

d)

<trow>

11.

What does CSS stand for?

a)

Creative Style Sheets

b)

Cascading Style Sheets

c)

Computerized Styling System

d)

Colorful Styling Structure

12.

Which property is used to change the text color of an element?

a)

background-color

b)

text-style

c)

color

d)

font-color

13.

What is the correct way to apply an external CSS file to an HTML document?

a)

<style src="style.css">

b)

<css href="style.css">

c)

<link rel="stylesheet" href="style.css">

d)

<stylesheet>style.css</stylesheet>

14.

How do you make the text bold using CSS?

a)

font-weight: bold;

b)

text-style: bold;

c)

font-bold: true;

d)

bold: yes;

15.

Which CSS property controls the space between elements?

a)

margin

b)

spacing

c)

distance

d)

padding

16.

What is the default position of an HTML element?

a)

relative

b)

fixed

c)

absolute

d)

static

17.

How can you make a background image repeat only horizontally?

a)

background-repeat: repeat-x;

b)

background-repeat: repeat-y;

c)

background-repeat: no-repeat;

d)

background-repeat: horizontal;

18.

Which CSS property is used to make text uppercase?

a)

text-transform: uppercase;

b)

text-style: capital;

c)

font-case: upper;

d)

text-uppercase: true;

19.

What is the correct CSS syntax to make all <p> elements have a font size of 18px?

a)

p {font-size: 18px;}

b)

{p: font-size=18px;}

c)

p {text-size: 18px;}

d)

<p style="size:18px;">

20.

Which CSS property is used to make a web page responsive?

a)

float

b)

media queries

c)

transition

d)

grid

21.

Which keyword is used to declare a variable in JavaScript?

a)

var

b)

let

c)

const

d)

var, let, const

22.

What is the correct syntax to output text to the console?

a)

print("Hello World");

b)

log("Hello World");

c)

console.log("Hello World");

d)

echo("Hello World");

23.

Which operator is used for strict equality comparison in JavaScript?

a)

==

b)

===

c)

=

d)

!=

24.

What is the output of typeof null in JavaScript?

a)

null

b)

undefined

c)

object

d)

number

25.

How do you write an arrow function in JavaScript?

a)

function add(a, b) { return a + b; }

b)

const add = function(a, b) { return a + b; };

c)

const add => (a, b) { return a + b; };

d)

const add = (a, b) => a + b;

26.

Which method is used to remove the last element from an array?

a)

shift()

b)

pop()

c)

slice()

d)

splice()

27.

What does the setTimeout() function do in JavaScript?

a)

Executes a function after a specified delay

b)

Runs a function repeatedly at a given interval

c)

Stops the execution of a function

d)

Immediately executes a function

28.

How do you check if a variable x is an array in JavaScript?

a)

x.isArray()

b)

typeof x === "array"

c)

Array.isArray(x)

d)

x instanceof Array

29.

What will console.log("5" + 3 + 2); output?

a)

"10"

b)

"532"

c)

"53"

d)

10

30.

What is an Immediately Invoked Function Expression (IIFE)?

a)

A function that takes no arguments

b)

A function that is executed later

c)

A function that can be called multiple times

d)

A function that runs immediately after being defined