Welcome to CHOOLS VUE JS ASSESSMENT (YOU HAVE ONLY 30 MINUTES TO COMPLETE THIS PART [20 Questions]) **** Wishing You All The Best **** Instructions : To start the quiz, please provide your name, email id and phone number. All questions are mandatory* Answering each question is required before going on to the next page of questions. Your response is subject to change at any time. After completed the quiz click the submit button. If, once the time is up, it will be automatically submitted. The report will be mailed to your email address after the quiz is finished. 1. What is the purpose of the Vue Router in a Vue.js application? It manages the application state It handles HTTP requests It facilitates component communication It enables navigation between views in a single-page application2. How can you emit a custom event from a child component to its parent in Vue.js? emitEvent() this.$emit() dispatchEvent() broadcastEvent()3. What is Vuex in Vue.js used for? It manages the application state It handles HTTP requests It facilitates component communication It enables navigation between views in a single-page application4. Which directive is used to bind an attribute dynamically in Vue.js? v-bind v- model v-show v-if5. In Vue.js, how can you conditionally render content based on a condition? v-show v-if v-bind v-for6. How can you commit a mutation in Vuex? this.commit() commit.mutation() this.$store.commit() Vuex.commit()7. What is the purpose of the "watch" option in a Vue.js component? It watches for changes in data properties It defines computed properties It sets up event listeners It handles the component's lifecycle hooks8. How can you bind a CSS class dynamically based on a condition in Vue.js? v- bind-class v-class v-bind:class v-style9. How can you handle user input with debounce in Vue.js? v-debounce v-throttle v-input-debounce v-model-debounce10. How can you access the Vuex store in a Vue component? this.$store Vue.store this.store Vue.$store11. What is the purpose of the "el" property in a Vue instance? It specifies the element where the Vue app will be mounted It defines the data properties of the Vue app It sets the event listeners for the Vue app It represents the Vue instance itself12. What is the purpose of the "template" option in a Vue component? It defines computed properties It specifies the HTML template for the component It sets up event listeners It handles the component's lifecycle hooks13. What is the purpose of lazy loading routes in Vue Router? It delays the loading of the entire Vue app It speeds up the initial loading of the Vue app It reduces the size of the Vue app It improves the performance of the Vue app14. How do you dynamically bind a component to a route in Vue Router? <router- bind> . <router-link> <route-component> <router-view>15. How can you handle 404 errors (page not found) in Vue Router? Use the <not- found> component Configure a wildcard route Set up a special route for 404 Use the $404 method in Vue Router16. What is the purpose of the "key" attribute in Vue.js when using v-for? It specifies the data key for the component It defines a unique identifier for each item in the list It sets up event listeners d. It conditionally renders an element It conditionally renders an element17. How do you import a Vue.js component into another component? import Component from 'Component.vue'; require('Component.vue'); import { Component } from 'vue'; import Component from './Component.vue';18. How can you loop through an array and render items in Vue.js? v-for v-if v- loop v-repeat19. Which directive is used for two-way data binding in Vue.js? v-model v-bind v-show v-if20. What is the lifecycle hook that is called after the Vue instance has been created? created mounted updated destroyed5 out of 4Time is Up!