Angular 2 mcq For Freshers & Experienced

  • Question 1) Angular 2 integrates easily with NativeScript, allowing you to code your native app in a . . . . . . . . . style that can run on any mobile device platform.
  • Question 2) Since Angular 2 defines a set of built-in directives, the . . . . . . . . method passes them in a similar way in order to make them available in the entire application in order to prevent us from code duplications.
  • Question 3) What are the new features of Angular2?
  • Question 4) Angular 2 is using . . . . . . . . to detect changes.
  • Question 5) Angular 2 can detect when component data changes, and then automatically re-render the view to reflect that change.
  • Question 6) On the opposite side of event bindings (()) lie Angular's square-bracket syntax ([]) which signify a . . . . . .
  • Question 7) Angular 2 is entirely component based. Controllers and $scope are no longer used. They have been replaced by . . . . . . . and . . . . . . . .
  • Question 8) Angular 2 components can be described using . . . . . . A . . . . . . is a way to do some meta-programming.
  • Question 9) Angular 1 core concept was $scope, and you will not find $scope in angular 2.0. Angular 2 is using . . . . . . . . to detect changes.
  • Question 10) Interpolation in angular 2 is done using
  • Question 11) Which character is used for chaining multiple pipes in Angular
  • Question 12) Which of the following is not a hook in Angular 2 application life cycle.
  • Question 13) Which of the following is the correct way to apply a filter?
  • Sharad Jaiswal
  • 03rd Jan, 2019
  • 506 Followers

Angular 2 mcq
Updated ON

03rd Jan, 2019

No. of Questions

28

Posted In

MCQ

Author

Sharad Jaiswal

Angular 2 Multiple choice interview questions

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

  • interrogative
  • exclamatory
  • declarative
  • imperative
View Answer
declarative

Q2. Since Angular 2 defines a set of built-in directives, the . . . . . . . . method passes them in a similar way in order to make them available in the entire application in order to prevent us from code duplications.

  • startup
  • constructor
  • bootstrap
  • initialization
View Answer
bootstrap

Q3. What are the new features of Angular2?

  • Component-Based
  • Directives
  • Dependency Injection
  • All of these
View Answer
All of these

Q4. Angular 2 is using . . . . . . . . to detect changes.

  • zone.js
  • zones.js
  • Scope.js
  • zone$.js
View Answer
zone.js

Q5. Angular 2 can detect when component data changes, and then automatically re-render the view to reflect that change.

  • False
  • True
  • Both
  • None

Q6. On the opposite side of event bindings (()) lie Angular's square-bracket syntax ([]) which signify a . . . . . .

  • property binding
  • class binding
  • style binding
  • Both A & B
View Answer
Both A & B

Q7. Angular 2 is entirely component based. Controllers and $scope are no longer used. They have been replaced by . . . . . . . and . . . . . . . .

  • components, directives
  • controllers, directives
  • $scopes, components
  • components, controllers
View Answer
components, directives

Q8. Angular 2 components can be described using . . . . . . A . . . . . . is a way to do some meta-programming.

  • decorators, decorator
  • typescripts, typescript
  • loaders, loader
  • controllers, controller
View Answer
decorators, decorator

Q9. Angular 1 core concept was $scope, and you will not find $scope in angular 2.0. Angular 2 is using . . . . . . . . to detect changes.

  • zone.js
  • zones.js
  • Scope.js
  • zone$.js
View Answer
zone.js

Q10. Interpolation in angular 2 is done using

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

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

  • -
  • :
  • \
  • |

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

  • ngAfterViewInit
  • ngViewStart
  • ngOnInit
  • ngOnChanges
View Answer
ngViewStart

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

  • - Property-value | filter
  • - Property-value && filter
  • Property-value & filter
  • - Property-value || filter
View Answer
- Property-value | filte

Q14. Select the syntax for two-way data binding in angular.

  • None of these
  • [target]="expression"
  • (target)="statement"
  • [(target)]="expression"
View Answer
[(target)]="expression"

Q15. Indentify the syntax of data binding in angular of one-way - form view target of data source.

  • [(target)]="expression"
  • on-target="statement"
  • [target]="expression"
  • None of these
View Answer
on-target="statement"

Q16. identify the results, if value of start parameter, is negative and greater than the size of the list or string expression, in slicepipe of angular.

  • return an empty list of string
  • returns a part of list or string
  • depends upon the text
  • return entire list or string
View Answer
return entire list or string

Q17. What is the language of the angular template.

  • html
  • java
  • css
  • javascript

Q18. Highlight the syntax for two-way data binding in angular.

  • bind-target="expression"
  • None of these
  • bindon-target="expression"
  • on-target="statement"
View Answer
bindon-target="expression"

Q19. What is not involved in writing a angular structural directive

  • Import the input, templateref, and viewcontainerref sysmbols
  • Import the directive decorator.
  • Apply the decorator to the directive class.
  • All of these
View Answer
All of these

Q20. Select the correct syntax, for adding an ngclass property binding to currentclasses in angular.

  • <div [ngclass]="currentclasses">this div is initially saveable, unchanged, and special</div>
  • <div (ngclass)="currentclasses">this div is initially saveable, unchanged, and special</div>
  • <div [currentclasses]="ngclasses"> this div is initially saveable, unchanged, and special</div>
  • <div (currentclasses)="ngclasses"> this div is initially saveable, unchanged, and special</div>
View Answer
<div [ngclass]="currentclasses">this div is initially saveable, unchanged, and special</div>

Q21. Select the correct syntax for angular template which binds property value to the results of expression first name.

  • <input {value}="firstname">
  • <input [{value}]="firstname">
  • <input (value)="firstname">
  • <input [value]="firstname">
View Answer
<input [value]="firstname">

Q22. Select the correct syntax for angular template which binds style property width to the results of expression mysize in pixels. units are optional.

  • <div (style.width.px)="mysize">
  • <div {style.width.px}="mysize">
  • <div {[style.width.px]}="mysize">
  • <div [style.width.px]="mysize">
View Answer
<div [style.width.px]="mysize">

Q23. Which of the following is not an built-in pipe in angular

  • sentencecasepipe
  • datapipe
  • uppercasepipe
  • lowercasepipe
View Answer
sentencecasepipe

Q24. whice operator is not supported by template expression in angular.

  • ++
  • &
  • =
  • +=

Q25. Angular 2 make use of the . . . . . . . module syntax.

  • ES2016
  • ES2015
  • ES2016a
  • ES2017
View Answer
ES2015

Q26. In Angular 2, applications rely upon the . . . . . . . method to load top-level components

  • loadstrap
  • bootstrap
  • bootload
  • none of above
View Answer
bootstrap

Q27. Angular 2 has a . . . . . . . service that allows us to dynamically load a component in a certain position on the page.

  • DynamicComponentLoader
  • DynaCompLoader
  • DynamicControllerLoader
  • DynamicControlLoader
View Answer
DynamicComponentLoader

Q28. If you chain multiple pipes together, they are executed

  • in parallel
  • LIFO order
  • in the order in which you specify them
  • None of above
View Answer
in the order in which you specify them

About Author :

  • Author of Angular 2 mcq

    Sharad Jaiswal

    Sharad Jaiswal is Sr. Web Developer from Noida area. He have rich experience in PHP, Angular Js, React, javascript and Node .If you any query or project on these programming you can drop your enquiry in comment section.

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.