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. Which Vue.js lifecycle hook is called when a component is about to be destroyed? beforeCreate beforeMount beforeUpdate beforeDestroy2. 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 element3. In Vue.js, how can you conditionally render content based on a condition? v-show v-if v-bind v-for4. How do you dynamically bind a component to a route in Vue Router? <router- bind> . <router-link> <route-component> <router-view>5. What is the lifecycle hook that is called after the Vue instance has been created? created mounted updated destroyed6. How do you create a computed property in Vue.js? computed: {} computed() {} computed = {} computed = function() {}7. 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 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. In Vue.js, what is the purpose of the "ref" attribute? It defines a reference to a child component It sets the data property for a component It creates a computed property It specifies the root element of a component10. 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 application11. How can you define a data property in a Vue component? data: [] data = {} data() {} data: function() {}12. What is Vue.js? A server-side scripting language A front-end JavaScript framework A database management system A programming language13. 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 component14. How can you commit a mutation in Vuex? this.commit() commit.mutation() this.$store.commit() Vuex.commit()15. How can you bind inline styles dynamically in Vue.js? v-bind:style v-inline-style v-style v-styles16. How can you access the Vuex store in a Vue component? this.$store Vue.store this.store Vue.$store17. How do you create a Vue.js filter? Vue.filter() filters: {} filter() {} this.$filter()18. What is the purpose of the "provide/inject" feature in Vue.js? It provides a way to inject CSS styles into components It establishes a connection between parent and child components It manages the state of the Vuex store It controls the routing of the Vue app19. 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 dynamically20. 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 array5 out of 4Time is Up!