Loading

Quipoin Menu

Learn • Practice • Grow

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

Q1.

In a weather app, where would you typically fetch weather data from?
A. A database
B. A third-party API like OpenWeatherMap
C. A JSON file
D. Local storage
Direction: Choose the correct option

Q2.

How would you handle API keys in a weather app?
A. Share them publicly
B. Use a backend proxy
C. Hardcode them
D. Store them in environment variables
Direction: Choose the correct option

Q3.

What UI pattern is common for displaying weather forecasts?
A. A single number
B. A list of daily forecasts
C. A map
D. A chart
Direction: Choose the correct option

Q4.

How do you handle user input for city name?
A. Use a ref
B. Use a controlled input with state
C. Use a prompt
D. Use a dropdown
Direction: Choose the correct option

Q5.

What might you display while waiting for weather data?
A. Nothing
B. Error message
C. Previous data
D. A loading spinner