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

Explanation

Angular 2 Bootstrap array is used to tell Angular which components need to be loaded so that its functionality can be accessed in the application. Once you include the component in the bootstrap array, you need to declare them so that they can be used across other components in the Angular application.

Answer : A

Explanation

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

Answer : C

Explanation

There are two types of dependencies, first is the dependencies and then there are dev dependencies. The dev ones are required during the development process and the others are needed to run the application.

Q 6 - 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.

Answer : C

Explanation

filter are applied using pipe character.

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

A - currency

B - amount

C - Both of the above.

D - None of the above.

Answer : A

Explanation

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

Print
angular2_questions_answers.htm
Advertisements