Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
Exercises
HTML
JavaScript
Git
CSS
PHP
Courses
Quizzes
Snippets
Tools
General Tools
Password Generator
HTML Editor
HTML Encoder
Base 64
Code Diff
JSON Beautifier
CSS Beautifier
Markdown Convertor
Find the Closest Tailwind CSS Color
Phrase encrypt / decrypt
Browser Feature Detection
Number convertor
JTW Decoder
CSS Maker
CSS Maker
CSS Maker text shadow
CSS Maker Text Rotation
CSS Maker Out Line
CSS Maker RGB Shadow
CSS Maker Transform
CSS Maker Font Face
Color Tools
Color Picker
Colors CMYK
Colors HWB
Colors HSL
Color Hex
Color mixer
Color Converter
Colors RGB
Color Contrast Analyzer
Color Gradient
String Tools
String Length Calculator
MD5 Hash Generator
Sha256 Hash Generator
String Reverse
URL Encoder
URL Decoder
Base 64 Encoder
Base 64 Decoder
Extra Spaces Remover
String to Lowercase
String to Uppercase
Word Count Calculator
Empty Lines Remover
HTML Tags Remover
Binary to Hex
Hex to Binary
Rot13 Transform on a String
String to Binary
Duplicate Lines Remover
Change theme
Dark
Light
System
Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
How To
How To NodeJs
How To Linux
How To AngularJs
How To PHP
How To HTML
How To CSS
How To Symfony
How To Git
How To Apache
How To JavaScript
How To Java
How To Vue.js
How To Python
Vue.js Basics
1/25
Which of the following directives is to used for attaching event listeners that invoke methods?
v-for
v-on
v-model
v-bind
Next >
2/25
What data binding interpolation is commonly known as “Mustache” syntax?
[]
v-model
{{}}
v-on
Next >
3/25
What is the difference between v-html and v-text?
v-text sets the textContent of the node
v-html sets the innerHTML of the element
Both of the statements above are true.
Both of the statements are false.
Next >
4/25
What is the correct way of installing the vue cli globally?
npm install vue-cli
npm install -g vue-cli
npm install vue-cli -global
npm install vue-cli -g
Next >
5/25
Which of the following event modifiers is applied only for prevent clicks on the element itself?
@click.prevent.self
@click.self.prevent
@click.stop
@click.prevent
Next >
6/25
What is used to dynamically bind one or more attributes either a component property to an expression?
v-pre
v-bind
v-once
v-html
Next >
7/25
What event modifier is used for performing the click event only for one time?
<a @click.once="dotask"></a>
<a @click.prevent-once="dotask"></a>
<a @click.stop="dotask"></a>
<a @click.passive="dotask"></a>
Next >
8/25
All are life cycle hooks in Vue except ...
beforeCreate
created
mounted
beforeMount
didMount
Next >
9/25
V-model directive is used in ...
two-way data binding where the view(UI) part of application automatically updates when data Model is changed.
two-way data binding where the view(UI) part of application does not update automatically. We need to write some custom code to make it updated every time a data model is changed.
one-way data binding where the view(UI) part of application automatically updates when data Model is changed.
one-way data binding where the view(UI) part of application does not updates automatically. Some custom code should be written for making it updated every time a data model is modified.
Next >
10/25
How can you pass data from a parent to a child component in Vue.js?
Using the $emit method
Using the $parent property
Using props
Using global state management
Next >
11/25
What is Vuex used for in a Vue.js application?
Server-side rendering
Managing global application state
Routing
Component styling
Next >
12/25
What is the default port number Vue CLI serves the application on?
3000
8080
8000
5000
Next >
13/25
How can you make a Vue.js component reactive to changes in an object that was not reactive initially?
Using Vue.set(object, key, value)
This is not possible in Vue.js
By reassigning the object
Using object.key = value
Next >
14/25
How is 'Vue.nextTick()' primarily used in Vue.js?
For error handling
To wait for the next DOM update cycle before executing code
To trigger a component update
To delay a method execution
Next >
15/25
What is the main use of the 'v-pre' directive in Vue.js?
To pre-load data before rendering a component
To skip compilation for this element and all its children
To give priority rendering to an element
To preserve the original state of an element
Next >
16/25
In Vue.js, what is the effect of using the 'v-once' directive on a component?
It destroys the component after one use
It renders the component only once, and subsequent re-renders are ignored
It listens for an event only once
It applies a CSS class to an element only once
Next >
17/25
What is the correct way to declare a reactive property in a Vue.js component that is not part of the data object?
Vue.reactiveProperty('newProp')
this.$set(this, 'newProp', value)
this.newProp = Vue.observable(value)
Vue.defineProperty(this, 'newProp', { value })
Next >
18/25
Which statement is true about the 'destroyed' lifecycle hook in Vue.js?
It is called before the component is removed from the DOM
It is used to clean up event listeners and reactive subscriptions
It can be used to prevent a component from being destroyed
It is called immediately after the component is created
Next >
19/25
How can you access the route parameters in a Vue component using Vue Router?
this.$route.params
this.params
Vue.getParams()
this.$router.params
Next >
20/25
Which method is commonly used for manual reactivity in Vue.js?
Vue.set(object, key, value)
Vue.reactify(object, key, value)
this.$forceUpdate()
Vue.observable(object)
Next >
21/25
Which Vue.js directive is used to bind an event listener to an element?
v-bind
v-model
v-on
v-for
Next >
22/25
What is the role of the 'key' attribute in a Vue.js 'v-for' loop?
To provide a unique identifier for each element in the loop
To define the index of each item in the loop
To increase performance by reusing elements
To specify the loop's execution order
Next >
23/25
In Vue.js, how do you emit an event from a child component to its parent?
this.$emit('eventName')
Vue.emit('eventName')
this.$parent.emit('eventName')
this.$dispatch('eventName')
Next >
24/25
What is the primary function of the 'computed' properties in Vue.js?
To store and manage global state
To execute functions upon event triggering
To calculate derived state based on reactive data
To bind DOM elements to component data
Next >
25/25
In Vue.js, what is the recommended way to pass data to a child component?
Using 'v-bind' to bind data to the child component's attributes
Directly setting properties on the child component instance
Using a global event bus
By modifying the child component's 'data' object
Next >
To get the result of the quiz, please provide your email address (optional)..
Get Certificate
It seems you haven't answered any questions yet. Please provide your answers to proceed.