Loading

Quipoin Menu

Learn • Practice • Grow

angular / Angular Libraries
mcq
Direction: Choose the correct option

Q1.

What is an Angular library?
A. A reusable collection of components, directives, and services
B. A database connector
C. A build tool
D. A third-party CSS framework
Direction: Choose the correct option

Q2.

How do you add an Angular library to your project?
A. ng add library-name
B. Both A and B
C. npm install library-name
D. ng install library-name
Direction: Choose the correct option

Q3.

What is Angular Material?
A. A routing library
B. A UI component library following Material Design
C. A testing library
D. A CSS framework
Direction: Choose the correct option

Q4.

How do you install Angular Material?
A. material install
B. npm install @angular/material
C. Both A and B
D. ng add @angular/material
Direction: Choose the correct option

Q5.

What is the purpose of `ng add` command?
A. To add new components
B. To install Angular CLI
C. To add and configure libraries in an Angular workspace
D. To add dependencies to package.json
Direction: Choose the correct option

Q6.

What is RxJS library used for in Angular?
A. Routing
B. Forms
C. Reactive programming with observables
D. Testing
Direction: Choose the correct option

Q7.

What is the purpose of the `@angular/forms` library?
A. Provides routing
B. Provides animations
C. Provides form handling capabilities
D. Provides HTTP client
Direction: Choose the correct option

Q8.

What does `@angular/router` provide?
A. Component creation
B. Form validation
C. Routing and navigation capabilities
D. HTTP requests
Direction: Choose the correct option

Q9.

What is the difference between a library and a module?
A. Libraries are external, modules are internal
B. A module is a library
C. A library is a distributable package; a module organizes code within an application
D. They are the same
Direction: Choose the correct option

Q10.

How do you create a custom library in Angular?
A. ng new library
B. ng create library
C. ng add library
D. ng generate library my-lib