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. How can you bind a CSS class dynamically based on a condition in Vue.js? v- bind-class v-class v-bind:class v-style2. Which Vue.js lifecycle hook is called when a component is about to be destroyed? beforeCreate beforeMount beforeUpdate beforeDestroy3. What is the purpose of the "v-pre" directive in Vue.js? It prevents a component from being re-rendered It skips compilation for this element and all its children It pre-fetches data before rendering It pre-renders the component4. 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 hooks5. How can you navigate to a different route programmatically in Vue Router? this.$route.navigate() this.$router.navigate() Vue.navigate() Vue.$router.navigate()6. What is the purpose of the "meta" field in Vue Router routes? It defines metadata for the Vue app It sets up event listeners It specifies the methods that can be called in the template It handles the component's lifecycle hooks7. How can you create a mixin in Vue.js? Vue.mixin() mixin: {} mixins: {} this.$mixin()8. In Vue.js, what does the "v-cloak" directive do? It defines a custom directive It hides an element until Vue's compilation is done It creates a transition effect It binds a class dynamically9. What is the purpose of the "v-on" directive in Vue.js? It binds an attribute dynamically It sets up event listeners It conditionally renders an element It loops through an array10. How can you handle user input with debounce in Vue.js? v-debounce v-throttle v-input-debounce v-model-debounce11. 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 hooks12. What is the purpose of the "methods" option in a Vue component? It defines the data properties of the component It specifies the methods that can be called in the template It sets up event listeners for the component It handles the component's lifecycle hooks13. How can you commit a mutation in Vuex? this.commit() commit.mutation() this.$store.commit() Vuex.commit()14. What is the purpose of the "props" option in a Vue.js component? It defines computed properties It specifies the methods that can be called in the template It sets up event listeners It receives data from a parent component15. How do you create a Vue.js filter? Vue.filter() filters: {} filter() {} this.$filter()16. How can you bind inline styles dynamically in Vue.js? v-bind:style v-inline-style v-style v-styles17. 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 element18. How can you loop through an array and render items in Vue.js? v-for v-if v- loop v-repeat19. How can you emit a custom event from a child component to its parent in Vue.js? emitEvent() this.$emit() dispatchEvent() broadcastEvent()20. 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 application5 out of 4Time is Up!