Top 150+ Solved Angular-JS MCQ Questions Answer
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
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
Q. AngularJS controllers control ___of AngularJS applications.
a. the data
b. thefunction
c. thevariable
d. None of these
Q. Which directive defines the application controller?
a. ng-model
b. ng-ctrl
c. ng-controller
d. None of these
Q. The _______ directive is used if you want to add or remove HTML elementsfrom the DOM based on data in the model.
a. ng-switch
b. ng-model
c. ng-Disabled
d. ng-Cloak
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
Q. What MVC stands for?
a. Model View Control
b. Model View Controller
c. Main View Controller
d. Main View Control
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
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
Q. Whichdirectives bind the input fields to the controller properties?
a. data-ng-model
b. ng-app
c. ng-controller
d. None of these
Q. In larger applications,controllers are stored in ___?
a. external files
b. scope object
c. internal files
d. None of these
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
Q. Controller, which is the JavaScript function that ___ the data?
a. Makes
b. Changes
c. Removes
d. All of the above
Q. $rootScoperefers to an object which is accessible from everywhereoftheapplication.
a. True
b. False
c. none
d. all