- AngularJS Tutorial
- AngularJS - Home
- AngularJS - Overview
- AngularJS - Environment Setup
- AngularJS - MVC Architecture
- AngularJS - First Application
- AngularJS - Directives
- AngularJS - Expressions
- AngularJS - Controllers
- AngularJS - Filters
- AngularJS - Tables
- AngularJS - HTML DOM
- AngularJS - Modules
- AngularJS - Forms
- AngularJS - Includes
- AngularJS - AJAX
- AngularJS - Views
- AngularJS - Scopes
- AngularJS - Services
- AngularJS - Dependency Injection
- AngularJS - Custom Directives
- AngularJS - Internationalization
- AngularJS Applications
- AngularJS - ToDo Application
- AngularJS - Notepad Application
- AngularJS - Bootstrap Application
- AngularJS - Login Application
- AngularJS - Upload File
- AngularJS - In-line Application
- AngularJS - Nav Menu
- AngularJS - Switch Menu
- AngularJS - Order Form
- AngularJS - Search Tab
- AngularJS - Drag Application
- AngularJS - Cart Application
- AngularJS - Translate Application
- AngularJS - Chart Application
- AngularJS - Maps Application
- AngularJS - Share Application
- AngularJS - Weather Application
- AngularJS - Timer Application
- AngularJS - Leaflet Application
- AngularJS - Lastfm Application
- AngularJS Useful Resources
- AngularJS - Questions and Answers
- AngularJS - Quick Guide
- AngularJS - Useful Resources
- AngularJS - Discussion
AngularJS Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to AngularJS Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 2 - Which of the following is true about ng-controller directive?
A - ng-controller directive tells AngularJS what controller to use with this view.
C - A controller is a JavaScript object containing attributes/properties and functions.
Answer : D
Explaination
ng-controller directive tells AngularJS what controller to use with this view. AngularJS application mainly relies on controllers to control the flow of data in the application. A controller is a JavaScript object containing attributes/properties and functions. Each controller accepts $scope as a parameter which refers to the application/module that controller is to control.
Q 3 - AngularJS expressions are written using.
A - double braces like {{ expression}}
B - single braces like {expression}
Answer : A
Explaination
AngularJS expressions are written inside double braces like {{ expression}}.
Answer : A
Explaination
ng-click directive represents a AngularJS click event.
Answer : A
Explaination
$rootScope is the parent of all of the scope variables.
Q 6 - factory method is used to define a factory which can later be used to create services as and when required.
Answer : A
Explaination
factory method is used to define a factory which can later be used to create services as and when required.
Answer : A
Explaination
Scopes are objects that refer to the model. They act as glue between controller and view.
Answer : B
Explaination
With AngularJS, developer writes less code and gets more functionality.
Answer : B
Explaination
AngularJS uses two way data binding.
Answer : A
Explaination
AngularJS bootstraps itself during config phase.