Angular/Most Asked Angular MCQ Questions Sample Test,Sample questions

Question:
  Which Angular Directive is used to disable an Element? 

1.ng-disabled

2. ng-hide

3. ng-false

4.None of them

Posted Date:-2021-10-27 10:15:15


Question:
 Angular Js is based on 

1.MVC Architecture

2. Decorator pattern

3. MVVM Architectural pattern

4. Observer Pattern

Posted Date:-2021-10-27 10:15:15


Question:
 Router is part of which of the following module?

1.@angular/core

2.@angular/router

3.Both

4.None of above

Posted Date:-2021-10-27 10:15:15


Question:
 The [] parameter in the module definition is used to define dependent modules.

1.TRUE

2.FALSE

3.Can be true or false

4.Cannot say

Posted Date:-2021-10-27 10:15:15


Question:
 Which character is used for chaining multiple pipes?

1.|

2.:

3.Both

4.None of above

Posted Date:-2021-10-27 10:15:15


Question:
 Which directive initializes an AngularJS application? 

1.ng-init

2. ng-app

3. ngSrc

4. ng-start

Posted Date:-2021-10-27 10:15:15


Question:
 Which of the following statement is true in the case of $routeProvider?

1.It is a service.

2.It is a module.

3.It is a component.

4.None of the above.

Posted Date:-2021-10-27 10:15:15


Question:
 Which of the following template can be used to write AngularJS directives?

1.Tag

2.Attribute

3.Class name

4.All of the above

Posted Date:-2021-10-27 10:15:15


Question:
 Who is known as the father of AngularJS?

1.Brad

2.Green

3.Misko

4.Hevery

Posted Date:-2021-10-27 10:15:15


Question:
 Who is sometimes called as father of Angularjs?

1.Brad Green

2.Misko Hevery

3.Brad Richardson

4.Chuck Jazdzewski

Posted Date:-2021-10-27 10:15:15


Question:
. AngularJS expressions are written using (expression)    

1.(expression)

2.{{expression}}

3.{{{expression}}}

4.[expression]

Posted Date:-2021-10-27 10:15:15


Question:
A module created by using the AngularJS function is called?

1.module()

2.module()

3.mod()

4.angular module()

Posted Date:-2021-10-27 10:15:15


Question:
Angular 1.x is written in Java  

1.Java

2.Javascript

3.TypeScript

4.None of them

Posted Date:-2021-10-27 10:15:15


Question:
AngularJS applications are a mix of 

1.HTML and PHP

2. HTML and JavaScript

3. HTML and CrossScript

4. HTML and AngularScript

Posted Date:-2021-10-27 10:15:15


Question:
AngularJS applications are a mix of which of the following technologies?

1.HTML and PHP

2.HTML and JavaScript

3.HTML and TypeScript

4.PHP and JavaScript

Posted Date:-2021-10-27 10:15:15


Question:
AngularJS directives are used in ____________ 

1.Module

2. Controller

3. Service

4.View

Posted Date:-2021-10-27 10:15:15


Question:
AngularJS directives can be written in Templates as 

1.Tag

2. Attribute

3. Class name

4. All of the above

Posted Date:-2021-10-27 10:15:15


Question:
hich of following is not valid AngularJs Filter    

1.lowercase

2.orderby

3.email

4.currency

Posted Date:-2021-10-27 10:15:15


Question:
How do you share data between controller and view?  

1.using Model

2. using services

3. using factory

4. using $scope

Posted Date:-2021-10-27 10:15:15


Question:
How many $RootScope an AngularJS application can have?

1.Zero

2.One

3.Two

4.Infinity

Posted Date:-2021-10-27 10:15:15


Question:
How Observables are Used?

1.The Reactive Forms Module uses reactive programming and Observables for listening to user input

2.The @output() decorator in a component takes an EventEmitter instance. EventEmitter is a subclass of the RxJS Observable

3.Both

4.None of above

Posted Date:-2021-10-27 10:15:15


Question:
ngularJS is perfect for?

1.SPAs

2.MPAs

3.DPAs

4.CPAs

Posted Date:-2021-10-27 10:15:15


Question:
On which of the Architectural pattern AngularJS is based?

1.Observer Pattern

2.Decorator pattern

3.MVC Architecture pattern

4.MVVM Architectural pattern

Posted Date:-2021-10-27 10:15:15


Question:
RxJS can be used for?

1.Browser

2.Server Side

3.Both

4.None of above

Posted Date:-2021-10-27 10:15:15


Question:
What does AOT stand for?

1.ahead-of-time compilation

2.Angular Object Templates

3.Both

4.None of above

Posted Date:-2021-10-27 10:15:15


Question:
What is $routeProvider ? 

1.A service

2. A module

3. A component

4. using $scope

Posted Date:-2021-10-27 10:15:15


Question:
What is $routeProvider ?    

1.A service

2. ng-hide

3.A module

4.A component

Posted Date:-2021-10-27 10:15:15


Question:
What is .subscribe?

1.Streams data in asynchronously

2.Streams data in synchronously

3.Both

4.None of above

Posted Date:-2021-10-27 10:15:15


Question:
What is correct way to apply multiple filters in AngularJs. 

1.{{ expression | filter1 | filter2 | ... }}

2. {{ expression | {filter1} | {filter2} | ... }}

3. {{ expression - {filter1} - {filter2} - ... }}

4. {{ {filter1} | {filter2} | ...-expression}}

Posted Date:-2021-10-27 10:15:15


Question:
What is deep linking in AngularJS?

1.Deep linking is an SEO-based technique.

2.Deep linking refers to linking various views to the main page.

3.Deep linking allows you to encode the state of an application in the URL so that it can be bookmarked.

