11.) What is a module in Angular?
A) A function that executes background tasks
B) A collection of components and services
C) A CSS styling framework
D) A single JavaScript file
12.) What is the main decorator used to define an Angular module?
A) @NgModule
B) @Injectable
C) @Directive
D) @Component
13.) What is Dependency Injection (DI) in Angular?
A) A method to directly access the database
B) A tool for debugging Angular applications
C) A design pattern to manage dependencies in a class
D) A function that manages component state
14.) What is the purpose of the app-routing.module.ts file?
A) It sets up the database connection
B) It defines routes for navigation
C) It initializes the Angular application
D) It contains component logic
15.) What is the purpose of the styles.scss file in an Angular project?
A) Handles routing information
B) Contains global styles for the application
C) Stores API configurations
D) Defines component logic
16.) Which of the following is NOT a part of the default Angular project structure?
A) src/
B) node_modules/
C) app.component.ts
D) server.js
17.) What is the purpose of the tsconfig.json file in an Angular project?
A) It defines TypeScript configuration settings
B) It manages Angular routing
C) It contains project dependencies
D) It is used to write unit tests
18.) Which file contains the main styles for an Angular project?
A) angular.json
B) main.ts
C) app.component.html
D) styles.css or styles.scss
19.) What is the purpose of the assets/ folder in an Angular project?
A) It stores compiled TypeScript files
B) It contains static resources like images, fonts, and JSON files
C) It holds Angular service files
D) It includes unit test cases
20.) Which Angular CLI command compiles the project into a dist/ folder?
A) ng compile
B) ng serve
C) ng generate
D) ng build
Related