NEW
Font size
WorksheetsJavaScript and React Quiz
Total questions: 18
Worksheet time: 9mins
What does REST stand for?
Representational State Transfer
Remote Execution Service Transfer
Reliable System Transport
Response Engine Standard Template
Which of the following is NOT a JavaScript data type?
Undefined
Number
Float
Boolean
In React, what is the purpose of useEffect?
To modify props
To handle side effects
To declare a variable
To create a new component
What is TypeScript mainly used for?
Faster rendering
Adding static typing to JavaScript
Managing CSS
Improving database performance
What is the time complexity of binary search?
O(n)
O(log n)
O(n²)
O(1)
Which Git command is used to upload local changes to a remote repository?
git clone
git pull
git push
git fetch
What is the default port for HTTP?
21
25
80
443
Which React hook is used for state management?
useEffect
useState
useRef
useMemo
What is the main purpose of package.json?
To define the structure of a component
To list dependencies and project metadata
To store API keys
To define CSS styles
What does SQL stand for?
Standard Query Logic
Simple Query Language
Structured Query Language
Secure Query List
In Git, which command creates a new branch?
git merge
git commit
git branch
git fork
What is the output of typeof null in JavaScript?
null
undefined
object
string
What does CSS stand for?
Computer Style Sheet
Cascading Style Sheets
Creative Style Syntax
Custom Styling System
Which keyword is used to create a class in JavaScript?
object
new
class
function
What is a pure function?
A function that uses async/await
A function that returns the same output for the same input
A function that modifies global variables
A function that runs only once
In React, keys are used to:
Store API tokens
Identify elements in a list
Trigger re-render manually
Manage local storage
What is the purpose of Docker?
For hosting websites
For building native apps
For containerizing applications
For database backups
Which of these is NOT part of the MVC architecture?
Model
View
Component
Controller
