React Fundamentals
0% completed
Previous
Next
Course
Discussions
Quiz
Question 1
Which of the following is true about JSX?
A
JSX must always be written in a separate file
B
JSX is a syntax extension that gets compiled to JavaScript
C
JSX can only contain one element
D
JSX is not required in React applications
Reset Quiz
Check Answer
Question 2
What is the correct way to insert a JavaScript expression inside JSX?
A
<h1> {{2 + 2}} </h1>
B
<h1> 2 + 2 </h1>
C
<h1> (2 + 2) </h1>
D
<h1> {2 + 2} </h1>
Reset Quiz
Check Answer
Question 3
What does JSX stand for in React?
A
JavaScript Extension
B
Java Syntax Extension
C
JavaScript XML
D
JavaScript XHTML
Reset Quiz
Check Answer
Question 4
Why do JSX elements need to be wrapped in a single parent element?
A
Because JSX must return a single root element
B
Because JavaScript does not allow multiple elements in a return statement
C
Because JSX only supports div as a wrapper element
D
Because JSX only supports div as a wrapper element
Reset Quiz
Check Answer
.....
.....
.....
Like the course? Get enrolled and start learning!
Enroll
Previous
Next