Vue.js Advanced Quiz
Master Vuex, Vue Router, performance optimization, and advanced Vue 3 features
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 the Vue reactivity system based on?
- Polling
- Proxies in Vue 3, Object.defineProperty in Vue 2
- Event emitters
- Observables
Show answer
Answer: Proxies in Vue 3, Object.defineProperty in Vue 2. Vue 3 uses ES6 Proxies for reactivity (better performance, no caveats). Vue 2 used Object.defineProperty (limitations with arrays, new properties).
2. What are the limitations of Vue 2 reactivity?
- Cannot detect property addition/deletion or array indices
- Memory leaks
- Slow performance
- No limitations
Show answer
Answer: Cannot detect property addition/deletion or array indices. Vue 2 cannot detect property addition/deletion or direct array index modification. Use Vue.set() or array methods. Vue 3 has no such limitations.
3. What is the purpose of shallowRef()?
- Creates ref with shallow reactivity (only .value is reactive)
- Weak reference
- Shallow copy
- Surface reference
Show answer
Answer: Creates ref with shallow reactivity (only .value is reactive). shallowRef() creates ref where only .value assignment is reactive. Nested properties are not reactive. Performance optimization for large objects.
Frequently asked questions
How many questions are in this Vue.js quiz?+
30 questions, with a 75-minute time limit. Every question includes a written explanation of the correct answer.
Is this Vue.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 advanced quiz aimed at?+
Master Vuex, Vue Router, performance optimization, and advanced Vue 3 features
Can I use this to prepare for a Vue.js interview?+
Yes. The questions cover the topics that come up in Vue.js technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.
Ready to test your Vue.js?
30 questions, 75 minutes. Free, no sign-up.
Start now