11.) What command is used to create a new Angular project using Angular CLI?
A) ng create project-name
B) ng new project-name
C) angular new project-name
D) ng start project-name
12.) What is Angular CLI used for?
A) Running JavaScript code
B) Managing databases
C) Creating and managing Angular projects
D) Writing CSS files
13.) Which decorator is used to define an Angular component?
A) @Service
B) @Directive
C) @Component
D) @Injectable
14.) What is a Directive in Angular?
A) A function to make API calls
B) A way to manipulate the DOM
C) A module
D) A CSS class
15.) Which Angular directive is used for conditional rendering?
A) *ngIf
B) *ngFor
C) *ngModel
D) *ngSwitch
16.) Which of the following is NOT a valid Angular directive?
A) *ngIf
B) *ngFor
C) *ngClass
D) *ngRepeat
17.) What is the purpose of Angular Modules (NgModule)?
A) To create services
B) To define Angular components and dependencies
C) To style an Angular application
D) To manage HTTP requests
18.) What is the purpose of RouterModule in Angular?
A) To manage component styles
B) To store application data
C) To handle application routing
D) To handle application routing
19.) What is the default file where Angular component styles are defined?
A) styles.css
B) app.component.html
C) app.module.ts
D) app.component.css
20.) What is Lazy Loading in Angular?
A) A way to delay HTTP requests
B) A method to load only required modules on demand
C) A performance issue in Angular applications
D) A CSS technique for styling Angular components
Related