Loading

Quipoin Menu

Learn • Practice • Grow

angular / Angular Modules
mcq
Direction: Choose the correct option

Q1.

What is the purpose of the `declarations` array in a module?
A. To export components
B. To list components, directives, and pipes belonging to the module
C. To list services provided by the module
D. To import other modules
Direction: Choose the correct option

Q2.

What does the `imports` array do in an NgModule?
A. Imports services
B. Imports other modules needed by this module
C. Imports components
D. Imports templates
Direction: Choose the correct option

Q3.

What is the purpose of `providers` array?
A. To provide component templates
B. To provide HTTP interceptors
C. To list services available in the application
D. To provide routing configuration
Direction: Choose the correct option

Q4.

What does the `exports` array do?
A. Makes components, directives, and pipes available to importing modules
B. Exports configuration
C. Exports services
D. Exports the module itself
Direction: Choose the correct option

Q5.

What is the root module typically called?
A. RootModule
B. MainModule
C. CoreModule
D. AppModule
Direction: Choose the correct option

Q6.

What is a feature module?
A. The root module
B. A module with many features
C. A lazy-loaded module
D. A module that organizes related functionality
Direction: Choose the correct option

Q7.

What is a shared module?
A. A module for routing
B. A module that exports commonly used components/pipes for reuse
C. A module for HTTP
D. A module for sharing data
Direction: Choose the correct option

Q8.

What is a core module?
A. A lazy-loaded module
B. A module for singleton services used application-wide
C. The root module
D. A module for core features
Direction: Choose the correct option

Q9.

Can a module be imported multiple times?
A. Yes, any number of times
B. No, modules are singletons and should not be imported multiple times
C. Only core modules
D. Only feature modules
Direction: Choose the correct option

Q10.

What is the `forRoot()` pattern in modules?
A. A convention for configuring module-level providers
B. A method for root routing
C. A method for lazy loading
D. A method for component creation