React Component Structure
In React, which file extension is commonly used for defining components using JSX syntax?
- .vux
- .jsx
- .ngc
- .rct
- .jsv
Vue Application Root
Which option best describes the role of the root instance in a Vue application?
- It provides the main entry point and controls the entire Vue app
- It compiles scripts into binaries
- It performs network requests automatically
- It manages browser cookies
- It holds all HTML elements in memory
Angular Templates
Which syntax is used in Angular templates for data binding, such as displaying a variable's value?
- u003C% variable %u003E
- {{ variable }}
- u003Cu003C variable u003Eu003E
- [[ variable ]]
- ( variable )
State in React
In a React functional component, which hook allows you to manage state?
- grabState
- setData
- createState
- useState
- initState
Vue Directive Usage
Which directive is used in Vue to display an element only when a certain condition is true?
- a-when
- d-if
- v-if
- x-show
- v-show
Angular Component Decorator
Which decorator is used in Angular to define a class as a component?
- @Component
- @Comp
- @VueComponent
- @ReactComp
- @Angularize
Virtual DOM Concept
Which framework popularized the virtual DOM for efficient UI updates?
- Angular
- Vue
- Knockout
- React
- Svelte
Props Passing in React
How do React components typically receive data from their parent components?
- Via emits
- Via directives
- Via hooks
- Via binds
- Via props
Vue Two-way Binding
Which directive in Vue enables two-way data binding, such as connecting input elements with data?
- v-two-way
- v-data
- v-model
- v-link
- v-bind
Angular Module Purpose
What is the main function of a module in Angular applications?
- To compile HTML files
- To manage browser storage
- To organize related code such as components and services
- To store style sheets
- To handle server requests
JSX Purpose in React
What is the main purpose of JSX in React applications?
- To write UI components using HTML-like syntax in JavaScript
- To store data persistently
- To import modules dynamically
- To configure build tools
- To define API endpoints
Vue Computed Properties
Which feature in Vue allows you to define values that are calculated from existing data properties?
- Methods
- Services
- Watchers
- Computed properties
- Listeners
Angular CLI Purpose
How does the CLI tool help developers when building Angular applications?
- It scaffolds projects and generates files
- It builds desktop apps
- It hosts live servers
- It performs database queries
- It scans for malware
Lifecycle Methods in React
Which React functional component hook runs code once after the component mounts?
- useData
- useFetch
- useEffect
- useUpdate
- useLayout
Vue List Rendering
What is the correct Vue directive to loop through an array of items and render them in a list?
- v-loop
- v-items
- v-for
- v-repeat
- v-each