Loading

Quipoin Menu

Learn • Practice • Grow

react / Todo App Project
mcq
Direction: Choose the correct option

Q1.

In a typical React todo app, where would you store the list of todos?
A. In component state
B. In local storage
C. In a global store
D. All of the above possible
Direction: Choose the correct option

Q2.

How do you add a new todo item in a todo app?
A. Use a ref
B. Update state with the new item
C. Use a form submit
D. Directly manipulate DOM
Direction: Choose the correct option

Q3.

What is a common way to mark a todo as completed?
A. Change its text
B. Remove the todo
C. Toggle a 'completed' boolean property in the todo object
D. Use CSS class
Direction: Choose the correct option

Q4.

How would you filter todos to show only completed ones?
A. Use find()
B. Use map()
C. Use filter() on the todos array
D. Use sort()
Direction: Choose the correct option

Q5.

What hook might you use to persist todos to local storage?
A. useRef
B. useState
C. useEffect to sync with local storage
D. useReducer