4.All of the Above

Posted Date:-2021-10-27 10:15:15


Question:
What is deep linking in AngularJs?

1.Deep linking is a SEO based technique.

2. Deep linking refers to linking various views to a central page.

3. Deep linking allows you to encode the state of application in the URL so that it can be bookmarked.

4. All of the Above

Posted Date:-2021-10-27 10:15:15


Question:
What is the decorator used for configuring your module class?

1.@NgModule

2.@NgApp

3.Both

4.None of above

Posted Date:-2021-10-27 10:15:15


Question:
What is the use of Angular Controllers in the application?

1.Angular controllers are used for controlling the data.

2.Angular controllers are used for displaying the data.

3.Both of the above are correct.

4.None of the above is correct.

Posted Date:-2021-10-27 10:15:15


Question:
What will be the output for the following code?

1.The output is 1

2.The output is 15

3.The output is 19

4.The output is 2

Posted Date:-2021-10-27 10:15:15


Question:
Which angular decorator allows us to define the pipe name that is globally available for use in any template in the across application?

1.pipeName

2.pipeDeco

3.Pipe

4.None of the above

Posted Date:-2021-10-27 10:15:15


Question:
Which Angular directive is used to binds the value of HTML controls (input select textarea) to application data?

1.ng-cloak

2. ng-bind

3. ng-model

4. ng-blur

Posted Date:-2021-10-27 10:15:15


Question:
Which components can be injected as a dependency in AngularJS?   

1.Value

2.Factory

3.Constant

4.Application Module

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following community Angular JS belong to?

1.Twitter

2.Facebook

3.Google

4.Microsoft

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following components can be injected as a dependency in AngularJS?

1.Value

2.Factory

3.Constant

4.Application Module

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following directive allows us to use a form in AngularJs?  

1.ng-include

2. ng-form

3. ng-directive

4. ng-bind

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following directive is used to bind the application data to the HTML view in AngularJS?

1.ng-app directive

2.ng-model directive

3.ng-bind directive

4.ng-init directive

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following directive is used to bind the value of HTML controls to application data?

1.ng-app

2.ng-init

3.ng-model

4.ng-hide

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following is an advantage of AngularJS?AngularJS code is unit testable.

1.AngularJS code is unit testable.

2.AngularJS provides reusable components.

3.AngularJS uses dependency injection and makes use of separation of concerns.

4.All of the above

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following is correct about TypeScript?

1.Angular is based on TypeScript.

2.This is a superset of JavaScript.

3.TypeScript is maintained by Microsoft.

4.All of the above.

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following is not a hook application life cycle?

1.ngOnChanges

2.ngViewStart

3.ngOnInit

4.None of above

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following is not a hook application life cycle?

1.ngOnChanges

2.ngViewStart

3.ngOnInit

4.None of above

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following is not a valid AngularJS filter?

1.lowercase

2.orderby

3.email

4.currency

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following is the correct syntax for writing AngularJS expressions?

1.(expression)

2.{{expression}}

3.{{{expression}}}

4.[expression]

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following is true about the currency filter?

1.A currency filter is used to format the text in a currency format.

2.A currency filter is a function that takes text as input.

3.Both A and B

4.None of the above

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following is used to share data between controller and view in AngularJS?

1.using Model

2.using services

3.using factory

4.using $scope

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following statement is correct for AngularJS?

1.AngularJS is an HTML framework

2.AngularJS is a Java framework

3.AngularJS is a JavaScript framework

4.AngularJS is a SQL framework

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following statement is true about $dirty flag?

1.$dirty flag is used to state that value has been changed.

2.$dirty flag is used to state that the form has invalid data.

3.Both of the above.

4.None of the above.

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following statement is true about the lowercase filter?

1.The lowercase filter converts a text to lower case text.

2.The lowercase filter is a function that takes text as input.

3.Both of the above.

4.None of the above.

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following statement is true in the case of a controller in MVC?A controller is a software code that controls the interactions between the Model and View.

1.A controller is a software code that controls the interactions between the Model and View.

2.A controller is a software code that stores the data.

3.A controller is a software code that renders the user interface.

4.All of the above.

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following statement justify the working of AngularJS?

1.module is primarily used to create application modules.

2.module is used to create AngularJS modules along with its dependent modules.

3.Both A and B

4.None of the above

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following statement specifies the data-binding in AngularJS?

1.Synchronization of data between the model and view components.

2.Synchronization of data between the model and controller components.

3.Synchronization of data between the controller and view components.

4.None of the above

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following syntax is correct for applying multiple filters in AngularJS?

1. {{ {filter1} | {filter2} |

2.expression | filter1 | filter2 | ... }}

3.{{ expression | {filter1} | {filter2} | ... }}

4.{{ expression - {filter1} - {filter2} - ... }}

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following syntax is used to create a module in AngularJS?

1.var myModule= angular.module();

2.var myModule= new Module();

3.module("app" []);

4.None of the above

Posted Date:-2021-10-27 10:15:15


Question:
Which of the following types of the component can be used to create a custom directive?

1.Element directives

2.Attribute

3.CSS

4.All of the above.

Posted Date:-2021-10-27 10:15:15


Question:
Which one of following is correct syntax for creating a module in AngularJs?

1.var myModule= angular.module();

2. var myModule= new Module();

3. angular.module("app" []);

Posted Date:-2021-10-27 10:15:15


Question:
Who is known as father of Angularjs?  

1.Brad Green

2. Misko Hevery

3. Adam Abrons

4. None of them

Posted Date:-2021-10-27 10:15:15


More MCQS

  1. Most Asked Angular MCQ Questions
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!