Top 50+ Solved AngularJS Modules, Controller, View and Scope MCQ Questions Answer

From 1 to 14 of 14

Q. Which is the right format for calling a ng-bind function?

a. ng-bind

b. ng:bind

c. ng_bind

d. All the Above

  • d. All the Above

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

Q. $rootScope is created with ___

a. ng-controller

b. ng-app

c. ng-init

d. None of these

  • b. ng-app

Q. A controller is a JavaScript object containing ___

a. Attributes

b. Properties

c. Functions

d. All of the above

  • d. All of the above

Q. Scope contains the ___?

a. model data

b. JavaScript Objects

c. variables

d. None of these

  • a. model data

Q. Which is/are the characteristics of scope object?

a. Scopes provide APIs ($watch) to observe model.

b. Scopes can be nested to limit access to the properties.

c. It provides context against the expression to be evaluated.

d. All of the above

  • d. All of the above
  • 1 (current)
Subscribe Now

Get All Updates & News