MCQ Quiz

What does MERN stand for in the context of web development?





Which database is used in the MERN stack?





What is the primary function of Express in the MERN stack?





Which of the following is a state management library commonly used with React?





What is JSX in React?





Which command is used to create a new React app?





In Node.js, which module is used to handle file system operations?





What is the purpose of the useState hook in React?





Which of the following is a valid way to import a module in Node.js?





What is the use of middleware in Express?





Which of the following methods is used to send data from a React component to another component?





In MongoDB, what is a collection?





What is the purpose of the useEffect hook in React?





Which HTTP method is used to update a resource in RESTful APIs?





What is the command to start a Node.js application?





What does npm stand for?





In React, how do you handle events?





Which of the following is not a part of the MERN stack?





What is the purpose of the package.json file in a Node.js project?





What is the command to install a package using npm?





What is the difference between state and props in React?





In Express, how do you define a route?





What is the primary purpose of React Router?





In MongoDB, what is a document?





Which of the following is a popular NoSQL database used with Node.js?





In React, what is a component?





Which command is used to start the MongoDB server?





What is the purpose of the useReducer hook in React?





In Express, how do you parse incoming request bodies?





Which method is used to create a new document in MongoDB?