Loading

Quipoin Menu

Learn • Practice • Grow

angular / Architecture of Angular
mcq
Direction: Choose the correct option

Q1.

What are the main building blocks of an Angular application?
A. Components, Modules, Services
B. Controllers, Views, Models
C. Templates, Styles, Scripts
D. HTML, CSS, JavaScript
Direction: Choose the correct option

Q2.

What is the role of an NgModule?
A. To handle HTTP requests
B. To define routes
C. To organize related code into functional units
D. To create forms
Direction: Choose the correct option

Q3.

What is a component's metadata?
A. The component's data
B. Information that tells Angular how to process a class
C. The template HTML
D. The CSS styles
Direction: Choose the correct option

Q4.

What is a service in Angular typically used for?
A. Rendering templates
B. Handling user input
C. Business logic and data sharing
D. Styling components
Direction: Choose the correct option

Q5.

How do components get access to services?
A. Through global variables
B. Through dependency injection
C. Through direct instantiation
D. Through event emitters
Direction: Choose the correct option

Q6.

What is a directive in Angular?
A. A service
B. A class that adds behavior to DOM elements
C. A module
D. A type of component
Direction: Choose the correct option

Q7.

What are pipes used for in Angular?
A. Transforming data in templates
B. HTTP requests
C. Routing
D. State management
Direction: Choose the correct option

Q8.

What is the role of the injector hierarchy?
A. Injects HTML
B. Injects CSS
C. Injects scripts
D. Manages dependency injection at different levels
Direction: Choose the correct option

Q9.

What is change detection in Angular?
A. The mechanism that updates the view when data changes
B. Detecting HTTP changes
C. Detecting route changes
D. Detecting changes in CSS
Direction: Choose the correct option

Q10.

What is the role of the `@angular/core` package?
A. Provides forms
B. Provides routing
C. Provides HTTP client
D. Provides core functionality like decorators and change detection