Components & JSX interview questions

18 Components & JSX questions from the React bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is JSX?

Junior
  1. A.a syntax extension that compiles to React.createElement calls describing the UI
  2. B.read-only inputs passed from a parent component down to a child
  3. C.a stable identity React uses to match list items across renders for efficient reconciliation
  4. D.a <>...</> wrapper that groups children without adding an extra DOM node

Answer + AI explanation with Pro

2. Which term means: "a syntax extension that compiles to React.createElement calls describing the UI"?

Junior
  1. A.Fragment
  2. B.Props
  3. C.Component
  4. D.JSX

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.JSX — a function that returns JSX for React to render and receives props as its input
  2. B.JSX — a form input whose value is driven by React state rather than by the DOM
  3. C.JSX — a syntax extension that compiles to React.createElement calls describing the UI
  4. D.JSX — a stable identity React uses to match list items across renders for efficient reconciliation

Answer + AI explanation with Pro

4. What is Component?

Junior
  1. A.a <>...</> wrapper that groups children without adding an extra DOM node
  2. B.a function that returns JSX for React to render and receives props as its input
  3. C.a syntax extension that compiles to React.createElement calls describing the UI
  4. D.a stable identity React uses to match list items across renders for efficient reconciliation

Answer + AI explanation with Pro

5. Which term means: "a function that returns JSX for React to render and receives props as its input"?

Junior
  1. A.Fragment
  2. B.Controlled component
  3. C.Props
  4. D.Component

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Component — a form input whose value is driven by React state rather than by the DOM
  2. B.Component — a syntax extension that compiles to React.createElement calls describing the UI
  3. C.Component — a <>...</> wrapper that groups children without adding an extra DOM node
  4. D.Component — a function that returns JSX for React to render and receives props as its input

Answer + AI explanation with Pro

7. What is Props?

Junior
  1. A.read-only inputs passed from a parent component down to a child
  2. B.a form input whose value is driven by React state rather than by the DOM
  3. C.a syntax extension that compiles to React.createElement calls describing the UI
  4. D.a <>...</> wrapper that groups children without adding an extra DOM node

Answer + AI explanation with Pro

8. Which term means: "read-only inputs passed from a parent component down to a child"?

Junior
  1. A.JSX
  2. B.Fragment
  3. C.Props
  4. D.Component

Answer + AI explanation with Pro

9. Which statement is correct?

Junior
  1. A.Props — a syntax extension that compiles to React.createElement calls describing the UI
  2. B.Props — a <>...</> wrapper that groups children without adding an extra DOM node
  3. C.Props — a stable identity React uses to match list items across renders for efficient reconciliation
  4. D.Props — read-only inputs passed from a parent component down to a child

Answer + AI explanation with Pro

10. What is key prop?

Mid
  1. A.a syntax extension that compiles to React.createElement calls describing the UI
  2. B.a <>...</> wrapper that groups children without adding an extra DOM node
  3. C.a function that returns JSX for React to render and receives props as its input
  4. D.a stable identity React uses to match list items across renders for efficient reconciliation

Answer + AI explanation with Pro

11. Which term means: "a stable identity React uses to match list items across renders for efficient reconciliation"?

Mid
  1. A.key prop
  2. B.JSX
  3. C.Fragment
  4. D.Props

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.key prop — a stable identity React uses to match list items across renders for efficient reconciliation
  2. B.key prop — a function that returns JSX for React to render and receives props as its input
  3. C.key prop — a form input whose value is driven by React state rather than by the DOM
  4. D.key prop — read-only inputs passed from a parent component down to a child

Answer + AI explanation with Pro

13. What is Fragment?

Junior
  1. A.a function that returns JSX for React to render and receives props as its input
  2. B.a syntax extension that compiles to React.createElement calls describing the UI
  3. C.a <>...</> wrapper that groups children without adding an extra DOM node
  4. D.a stable identity React uses to match list items across renders for efficient reconciliation

Answer + AI explanation with Pro

14. Which term means: "a <>...</> wrapper that groups children without adding an extra DOM node"?

Junior
  1. A.JSX
  2. B.Props
  3. C.Component
  4. D.Fragment

Answer + AI explanation with Pro

15. Which statement is correct?

Junior
  1. A.Fragment — a <>...</> wrapper that groups children without adding an extra DOM node
  2. B.Fragment — read-only inputs passed from a parent component down to a child
  3. C.Fragment — a syntax extension that compiles to React.createElement calls describing the UI
  4. D.Fragment — a function that returns JSX for React to render and receives props as its input

Answer + AI explanation with Pro

16. What is Controlled component?

Mid
  1. A.read-only inputs passed from a parent component down to a child
  2. B.a form input whose value is driven by React state rather than by the DOM
  3. C.a syntax extension that compiles to React.createElement calls describing the UI
  4. D.a <>...</> wrapper that groups children without adding an extra DOM node

Answer + AI explanation with Pro

17. Which term means: "a form input whose value is driven by React state rather than by the DOM"?

Mid
  1. A.Controlled component
  2. B.Fragment
  3. C.Component
  4. D.Props

Answer + AI explanation with Pro

18. Which statement is correct?

Mid
  1. A.Controlled component — a stable identity React uses to match list items across renders for efficient reconciliation
  2. B.Controlled component — a form input whose value is driven by React state rather than by the DOM
  3. C.Controlled component — a function that returns JSX for React to render and receives props as its input
  4. D.Controlled component — a <>...</> wrapper that groups children without adding an extra DOM node

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Components & JSX question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers