Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

What is it called when you "compile the application in the browser before launching the app"?

Answer»

What is it CALLED when you "compile the application in the browser before launching the APP"?
CHOOSE the CORRECT option from below list
(1)Ahead-of-Time (AOT) Compilation
(2)PreLaunch Compilation
(3)Just-In-Time (JIT) Compilation
(4)Static Compilation

Answer:-(3)Just-In-Time (JIT) Compilation

2.

Which of the following helps you define Metadata for a class?

Answer»

Which of the following helps you define METADATA for a class?
Choose the correct OPTION from below list
(1)Using Templates
(2)Using COMPONENTS
(3)Using Services
(4)Using Decorator

Answer:-(4)Using Decorator

3.

The following are true about Services, except ________

Answer»

The following are true about Services, except ________
Choose the correct OPTION from below LIST
(1)Services are designed to do a lot of things at a TIME
(2)Components MUST be as lean as possible and all non-trivial tasks should be delegated to Services
(3)Services are mostly injected to components using DI
(4)SERVICE is typically a Class with functions

Answer:-(1)Services are designed to do a lot of things at a time

4.

The following are all metadata, except ________

Answer»

The following are all METADATA, except ________
Choose the correct option from below list
(1)pipes
(2)template
(3)Component
(4)Injectable()

ANSWER:-(2)template

5.

The following are all Directives, except __________

Answer»

The FOLLOWING are all DIRECTIVES, EXCEPT __________
Choose the CORRECT option from below list
(1)Attribute
(2)Structural
(3)Component
(4)MODULE

Answer:-(4)Module

6.

In order to bind data from view to component class, you can use _____.

Answer»

In ORDER to bind data from view to component class, you can use _____.
Choose the CORRECT OPTION from below list
(1)Property binding
(2)Interpolation binding
(3)Event binding

Answer:-(3)Event binding

7.

The following are all Angular metadata Decorators, except ________

Answer»

The following are all Angular metadata DECORATORS, except ________
CHOOSE the correct option from below list
(1)Bindable
(2)INJECTABLE()
(3)INJECT
(4)Component

Answer:-(1)Bindable

8.

Which of the following is an Attribute Directive?

Answer»

Which of the following is an Attribute Directive?
Choose the CORRECT option from below LIST
(1)NgFor
(2)NGMODEL
(3)NgIf
(4)NgHide

Answer:-(2)NgModel

9.

Which directive lets you change the rendered view by adding and removing elements from the Document Object Model?

Answer»

Which directive lets you CHANGE the RENDERED view by ADDING and removing elements from the Document Object Model?
Choose the correct OPTION from below list
(1)Attribute
(2)Structural
(3)Component

Answer:-(2)Structural

10.

Components can be used with ____________.

Answer»

Components can be used with ____________.
Choose the CORRECT option from below list
(1)None of the OPTIONS
(2)Both Attributes and TAGS
(3)Attributes only
(4)Tags only

Answer:-(2)Both Attributes and Tags

11.

Which of the following are valid metadata properties?

Answer»

Which of the following are valid metadata properties?
Choose the correct option from below list
(1)templateUrl
(2)All the options
(3)PROVIDERS
(4)pipes

Answer:-(2)All the options

12.

______ are mandatory parameter in components.

Answer»

______ are mandatory PARAMETER in components.
Choose the correct option from below list
(1)Templates
(2)Selectors
(3)Providers

Answer:-(1)Templates

13.

An app can have one or no modules present.

Answer»

An APP can have one or no modules present.
Choose the CORRECT option from below list
(1)True
(2)False

Answer:-(2)False

14.

The Component decorator defines how an application should be compiled and launched.

Answer»

The COMPONENT decorator defines how an application should be COMPILED and launched.
Choose the correct option from below LIST
(1)False
(2)True

Answer:-(1)False

15.

NgFor and NgIf are examples of _________

Answer»

NgFor and NgIf are examples of _________
Choose the CORRECT option from below list
(1)ATTRIBUTE
(2)Component
(3)Structural

Answer:-(3)Structural

16.

Which directive lets you modify the behavior of another Directive?

Answer»

Which directive LETS you modify the behavior of another Directive?
Choose the CORRECT OPTION from below LIST
(1)Component
(2)ATTRIBUTE
(3)Structural

Answer:-(2)Attribute

17.

What are the types of Angular View Classes that can be associated to a Module?

Answer»

What are the TYPES of Angular View CLASSES that can be associated to a Module?
Choose the correct option from below list
(1)DECORATORS, SERVICES and Components
(2)Services, Decorators and Templates
(3)Components, Directives and Pipes
(4)Directives, Templates and Pipes

Answer:-(3)Components, Directives and Pipes

18.

Templates can also be added using URLs of the file containing code.

Answer» TEMPLATES can also be added using URLs of the FILE containing code.
Choose the correct option from below LIST
(1)False
(2)TRUE

