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

Services are a set of code that can be shared by different components of an application. So for example if you had a data component that picked data from a database, you could have it as a shared service that could be used across multiple applications.

Answer : A

Explanation

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

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 uppercase?

A - uppercase

B - upper

C - Both of the above.

D - None of the above.

Answer : A

Explanation

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

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