About Angular 2

Following are some of the multiple choice questions on the Angular 2 with answers that will help the students in developing their knowledge.

Angular 2 MCQ

1. What is used .angular-cli.json

  • Used to link external files
  • Used to configure your angular 2 project
  • used to install required project packages
  • none of the above

2. AngularJS 2.0 is a ?

  • library
  • Framework
  • Operating System
  • programming Language

3. Which character is used for chaining multiple pipes in Angular

  • :
  • -
  • \
  • |

4. Which of the following filter is used to convert input to all uppercase?

  • upper
  • uppercase
  • toUpper
  • none of the above

5. Which of the following service has Angular 2, that allows us to dynamically load a component in a certain position on the page?

  • DynamicComponentLoader
  • DynamicControlLoader
  • DynamicControllerLoader
  • None of the above

6. Which of the following option is using Angular 2 to detect changes.

  • Scope.js
  • zone$.js
  • zone.js
  • zones.js

7. Which of the following is the New Features Of Angular2?

  • Component-Based
  • Dependency Injection
  • Use of TypeScript
  • All of the Above

8. Which of the following is the Advantage Of Aot Compilation?

  • Needs cleanup step before compiling
  • Need to maintain AOT version of bootstrap file
  • Works only with HTML and CSS
  • Detect error at build time

9. Angular 2 still does not provide nested components.

  • False
  • True

10. Which of the following option is correct about tsconfig.json?

  • This file contains information about Angular 2 project.
  • This file contains the system files required for Angular JS application.
  • This file is used to give the options about TypeScript used for the Angular JS project.
  • All of the above

11. To start working with Angular 2, we need to install the _____________components.

  • Npm
  • Editor
  • GIT
  • All of the above

12. Which of the following is not a feature of Angular 2?

  • Components
  • Multithread
  • TypeScript
  • Services

13. What is the decorator used for configuring your module class?

  • @NgApp
  • @NgModule
  • @NgAngular
  • @NgConfigure

14. Which file is responsible for startup of angular 2 project ?

  • main.ts
  • index.js
  • app.ts
  • angular.cli.json

15. Angular 2 is an open source JavaScript framework to build web applications in HTML and JavaScript. It has been conceived as a......

  • UI first approach
  • Web first approach
  • Mobile first approach
  • None of the above

16. What does AOT stand for?

  • Angular Object Templates
  • ahead-of-time compilation
  • Angular Open Terminal
  • none of the above

17. Interpolation in angular 2 is done using

  • {{}}
  • {{|var}}
  • {{{}}}
  • !!!!

18. Which of the following is the correct way to apply a filter?

  • - Property-value || filter
  • - Property-value && filter
  • - Property-value | filter
  • none of the above

19. Angular 2 integrates easily with Native Script, allowing you to code your native app in a . . . . . . . . . style that can run on any mobile device platform.

  • declarative
  • imperative
  • interrogative
  • exclamatory

20. Which of the following is not a hook in Angular 2 application life cycle.

  • ngOnChanges
  • ngOnInit
  • ngAfterViewInit
  • ngViewStart

Enjoyed the Quiz. Share this with friends

Comments

Add Your Review

Your email address will not be published.

Subscribe to Newsletter!

Subscribe to get latest updates and information.