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

Explanation

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

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

Q 6 - Which of the following filter is used to convert input to all lowercase?

A - lowercase

B - lower

C - Both of the above.

D - None of the above.

Answer : A

Explanation

lowercase filter is used to convert the input to all lowercase.

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

A - dateformat

B - date

C - Both of the above.

D - None of the above.

Answer : B

Explanation

date filter is used to convert an input string to date format.

Print
angular2_questions_answers.htm
Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements