CR_MS_Assessment2

CR_MS_Assessment2

CR_MS_Assessment2

The number of attempts remaining is 4

1 / 29

What will this render? (Coding)
function App() {
return

1. Hello

;
}

2 / 29

What will this show? (Coding)
const isSunny=true;
return

2. {isSunny && 'Sunny Day'}

;

3 / 29

3. What is a React component?

4 / 29

4. Why are callback props used?

5 / 29

5. Correct fix

6 / 29

6. What is props drilling?

7 / 29

7.

What does this return? (Coding)
const [count,setCount]=useState(0);

8 / 29

8.

What is wrong here? (Coding)
setItems(items.push(newItem));

9 / 29

9. What is CRUD?

10 / 29

What will this render? (Coding)
const items = ["A", "B"];
return items.map((item, i) =>

10. {item}

);

11 / 29

What will this show? (Coding)
const rating = 4.8;
return

11. {rating > 4.5 && "Recommended"}

;

12 / 29

12. What is useState used for?

13 / 29

13.

What will happen here? (Coding)
useEffect(() => {
console.log("Hello");
}, []);

14 / 29

14. Props are

15 / 29

15.

What will this do? (Coding)
setCount(count + 1);
setCount(count + 1);

16 / 29

What will be displayed? (Coding)
const name='Rahul';
return

16. {name}

;

17 / 29

17. What is a callback prop?

18 / 29

What will this render? (Coding)
const rating = 4.5;
return

18. {rating > 4.5 ? "Recommended" : "Normal"}

;

19 / 29

19. Correct approach :

20 / 29

20. Correct fix:

21 / 29

21. Props are used to

22 / 29

22. What does map() do in React?

23 / 29

23. What is conditional rendering?

24 / 29

24. Editing a ticket is

25 / 29

25. What is required when rendering lists?

26 / 29

26. What does useEffect do?

27 / 29

27. What does JSX stand for?

28 / 29

What will this render? (Coding)
const items = [];
return

28. {items.length && "Items exist"}

;

29 / 29

What is wrong here? (Coding)

Your score is