1.
How does MongoDB store data?
2.
How can you serve static files in Express.js?
3.
How do you update state in a React component?
4.
How can you handle errors in Node.js using callbacks?
5.
Which of the following is a correct MongoDB replica set configuration?
6.
What does the command db.collection.find() do in MongoDB?
7.
What does the 'require' function in Node.js do?
8.
What is the purpose of next() in Express.js?
9.
What is React primarily used for?
10.
What is the role of the 'package.json' file in a Node.js project?
11.
Which module is used to create a server in Node.js?
12.
What is React Router used for?
13.
Which middleware in Express.js is used to parse incoming JSON requests?
14.
What does the res.send() method do in Express.js?
15.
Which hook is used to handle side effects in React?
16.
Which of the following is used to create an index in MongoDB?
17.
How do you create a functional component in React?
18.
What is the purpose of the $lookup operator in MongoDB?
19.
What type of database is MongoDB?
20.
Which command is used to insert a document in MongoDB?
21.
What is Express.js primarily used for?
22.
What is the default scope of variables in Node.js modules?
23.
What is the purpose of state in React?
24.
Which React method is used to render a component?
25.
Which of the following is true about the 'fs' module?
26.
What is the purpose of 'streams' in Node.js?
27.
What does the 'process.nextTick()' method do in Node.js?
28.
Which method is used to read the content of a file in a non-blocking way in Node.js?
29.
What is the default port number for an Express.js application?
30.
How do you define a route in Express.js?
31.
Which of the following is a NoSQL database?
32.
What is the default port for MongoDB?
33.
What is a component in React?
34.
What is the purpose of props in React?
35.
How do you handle errors in Express.js?
36.
Which HTTP method is used to send data to the server to create a new resource?
37.
How do you redirect a user to another page in Express.js?
38.
Which operator is used to update documents in MongoDB?
39.
How does Node.js handle asynchronous I/O operations?
40.
What is JSX in React?