CR_MS_Assessment2

CR_MS_Assessment2

CR_MS_Assessment2

The number of attempts remaining is 4

1 / 29

What is wrong here? (Coding)

2 / 29

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

2. {isSunny && 'Sunny Day'}

;

3 / 29

3. What is a callback prop?

4 / 29

4. Correct approach :

5 / 29

5. What is props drilling?

6 / 29

6. Props are used to

7 / 29

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

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

;

8 / 29

8.

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

9 / 29

9. What does useEffect do?

10 / 29

10. Why are callback props used?

11 / 29

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

11. {name}

;

12 / 29

12. What is CRUD?

13 / 29

13. What does JSX stand for?

14 / 29

14. What does map() do in React?

15 / 29

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

15. Hello

;
}

16 / 29

16. What is required when rendering lists?

17 / 29

17. What is conditional rendering?

18 / 29

18. Correct fix:

19 / 29

19. What is a React component?

20 / 29

20. What is useState used for?

21 / 29

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

21. {item}

);

22 / 29

22.

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

23 / 29

23.

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

24 / 29

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

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

;

25 / 29

25. Props are

26 / 29

26.

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

27 / 29

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

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

;

28 / 29

28. Correct fix

29 / 29

29. Editing a ticket is

Your score is