Answer:-(2)True
19.

Which scripting language can be used to write Angular 2 apps?

Answer»

Which scripting LANGUAGE can be USED to WRITE Angular 2 apps?
CHOOSE the correct option from below list
(1)Only Node.js
(2)Only JavaScript
(3)Only TypeScript
(4)TypeScript or JavaScript

Answer:-(4)TypeScript or JavaScript

20.

Interpolation uses ________.

Answer»

Interpolation USES ________.
CHOOSE the correct OPTION from below list
(1)[]
(2){{}}
(3)[()]

Answer:-(2){{}}

21.

______ element property is used to tell angular to insert the instance of component in the HTML file.

Answer»

______ element property is used to tell ANGULAR to INSERT the INSTANCE of COMPONENT in the HTML file.
Choose the correct option from below list
(1)Templates
(2)Providers
(3)Selectors

Answer:-(3)Selectors

22.

Angular 2 uses ______ Dependency Injection.

Answer» ANGULAR 2 uses ______ Dependency Injection.
Choose the correct option from below LIST
(1)Component
(2)HORIZONTAL
(3)Hierarchical
(4)Service

Answer:-(3)Hierarchical
23.

Which of the following is one of the blocks of Angular 2 architecture?

Answer»

Which of the following is one of the BLOCKS of Angular 2 architecture?
CHOOSE the correct option from below LIST
(1)Router
(2)None of the options
(3)Both the options
(4)Pipes

Answer:-(2)None of the options

24.

What happens when the following code is encountered by Angular?

Answer»

What happens when the following code is ENCOUNTERED by Angular?
< tr>
< td id="tableData4" colspan={{2 * 2}}>
< /td>
< /tr>`
Choose the correct option from below list
(1)None of the options
(2)The < td> colspan is set to empty VALUE
(3)A template parse error is thrown since colspan is a native HTML ATTRIBUTE
(4)The < td > colspan is set to '4' since Angular EVALUATES the interpolated expression

Answer:-(3)A template parse error is thrown since colspan is a native HTML attribute

25.

There can be only one component per DOM element.

Answer»

There can be only ONE component PER DOM element.
Choose the correct OPTION from below list
(1)TRUE
(2)False

Answer:-(1)True

26.

How will you make sure that a single instance of any Service is available throughout the app?

Answer»

How will you make sure that a single instance of any Service is available THROUGHOUT the app?
Choose the CORRECT option from below list
(1)Register the service using 'imports' and ADD it to the Root Component
(2)Register the service using 'providers' and add it to the Root Module-------------
(3)Declare the service in the Root Component
(4)None of the options

Answer:-(2)Register the service using 'providers' and add it to the Root Module

27.

Root module class by convention is named as _______.

Answer» ROOT module class by CONVENTION is named as _______.
Choose the correct option from below LIST
(1)MainModule
(2)RootModule
(3)AppModule

Answer:-(3)AppModule
28.

Which of the following is an advantage of lazy loading?

Answer»

Which of the following is an advantage of lazy LOADING?
Choose the correct option from below list
(1)Loads the features only on DEMAND
(2)All of the options
(3)Speeds up the application load time
(4)Extends lazy LOADED features without EXPANDING initial load size

Answer:-(2)All of the options

29.

Property binding is defined using _________.

Answer» PROPERTY binding is DEFINED using _________.
CHOOSE the correct OPTION from below list
(1){{}}
(2)[]
(3)[()]

Answer:-(2)[]
30.

There can be only one service in a component.

Answer»

There can be only one service in a component.
Choose the correct option from below list
(1)TRUE
(2)False

Answer:-(2)False

31.

Angular 2 is written on top of Angular 1.5.x.

Answer»

Angular 2 is written on top of Angular 1.5.x.
Choose the CORRECT option from below list
(1)FALSE
(2)True

Answer:-(1)False

32.

Services are included in components using ______.

Answer» SERVICES are included in COMPONENTS USING ______.
Choose the correct option from below list
(1)Directives
(2)Template
(3)Provider

Answer:-(3)Provider
33.

Services are identified using the decorator ______.

Answer»

Services are identified USING the decorator ______.
CHOOSE the correct OPTION from below list
(1)ngServices
(2)services
(3)Injectable

Answer:-(3)Injectable

34.

How many lifecycle methods does Angular offer apart from a Component's constructor()?

Answer»

How MANY lifecycle methods does Angular offer apart from a COMPONENT's constructor()?
Choose the correct OPTION from below list
(1)7
(2)8
(3)4
(4)6

Answer:-(2)8

35.

A _______ acts as a mediator between application/business logic and the application presentation layer.

Answer»

A _______ acts as a mediator between APPLICATION BUSINESS logic and the application presentation layer.
Choose the correct option from below LIST
(1)Module
(2)Component
(3)TEMPLATE
(4)Service

Answer:-(2)Component