Create 5 MCQ questions for a course titled "React" about "react for beginners".…
- User
User: Create 5 MCQ questions for a course titled "React" about "react for beginners". Each question should have 4 options and specify the correct answer. Format like: Q1. Question text? a) Option1 b) Option2 c) Option3 d) Option4 Answer: Option User: Create 5 MCQ questions for a course titled "React" about "react for beginners". Each question should have 4 options and specify the correct answer. Format like: Q1. Question text? a) Option1 b) Option2 c) Option3 d) Option4 Answer: Option Assistant:
- Assistant
Q1. What is the primary purpose of React? a) To style web pages
b) To build user interfaces
c) To manage databases
d) To deploy applications
Answer: b) To build user interfacesQ2. Which of the following is used to create a React component? a) HTML
b) JavaScript function or class
c) CSS
d) SQL
Answer: b) JavaScript function or classQ3. What does JSX stand for in React?
a) JavaScript Extended
b) JavaScript XML
c) Java Syntax Extension
d) JavaScript Executable
Answer: b) JavaScript XMLQ4. In React, what is used to pass data from a parent component to a child component?
a) setState
b) props
c) state
d) context
Answer: b) propsQ5. What hook is commonly used in React functional components to manage state?
a) useEffect
b) useReducer
c) useState
d) useContext
Answer: c) useState
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.