Angular 2 Mock Test



This section presents you various set of Mock Tests related to Angular 2. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.

Questions and Answers

Angular 2 Mock Test II

Answer : A

Explanation

Angular 2 Export array is used to export components, directives, and pipes which can then be used in other modules.

Answer : A

Explanation

Angular 2 Import array can be used to import the functionality from other Angular JS modules.

Answer : A

Explanation

A directive is a custom HTML element that is used to extend the power of HTML.

Answer : C

Explanation

Angular 2 applications have the option of error handling. This is done by including the ReactJS catch library and then using the catch function. The catch function contains a link to the Error Handler function.

Answer : C

Explanation

Angular 2 applications have the option of error handling. This is done by including the ReactJS catch library and then using the catch function. The catch function contains a link to the Error Handler function.

Answer : D

Explanation

Command Line Interface (CLI) can be used to create our Angular JS application. It also helps in creating a unit and end-to-end tests for the application.

Answer : A

Explanation

tsconfig.json file is used to give the options about TypeScript used for the Angular JS project.

Answer : D

Explanation

The target for the compilation is es5 and that is because most browsers can only understand ES5 typescript. The sourceMap option is used to generate Map files, which are useful when debugging. Hence, during development it is good to keep this option as true. The "emitDecoratorMetadata": true and "experimentalDecorators": true is required for Angular JS decorators. If not in place, Angular JS application will not compile.

Answer Sheet

Question Number Answer Key
1 A
2 A
3 A
4 C
5 C
6 D
7 A
8 D
9 B
angular2_questions_answers.htm
Advertisements