Components
Test
Model Test
Ebook
Index
Vue Home
Basic
4
Components
5
Directives
5
Lifecycle Hooks
24
Computed Properties
26
Props and Data
18
Events and Methods
14
Schools
Ebook
Question:
What is a Vue component?
A
A function in Vue.js
B
A reusable Vue instance
C
A built-in HTML element
D
A type of CSS selector
Note:
Not available
Show answer
Show Note
Report
Question:
How do you define a component locally in Vue.js?
A
Using the Vue.extend() method
B
Using the Vue.component() method
C
Using the new Vue() constructor
D
Using the defineComponent() method
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following is NOT a lifecycle hook in Vue.js?
A
created
B
updated
C
destroyed
D
changed
Note:
Not available
Show answer
Show Note
Report
Question:
How do you pass data from a parent component to a child component in Vue.js?
A
Using props
B
Using data
C
Using methods
D
Using computed properties
Note:
Not available
Show answer
Show Note
Report
Question:
What is the purpose of the data function in a Vue component?
A
To define methods
B
To manage component lifecycle hooks
C
To store component data
D
To handle user input events
Note:
Not available
Show answer
Show Note
Report
First
Prev
1
Next
Last
/1
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2025. Powered by
Intellect Software Ltd