04th
Jul
Angular 2 MCQ

Angular 2 MCQ

  • Admin
  • 04th Jul, 2020
  • 898 Followers

Angular 2 Multiple choice interview questions

1) Angular 2 is using ___ to detect changes.

  • A. zone$.js
  • B. zone.js
  • C. Scope.js
  • D. zones.js

2) Which of the following is not a hook application life cycle?

  • A. ngOnInit
  • B. ngViewStart
  • C. ngOnChanges
  • D. ngAfterViewInit

3) Which of the following is not a feature of Angular 2?

  • A. Services
  • B. TypeScript
  • C. Multithread
  • D. Components

4) Angular 2.0 contains a logging service called ___ which is very useful feature measuring where time is spent in your application.

  • A. config.js
  • B. logging.js
  • C. diary.js
  • D. None of above

5) Angular 2 uses ___ syntax for built-in directives.

  • A. Pascal case
  • B. Snake case
  • C. Camel case
  • D. Underscore case
Download Free : Angular 2 MCQ PDF

6) In Angular 2.0, the template compilation process is ___.

  • A. synchronous
  • B. asynchronous
  • C. Both A and B
  • D. None of the above

7) Which scripting language can be used to write angular 2 apps?

  • A. Typescript
  • B. Javascript
  • C. dart
  • D. All of the Above

8) What are the new features of Angular 2?

  • A. Dependency Injection
  • B. Component-Based
  • C. Directives
  • D. All of these

9) What is the decorator used for configuring your module class?

  • A. @NgApp
  • B. @NgAngular
  • C. @NgModule
  • D. @NgConfigure

10) What is the decorator used for configuring your module class?

  • A. @NgAngular
  • B. @NgModule
  • C. @NgApp
  • D. None of the Above

11) Which of the following is true about angular component

  • A. Angular 2 Metadata can be used to add more data to an Angular JS class.
  • B. Angular 2 Services can be used to add more data to an Angular JS class.
  • C. Angular 2 Components can be used to add more data to an Angular JS class
  • D. All of the Above

12) Which of the following filter is used to convert input to all uppercase?

  • A. upper
  • B. toUpper
  • C. uppercase
  • D. None of the above

13) Angular 2 is a cross platform framework.

  • A. True
  • B. False

14) Which of the following is not a hook in Angular 2 application life cycle?

  • A. ngOnInit
  • B. ngViewStart
  • C. ngOnChanges
  • D. ngAfterViewInit

15) The ______ directive substitutes the normal href property and makes it easier to work with route links in Angular 2.

  • A. RouterLike
  • B. RouterRend
  • C. RouterLink
  • D. RouterLayer

16) which character is used for chaining multiple pipes in angular

  • A. :
  • B. \
  • C. |
  • D. -

17) Which file is responsible for startup of angular 2 project?

  • A. app.ts
  • B. index.js
  • C. main.ts
  • D. angular.cli.json

18) What is the full form of AOT in Angular 2?

  • A. Angular Open Terminal
  • B. Angular Object Templates
  • C. ahead-of-time compilation
  • D. None of Above

19) Which character is used for chaining multiple pipes in Angular?

  • A. -
  • B. :
  • C. \
  • D. |

20) What is Angular 2?

  • A. an open source JavaScript framework to build web applications in HTML and JavaScript
  • B. JavaScript library
  • C. Programming Language
  • D. None of the above

21) Which of the following is the Advantage Of Aot Compilation?

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

22) Angular 2 integrates easily with NativeScript, allowing you to code your native app in a ___ style that can run on any mobile device platform.

  • A. declarative
  • B. imperative
  • C. interrogative
  • D. exclamatory

23) Which of the following is true?

  • A. Angular 2 Template can be used to bring the modules together.
  • B. Angular 2 Service can be used to bring the modules together.
  • C. Angular 2 Component can be used to bring the modules together.
  • D. None of the above

24) Which of the following is not a feature of Angular 2?

  • A. Services
  • B. TypeScript
  • C. Multithread
  • D. Components

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

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

26) Which of the following is correct about Angular 2 Routing?

  • A. Routing helps in directing users to different pages based on the option they choose on the main page
  • B. Based on the option they choose, the required Angular Component will be rendered to the user
  • C. Both of the above
  • D. None of the above

27) What is used .angular-cli.json?

  • A. Used to link external files
  • B. Used to configure your angular 2 project
  • C. Used to install required project packages
  • D. None of the above

28) Which file is responsible for startup of angular 2 project ?

  • A. app.ts
  • B. index.js
  • C. main.ts
  • D. None of Above

29) Which of the following filter is used to convert input to all uppercase?

  • A. toUpper
  • B. upper
  • C. uppercase
  • D. None of Above

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

  • A. UI first approach
  • B. Mobile first approach
  • C. Web first approach
  • D. None of the above

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Dec
Laravel MCQ
01st
Dec
React JS MCQ
01st
Jan
AngularJs MCQ
01st
Jul
Node js MCQ
01st
Jul
JSON MCQ
01st
Jan
PHP MCQ