Nuxt.js Intermediate Quiz
Explore data fetching, middleware, plugins, modules, state management, and SEO
Start the quizSample questions from this quiz
A preview of the style and depth. Try each one, then reveal the answer — or skip straight to the timed quiz.
1. What is useFetch()?
- Composable for data fetching with SSR support
- API composable
- Fetch wrapper
- Data fetcher
Show answer
Answer: Composable for data fetching with SSR support. useFetch() fetches data with SSR support, caching, reactivity. const { data, pending, error } = await useFetch('/api/data'). Auto-handles request deduplication.
2. What is useAsyncData()?
- Async handler
- Async fetcher
- Data loader
- Composable for async data with custom fetching
Show answer
Answer: Composable for async data with custom fetching. useAsyncData('key', () => fetchData()) for custom async operations. More flexible than useFetch. Supports any async function. Must provide unique key.
3. What is the difference between useFetch and useAsyncData?
- Performance difference
- useFetch is shorthand for useAsyncData with $fetch
- Different APIs
- useFetch simpler
Show answer
Answer: useFetch is shorthand for useAsyncData with $fetch. useFetch is convenience wrapper around useAsyncData + $fetch. Use useFetch for simple fetching, useAsyncData for complex logic or non-fetch operations.
Frequently asked questions
How many questions are in this Nuxt.js quiz?+
30 questions, with a 60-minute time limit. Every question includes a written explanation of the correct answer.
Is this Nuxt.js quiz free?+
Yes. Every quiz on CodexQuizz is free and needs no account. You only enter a name if you choose to post your score to the leaderboard.
What level is the intermediate quiz aimed at?+
Explore data fetching, middleware, plugins, modules, state management, and SEO
Can I use this to prepare for a Nuxt.js interview?+
Yes. The questions cover the topics that come up in Nuxt.js technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.
Ready to test your Nuxt.js?
30 questions, 60 minutes. Free, no sign-up.
Start now