NEW
Font size
WorksheetsWeb Development Technical Skills
Total questions: 20
Worksheet time: 10mins
Which hook is used to handle side effects in functional components in React?
useEffect()
useState()
useContext()
useReducer()
What is the correct syntax to instantiate an object in Java?
ObjectName()
objectName = new Object()
new Object()
ObjectName = new Object()
Which property is used to add a border to an element in CSS?
border
border-style
border-color
border-width
Which tag is used to define a table header in HTML?
<table>
<tr>
<th>
<td>
Which component is used to render a list of items in React?
<List>
<Array>
<ul>
<map>
What is the correct syntax to declare a method in Java? A) B) C) D)
methodName()
void methodName()
methodName
methodName(parameter)
Which property is used to control the spacing between lines of text in CSS?
line-spacing
line-height
spacing
text-spacing
Which tag is used to create a hyperlink in HTML?
<a>
<link>
<href>
<url>
Which property is used to apply a background image to an element in CSS?
image
background-image
background-colr
background
Which loop is used to iterate over an array in Java?
for
while
do-while
foreach
Which tag is used to create an ordered list in HTML?
<ol>
<ul>
<li>
<list>
What is the purpose of the useEffect() hook in React?
To handle user input in forms
To fetch data from an API
To manage component state
To render JSX elements
Which keyword is used to define a constant variable in Java?
final
const
static
constant
Which property is used to set the height of an element in CSS?
height
width
size
dimension
Which tag is used to add an image in HTML?
image
picture
img
src
Which method is used to update the state of a component in React?
updateState()
renderState()
changeState()
setState()
Which React component is responsible for handling user input in forms?
<Form>
<Input>
<Button>
<Textarea>
Which HTML tag is used to embed JavaScript code into an HTML document?
<js>
<code>
<javascript>
<script>
Which CSS selector would target all <a> elements with the class "button"?
.button
#button
button
a.button
Which of the following statements is true about Java?
Java is a server-side scripting language.
Java is primarily used for styling web pages
Java is a programming language commonly used for mobile app development.
Java is used for building user interfaces in web applications.
