Back to programming Quizzes

Vue.js Quiz ( Intermediate )

This intermediate Vue.js quiz is designed for developers who know Vue basics and want to strengthen real-world skills. It focuses on component communication, computed vs watchers, lifecycle hooks, Vue Router, Vuex basics, performance concepts, and common interview scenarios.

15
Questions
~10
Minutes
10
Min Limit

Try a few sample questions

The question bank contains 45 questions. Your scored round uses up to 15 different questions. These samples are excluded from your round; try each one before opening its answer and explanation.

1. What is the main difference between computed properties and methods?

  1. Methods are cached
  2. Computed properties are cached
  3. Methods are reactive
  4. Computed properties are asynchronous
Reveal sample answer and explanation

Answer: Computed properties are cached

Computed properties are cached based on their dependencies.

2. When should you use a watcher instead of a computed property?

  1. For synchronous calculations
  2. For derived state
  3. For performing side effects on data change
  4. For template rendering
Reveal sample answer and explanation

Answer: For performing side effects on data change

Watchers are best for reacting to data changes with side effects.

3. Which lifecycle hook is best for making API calls?

  1. beforeCreate
  2. created
  3. beforeMount
  4. destroyed
Reveal sample answer and explanation

Answer: created

created is commonly used for fetching initial data.