VueJS MCQ Questions And Answers
VueJS MCQ : This section focuses on "Basics" of VueJS. These Multiple Choice Questions (MCQ) should be practiced to improve the VueJS skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. _________ is a progressive JavaScript framework used to develop interactive web interfaces.
A. AngularJs
B. VueJS
C. ReduxJS
D. ReactJS
View Answer
Ans : B
Explanation: VueJS is a progressive JavaScript framework used to develop interactive web interfaces.
2. VueJS is an open source progressive JavaScript framework used to develop interactive web interfaces.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: VueJS is an open source progressive JavaScript framework used to develop interactive web interfaces.
3. Which of the following are the features available with VueJS?
A. Virtual DOM
B. Data Binding
C. Event Handling
D. All of the above
View Answer
Ans : D
Explanation: All of the above are the features available with VueJS.
4. To start with VueJS, we need to create the instance of Vue, which is called the?
A. root Instance
B. Vue Instance
C. root Vue Instance
D. root Vue
View Answer
Ans : C
Explanation: To start with VueJS, we need to create the instance of Vue, which is called the root Vue Instance.
5. ___________ are one of the important features of VueJS that creates custom elements, which can be reused in HTML.
A. Vue custom properties
B. Vue Components
C. Binding
D. Events
View Answer
Ans : B
Explanation: Vue Components are one of the important features of VueJS that creates custom elements, which can be reused in HTML.
6. To bind HTML class, we need to use ____________.
A. d-bind: class
B. a-bind: class
C. p-bind: class
D. v-bind: class
View Answer
Ans : D
Explanation: To bind HTML class, we need to use v-bind: class.
7. v-on is the attribute added to the DOM elements to listen to the events in VueJS.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, v-on is the attribute added to the DOM elements to listen to the events in VueJS.
8. v-show behaves same as?
A. v-else
B. v-if
C. v-for
D. v-enter
View Answer
Ans : B
Explanation: v-show behaves same as v-if. It also shows and hides the elements based on the condition assigned to it. The difference between v-if and v-show is that v-if removes the HTML element from the DOM if the condition is false, and adds it back if the condition is true. Whereas v-show hides the element, if the condition is false with display:none. It shows the element back, if the condition is true
9. which class is used to define the delay, duration, and easing curve for entering in the transition phase?
A. v-enter
B. v-enter-active
C. v-leave
D. v-leave-active
View Answer
Ans : B
Explanation: V-enter-active : This class is used to define the delay, duration, and easing curve for entering in the transition phase. This is the active state for entire and the class is available during the entire entering phase.
10. VueJS supports filters that help with text formatting.
A. True
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: VueJS supports filters that help with text formatting. It is used along with v-bind and interpolations ({{}}). We need a pipe symbol at the end of JavaScript expression for filters.
Discussion