WorksheetsFrontEnd Bihongal
Total questions: 33
Worksheet time: 24mins
Name
Class
Date
1.
What attribute is used to specify a unique identifier for an HTML element?
a)
Class
b)
Name
c)
id
d)
tag
2.
Which HTML element is used to display multimedia content such as audio or video?
a)
<audio> and <video>
b)
<img> and <media>
c)
<embed> and <link>
d)
<multimedia>
3.
What is the correct way to create a form that submits data using POST method?
a)
<form method="GET">
b)
<form method="SUBMIT">
c)
<form method="POST">
d)
<form type="POST">
4.
Which HTML5 tag is used to define a navigation section?
a)
<footer>
b)
<nav>
c)
<header>
d)
<section>
5.
Which meta tag is essential for making a website responsive?
a)
<meta name="viewport" content="width=device-width, initial-scale=1.0">
b)
<meta charset="utf-8">
c)
<meta http-equiv="refresh">
d)
<meta name="author">
6.
What is the default value of the position property in CSS?
a)
Relative
b)
Static
c)
Absolute
d)
Complex
7.
How can you center a block element horizontally using Flexbox?
a)
align-items: center;
b)
align-content: center;
c)
justify-content: center;
d)
display: inline-block;
8.
Which of the following is NOT a valid CSS display value?
a)
Inline
b)
Center
c)
Block
d)
Flex
9.
What CSS property is used to change the text color of an element?
a)
color
b)
Font-color
c)
Background-color
d)
None of the above
10.
How do you apply a CSS animation to an element?
a)
@animation { }
b)
animate { }
c)
@keyframes { }
d)
None of the above
11.
How do you create a function in JavaScript?
a)
function = myFunction()
b)
function myFunction()
c)
create myFunction()
d)
def myFunction()
12.
Which of these is NOT a JavaScript data type?
a)
Number
b)
String
c)
Boolean
d)
Element
13.
How do you add an event listener in JavaScript?
a)
element.onClick(function)
b)
element.addEventListener('click', function)
c)
element.attachEvent('click', function)
d)
element.trigger('click', function)
14.
What method is used to parse a JSON string into a JavaScript object?
a)
JSON.stringify()
b)
JSON.parse()
c)
JSON.objectify()
d)
JSON.convert()
15.
Which statement is used to stop a loop in JavaScript?
a)
Skip
b)
Break
c)
Exit
d)
Halt
16.
What is the purpose of using promises in JavaScript?
a)
To perform synchronous operations
b)
To handle synchronous operations
c)
To manage loops
d)
To manage functions
17.
Which keyword is used to declare an asynchronous function in JavaScript?
a)
async/then
b)
async/catch
c)
async
d)
await
18.
How do you store data in the browser’s local storage using JavaScript?
a)
window.localStorage.add()
b)
localStorage.setItem()
c)
localStorage.save()
d)
window.localData()
19.
How do you convert a JavaScript object into a JSON string?
a)
JSON.parse()
b)
JSON.stringify()
c)
JSON.convert()
d)
JSON.toString()
20.
What will typeof null return in JavaScript?
a)
null
b)
object
c)
"object"
d)
undefined
21.
What does JSX stand for in React?
a)
JavaScript XML
b)
JavaScript Exchange
c)
JavaScript Syntax Extension
d)
JavaScript Express
22.
How is state managed in React functional components?
a)
this.state
b)
useState()
c)
setState()
d)
updateState()
23.
Which hook is used for side effects in React?
a)
useState
b)
useEffect
c)
useCallback
d)
useRef
24.
How do you handle routing in a React application?
a)
React Router
b)
React Navigation
c)
React DOM
d)
useRoute
25.
Which of the following is NOT a valid React component type?
a)
Functional
b)
Class
c)
Pure
d)
External
26.
What does the acronym API stand for?
a)
Application Program Integration
b)
Application Program Interface
c)
Advanced Programming Interaction
d)
Application Process Invocation
27.
What is the main advantage of using a CSS preprocessor like SASS or LESS?
a)
Faster page load
b)
Better animations
c)
Variables and nested rules
d)
Improved SEO
28.
Which tool is commonly used for version control in web development?
a)
Docker
b)
Git
c)
NPM
d)
Webpack
29.
What is the purpose of using media queries in CSS?
a)
To load images
b)
To optimize JavaScript
c)
To create responsive designs
d)
To add animations
30.
Which framework is popular for building responsive web designs?
a)
Angular
b)
Bootstrap
c)
Vue.js
d)
Node.js
31.
Name
4 lines
32.
4 lines
33.
Phone No
4 lines
100 %
