wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Development Technical Skills

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which hook is used to handle side effects in functional components in React?

a)

useEffect()

b)

useState()

c)

useContext()

d)

useReducer()

2.

What is the correct syntax to instantiate an object in Java?

a)

ObjectName()

b)

objectName = new Object()

c)

new Object()

d)

ObjectName = new Object()

3.

Which property is used to add a border to an element in CSS?

a)

border

b)

border-style

c)

border-color

d)

border-width

4.

Which tag is used to define a table header in HTML?

a)

<table>

b)

<tr>

c)

<th>

d)

<td>

5.

Which component is used to render a list of items in React?

a)

<List>

b)

<Array>

c)

<ul>

d)

<map>

6.

What is the correct syntax to declare a method in Java? A) B) C) D)

a)

methodName()

b)

void methodName()

c)

methodName

d)

methodName(parameter)

7.

Which property is used to control the spacing between lines of text in CSS?

a)

line-spacing

b)

line-height

c)

spacing

d)

text-spacing

8.

Which tag is used to create a hyperlink in HTML?

a)

<a>

b)

<link>

c)

<href>

d)

<url>

9.

Which property is used to apply a background image to an element in CSS?

a)

image

b)

background-image

c)

background-colr

d)

background

10.

Which loop is used to iterate over an array in Java?

a)

for

b)

while

c)

do-while

d)

foreach

11.

Which tag is used to create an ordered list in HTML?

a)

<ol>

b)

<ul>

c)

<li>

d)

<list>

12.

What is the purpose of the useEffect() hook in React?

a)

To handle user input in forms

b)

To fetch data from an API

c)

To manage component state

d)

To render JSX elements

13.

Which keyword is used to define a constant variable in Java?

a)

final

b)

const

c)

static

d)

constant

14.

Which property is used to set the height of an element in CSS?

a)

height

b)

width

c)

size

d)

dimension

15.

Which tag is used to add an image in HTML?

a)

image

b)

picture

c)

img

d)

src

16.

Which method is used to update the state of a component in React?

a)

updateState()

b)

renderState()

c)

changeState()

d)

setState()

17.
  1. Which React component is responsible for handling user input in forms?

a)
  1. <Form>

b)
  1. <Input>

c)
  1. <Button>

d)
  1. <Textarea>

18.

Which HTML tag is used to embed JavaScript code into an HTML document?

a)

<js>

b)

<code>

c)

<javascript>

d)

<script>

19.

Which CSS selector would target all <a> elements with the class "button"?

a)

.button

b)

#button

c)

button

d)

a.button

20.

Which of the following statements is true about Java?

a)

Java is a server-side scripting language.

b)

Java is primarily used for styling web pages

c)

Java is a programming language commonly used for mobile app development.

d)

Java is used for building user interfaces in web applications.