Angular 6 MCQs

Angular 6 MCQs

These Angular 6 multiple-choice questions and their answers will help you strengthen your grip on the subject of Angular 6. You can prepare for an upcoming exam or job interview with these Angular 6 MCQs.
So scroll down and start answering.

1: Which of the following is not achieved by an automated estimation tools?

A.   Predicting staffing levels

B.   Predicting software cost

C.   Predicting software schedules

D.   Predicting clients demands

2: Which of the following is not an option to achieve reliable cost and effort estimate?

A.   Base estimates on similar projects that have already been completed

B.   Use one or more empirical models for software cost and effort estimation

C.   Use relatively simple decomposition techniques to generate project cost and effort estimates.

D.   The ability to translate the size estimate into human effort, calendar time, and dollars.

3: What are various possible ways in which angular application can be initialized?

A.   On an element, one could either put simply the attribute such as (ng-app, data-ng-app, ng:app, x-ng-app)

B.   Put the named attribute such as (ng-app='demoApp')

C.   Both of the above

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

A.   Application Module

B.   Constant

C.   Value

D.   Factory

5: Which of the following is true about ng-bind directive?

A.   Ng-bind directive binds the AngularJS Application data to HTML tags.

B.   Ng-bind updates the model created by ng-model directive to be displayed in the html tag.

C.   Ng-bind updates html control data when controller changes the model.

D.   All of the above

6: Which of the following is true about AngularJS service?

A.   Services are JavaScript functions

B.   Services are responsible to do specific tasks only

C.   Inbuilt services are always prefixed with $ symbol.

D.   All of the above.

7: Which of the following is true about ng-hide directive?

A.   Ng-hide directive can show a given control.

B.   Ng-hide directive can hide a given control.

C.   Both of the above.

D.   None of the above.

8: Which of the following is true about ng-model directive?

A.   Ng-model directive binds the values of AngularJS application data to HTML input controls.

B.   Ng-model directive creates a model variable which can be used with the html page and within the container control having ng-app directive.

C.   Both of the above.

D.   None of the above.

9: Which of the following is true about filter filter?

A.   Filter filter is a function which takes text as input.

B.   Filter filter is used to filter the array to a subset of it based on provided criteria.

C.   Both of the above.

D.   None of the above.

10: Who is sometimes called as Father of AngularJS?

A.   Brad Green

B.   Igor Minor

C.   Misko Hevery

D.   Brian Ford

11: Which is not an advantage of using a closure?

A.   Prevent pollution of global scope

B.   Encapsulation

C.   Private properties and methods

D.   Allow conditional use of strict mode

12: In AngularJS, when do you need to use $scope.apply()?

A.   Anytime you want to trigger databinding changes to update the UI.

B.   Only after $http remote service calls

C.   For any model changes during event callback/notifications

D.   For async callbacks outside AngularJS context

E.   All of these

F.   None of these

13: Which of the following is true about provider?

A.   Provider is used by AngularJS internally to create services, factory etc.

B.   Provider is used during config phase.

C.   Provider is a special factory method.

D.   All of the above.

14: Which of the following is true about ng-app directive?

A.   Ng-app directive defines and links an AngularJS application to HTML.

B.   Ng-app directive indicates the start of the application.

C.   Both of the above.

D.   None of the above.

15: Which of the following is true about ng-show directive?

A.   Ng-show directive can show a given control.

B.   Ng-show directive can hide a given control.

C.   Both A and B

D.   None of the above