wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

web developement

Total questions: 30

Worksheet time: 10mins

Name
Class
Date
1.

which HTML tag is used to define interactive controls for forms?

a)

<input>

b)

<button>

c)

<form>

d)

<select>

2.

which CSS properly is used to make text bold?

a)

text decoration

b)

font weight

c)

font style

d)

font size

3.

Which of the following correctly selects all <p> elements inside a <div> in CSS?

a)

div p

b)

div.p

c)

p div

d)

div+p

4.

In JavaScript, which keyword is used to declare a variable that cannot be reassigned?

a)

var

b)

let

c)

const

d)

static

5.

What will typeof null return in JavaScript?

a)

"null"

b)

"undefined"

c)

"object"

d)

"string"

6.

Which function converts a JSON string into an object in JavaScript?

a)

JSON.parse()

b)

JSON.stringify

c)

parseJSON()

d)

convertJSON()

7.

What is the default value of the display property for a <div>?

a)

inline

b)

inline-block

c)

block

d)

flex

8.

What does the useState hook return in React?

a)

only the current state

b)

only the function to update the state

c)

A pair: current state and update function

d)

a class based state object

9.

In React, what is the purpose of the key prop in lists?

a)

to style elements uniquely

b)

to identify which items changed

c)

to improve rendering speed

d)

to bind event listeners

10.

Which of the following is NOT a JavaScript data type?

a)

boolean

b)

undefined

c)

char

d)

symbol

11.

Which CSS property controls the stacking order of elements?

a)

order

b)

z-index

c)

index

d)

stack

12.

What is a closure in JavaScript?

a)

A function inside another function that remembers outer variables

b)

A function that runs once

c)

A variable declared globally

d)

A loop that terminates

13.

13. What does == do differently from === in JavaScript?

a)

Compares values and types

b)

Compares only values

c)

Compares only types

d)

Compares object references

14.

14. Which HTTP method is idempotent and used to replace an entire resource?

a)

POST

b)

PUT

c)

PATCH

d)

GET

15.

What does CORS stand for?

a)

Centralized Origin Resource System

b)

Cross-Origin Resource Sharing

c)

Client-Origin Resource Security

d)

Common-Origin Request Setup

16.

What is the virtual DOM in React?

a)

A real DOM copy stored in the server

b)

A lightweight representation of the real DOM

c)

A database

d)

A debugging tool

17.

Which CSS unit is relative to the root element’s font size?

a)

em

b)

rem

c)

px

d)

%

18.

Which statement is true about async and await?

a)

await can be used outside async functions

b)

They make asynchronous code look synchronous

c)

They replace promises

d)

They block the event loop

19.

What does JSX stand for in React?

a)

JavaScript XML

b)

Java Syntax Extension

c)

JSON Syntax Extension

d)

JavaScript Extension

20.

What is the purpose of npm?

a)

Node Processing Manager

b)

Node Package Manager

c)

Network Project Module

d)

Node Program Maker

21.

What is the correct way to make a checkbox pre-selected on page load?

a)

<input type="checkbox" selected>

b)

<input type="checkbox" check>

c)

<input type="checkbox" checked>

d)

<input type="checkbox" default>

22.

Which tag is used to embed a JavaScript file in HTML?

a)

<script href="file.js">

b)

<script src="file.js"></script>

c)

<javascript src="file.js">

d)

<link src="file.js">

23.

Which HTML5 tag is used to draw graphics on the web page?

a)

<graphics>

b)

<canvas>

c)

<draw> 

d)

<paint>

24.

What is the correct HTML element for playing audio files?

a)

<music>

b)

<audio>

c)

<sound>

d)

<media>

25.

What is the output?

console.log(0.1 + 0.2 === 0.3);

a)

true

b)

false

c)

NaN

d)

UNDEFINED

26.

27. What is the output?

console.log([] + []);

a)

[]

b)

"" (empty string)

c)

0

d)

undefined

27.

28. What does this return?

[] == ![];

a)

true

b)

false

c)

undefined

d)

error

28.

26. What will happen?

console.log(a);

let a = 10;

a)

10

b)

undefined

c)

ReferenceError

d)

null

29.

Which layout module is one-dimensional?

a)

CSS Grid

b)

Flexbox

c)

Table

d)

Float

30.

Which of these defines a CSS variable correctly?

a)

var-color: red;

b)

$color: red;

c)

--color: red;

d)

@color: red;