Angular 2 Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to Angular 2. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Answer : D

Explanation

All of the above options are correct.

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 : 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 : C

Explanation

'npm:': 'node_modules/' tells the location in our project where all the npm modules are located. The mapping of app: 'app' tells the folder where all our applications files are loaded.

Q 7 - Which of the following filter is used to convert an input string to percentage format.

A - percentage

B - percent

C - Both of the above.

D - None of the above.

Answer : B

Explanation

percent filter is used to convert an input string to percentage format.

Print
angular2_questions_answers.htm
Advertisements