Frameworks Flashcards
7 cards from real Web Development practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Frameworks flashcards as text
In Vue.js, which directive is used to bind data to an HTML attribute?
Answer: v-bind
v-bind dynamically binds one or more attributes to an expression, while v-model is specifically for two-way form input binding.
What is the purpose of Angular's NgModule decorator?
Answer: To declare and organize a cohesive block of application functionality
NgModule organizes components, directives, and pipes into cohesive blocks and configures the injector and compiler.
Which React hook should you use to run a side effect only once after the initial render?
Answer: useEffect with an empty dependency array []
Passing an empty array [] as the second argument to useEffect tells React to run the effect only after the first render.
In Next.js, what does the `getStaticPaths` function do?
Answer: Specifies which dynamic route paths to pre-render at build time
getStaticPaths defines the list of paths that will be statically generated for pages with dynamic route segments.
What is Vuex primarily used for in Vue.js applications?
Answer: Centralized state management
Vuex is a state management pattern and library for Vue.js applications that serves as a centralized store for all component states.
In Express.js, what does `app.use()` do?
Answer: Mounts middleware functions at a specified path
app.use() mounts middleware functions that execute on every request or requests matching a specified path prefix.
Which Angular feature allows you to lazy-load feature modules?
Answer: RouterModule with loadChildren
RouterModule's loadChildren property accepts a dynamic import that Angular uses to lazy-load the module only when that route is activated.
How this page was made: written with AI tools. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy