
1 .Which of the following is correct about TypeScript?
A)Angular is based on TypeScript.
B)This is a superset of JavaScript.
C)TypeScript is maintained by Microsoft.
D)All of the above.
Correct Answer : Option (D)
2 .What is .subscribe?
A)Streams data in asynchronously
B)Streams data in synchronously
C)Both
D)None of above
Correct Answer : Option (C)
3 .What does AOT stand for?
A)Ahead-Of-Time Compilation
B)Angular Object Templates
C)Both
D)None of above
Correct Answer : Option (A)
4 .Which of the following is not a hook application life cycle?
A)ngOnChanges
B)ngViewStart
C)ngOnInit
D)None of the above
Correct Answer : Option (B)
5 .Router is part of which of the following module?
A)@angular/core
B)@angular/router
C)Both
D)None of the above
Correct Answer : Option (B)
6 .RxJS can be used for?
A)Browser
B)Server Side
C)Both
D)None of the above
Correct Answer : Option (C)
7 .Which angular decorator allows us to define the pipe name that is globally available for use in any template in the across application?
A)pipeName
B)pipeDeco
C)Pipe
D)None of the above
Correct Answer : Option (C)
8 .What is the decorator used for configuring your module class?
A)@NgModule
B)@NgApp
C)Both
D)None of the above
Correct Answer : Option (A)
9 .What is used .angular-cli.json
A)Used to link external files
B)Used to configure your angular 2 project
C)used to install required project packages
D)None of the above
Correct Answer : Option (B)
10 . Which file is responsible for startup of angular 2 project ?
A)main.ts
B)index.js
C)app.ts
D)angular.cli.json
Correct Answer : Option (A)
11 .Which of the following is the correct way to apply a filter?
A)Property-value | filter
B)Property-value || filter
C)Property-value && filter
D)None of the above
Correct Answer : Option (A)
12 .Interpolation in angular 2 is done using
A){{}}
B){{{}}}
C){{|var}}
D)!!!!
Correct Answer : Option (A)
13 .Which of the following filter is used to convert input to all uppercase?
A)upper
B)uppercase
C)toUpper
D)None of the above
Correct Answer : Option (B)
14 .Which of the following is not a hook in Angular 2 application life cycle.
A)ngOnInit
B)ngOnChanges
C)ngAfterViewInit
D)ngViewStart
Correct Answer : Option (D)
15 .Which of the following service has Angular 2, that allows us to dynamically load a component in a certain position on the page?
A)DynamicComponentLoader
B)DynamicControlLoader
C)DynamicControllerLoader
D)None of the above
Correct Answer : Option (A)
16 .Which of the following option is using Angular 2 to detect changes.
A)Scope.js
B)zone$.js
C)zone.js
D)zones.js
Correct Answer : Option (C)
17 .Needs cleanup step before compiling
A)Need to maintain AOT version of bootstrap file
B)Works only with HTML and CSS
C)Detect error at build time
D)None of the above
Correct Answer : Option (C)
18 Which of the following is not a feature of Angular 2?
A)Components
B)Multithread
C)TypeScript
D)Services
Correct Answer : Option (B)
19 .To start working with Angular 2, we need to install the _____________components.
A)Npm
B)Editor
C)GIT
D)All of the above
Correct Answer : Option (D)
20 .Which of the following option is correct about tsconfig.json?
- A) This file contains information about Angular 2 project.
- B) This file contains the system files required for Angular JS application.
- C) This file is used to give the options about TypeScript used for the Angular JS project.
- How does Angular 4 improved error handling, when an error is caused by something