NEW
Font size
WorksheetsFE Basic Quiz
Total questions: 30
Worksheet time: 15mins
What does HTML stand for?
Hyperlink and Text Markup Language
HyperText Markup Language
High-Level Text Management Language
Home Tool Markup Language
Which HTML tag is used to create a hyperlink?
<link>
<url>
<a>
<hlink>
Which tag is used to define the largest heading in HTML?
<h1>
<h6>
<head>
<header>
What is the correct way to insert an image in HTML?
<image src="image.jpg">
<img src="image.jpg" alt="Description">
<pic src="image.jpg">
<img alt="image.jpg">
Which tag is used to create a numbered list?
<list>
<ul>
<ol>
<li>
How do you add a background color in HTML?
<body bg="blue">
<background color="blue">
<body style="background-color: blue;">
<bg color="blue">
What does the <br> tag do in HTML?
Creates a new paragraph
Inserts a line break
Makes text bold
Adds a border
Which attribute is used to open a link in a new tab?
new="tab"
open="new"
target="_blank"
tab="new"
What is the correct doctype declaration for HTML5?
<!DOCTYPE html>
<doctype html5>
<html5>
<doctype>
Which tag is used to define a table row?
<table>
<tr>
<td>
<trow>
What does CSS stand for?
Creative Style Sheets
Cascading Style Sheets
Computerized Styling System
Colorful Styling Structure
Which property is used to change the text color of an element?
background-color
text-style
color
font-color
What is the correct way to apply an external CSS file to an HTML document?
<style src="style.css">
<css href="style.css">
<link rel="stylesheet" href="style.css">
<stylesheet>style.css</stylesheet>
How do you make the text bold using CSS?
font-weight: bold;
text-style: bold;
font-bold: true;
bold: yes;
Which CSS property controls the space between elements?
margin
spacing
distance
padding
What is the default position of an HTML element?
relative
fixed
absolute
static
How can you make a background image repeat only horizontally?
background-repeat: repeat-x;
background-repeat: repeat-y;
background-repeat: no-repeat;
background-repeat: horizontal;
Which CSS property is used to make text uppercase?
text-transform: uppercase;
text-style: capital;
font-case: upper;
text-uppercase: true;
What is the correct CSS syntax to make all <p> elements have a font size of 18px?
p {font-size: 18px;}
{p: font-size=18px;}
p {text-size: 18px;}
<p style="size:18px;">
Which CSS property is used to make a web page responsive?
float
media queries
transition
grid
Which keyword is used to declare a variable in JavaScript?
var
let
const
var, let, const
What is the correct syntax to output text to the console?
print("Hello World");
log("Hello World");
console.log("Hello World");
echo("Hello World");
Which operator is used for strict equality comparison in JavaScript?
==
===
=
!=
What is the output of typeof null in JavaScript?
null
undefined
object
number
How do you write an arrow function in JavaScript?
function add(a, b) { return a + b; }
const add = function(a, b) { return a + b; };
const add => (a, b) { return a + b; };
const add = (a, b) => a + b;
Which method is used to remove the last element from an array?
shift()
pop()
slice()
splice()
What does the setTimeout() function do in JavaScript?
Executes a function after a specified delay
Runs a function repeatedly at a given interval
Stops the execution of a function
Immediately executes a function
How do you check if a variable x is an array in JavaScript?
x.isArray()
typeof x === "array"
Array.isArray(x)
x instanceof Array
What will console.log("5" + 3 + 2); output?
"10"
"532"
"53"
10
What is an Immediately Invoked Function Expression (IIFE)?
A function that takes no arguments
A function that is executed later
A function that can be called multiple times
A function that runs immediately after being defined
