Top 150+ Solved Angular-JS MCQ Questions Answer

From 91 to 105 of 163

Q. What is the purpose of angular.module in AngularJS?

a. It creates an application module

b. It invokes an application module

c. It destroys an application module

d. None

  • a. It creates an application module

Q. 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, datang-app, ng:app, x-ng-app)

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

c. Both of the above

d. None

  • c. Both of the above

Q. AngularJS controllers control ___of AngularJS applications.

a. the data

b. thefunction

c. thevariable

d. None of these

  • a. the data

Q. Which directive defines the application controller?

a. ng-model

b. ng-ctrl

c. ng-controller

d. None of these

  • c. ng-controller

Q. What is the purpose of $http?

a. It is an inbuilt service used to make ajax call to get the server dat

b. It is the Http protocol

c. It generates hyper text mark up language

d. None

  • a. It is an inbuilt service used to make ajax call to get the server data.

Q. What MVC stands for?

a. Model View Control

b. Model View Controller

c. Main View Controller

d. Main View Control

  • b. Model View Controller

Q. Can AngularJS be used to create a service?

a. May be

b. Can be

c. Yes

d. No

  • c. Yes

Q. Which of the following is true about orderby filter?

a. orderby filter orders the array based on provided

b. orderby 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

  • a. orderby filter orders the array based on provided

Q. 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

  • c. Both of the above

Q. Whichdirectives bind the input fields to the controller properties?

a. data-ng-model

b. ng-app

c. ng-controller

d. None of these

  • a. data-ng-model

Q. In larger applications,controllers are stored in ___?

a. external files

b. scope object

c. internal files

d. None of these

  • a. external files

Q. Which statement is true about scope in AngularJS?

a. The scope is the binding part between the HTML (view) and the JavaScript (controller).

b. The scope is an object with the available properties and methods.

c. The scope is available for both the view and the controller.

d. All of the above

  • d. All of the above

Q. Controller, which is the JavaScript function that ___ the data?

a. Makes

b. Changes

c. Removes

d. All of the above

  • d. All of the above
Subscribe Now

Get All Updates & News