- 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
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AngularJS - Mock Test
This section presents you various set of Mock Tests related to AngularJS Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
AngularJS Mock Test I
Q 1 - Which of the following is true about AngularJS?
Answer : D
Explaination
All of the above statements are correct with respect to AngularJS framework.
Answer : A
Explaination
AngularJS is open source, completely free, and used by thousands of developers around the world. It is licensed under the Apache License version 2.0.
Answer : A
Explaination
True! Applications written in AngularJS are cross-browser compliant. AngularJS automatically handles JavaScript code suitable for each browser.
Q 4 - What is data binding in AngularJS?
A - Data binding is the technique to save html data in the database.
B - Data binding is the technique to bind database data to html control.
C - Data binding is the automatic synchronization of data between model and view components.
D - Data binding is the automatic synchronization of data between model and controller components.
Answer : C
Explaination
Data binding is the automatic synchronization of data between model and view components.
Q 5 - Which directive is used for data binding in AngularJS?
Answer : C
Explaination
ng-bind directive is used in data binding.
Q 6 - What happens when page containing AngularJS based Application loads.
A - HTML document is loaded into the browser, and evaluated by the browser.
B - AngularJS JavaScript file is loaded; the angular global object is created.
C - JavaScript which registers controller functions is executed.
Answer : D
Explaination
When the page is loaded in the browser; HTML document is loaded into the browser, and evaluated by the browser. AngularJS JavaScript file is loaded; the angular global object is created. Next, JavaScript which registers controller functions is executed.
Q 7 - What are scopes in AngularJS?
A - Scopes define the accessibility of a javascript variable.
B - Scopes are objects that refer to the model. They act as glue between controller and view.
Answer : B
Explaination
Scopes are objects that refer to the model. They act as glue between controller and view.
Q 8 - What are the controllers in AngularJS?
A - Controllers are JavaScript functions that are bound to a particular scope.
Answer : D
Explaination
Controllers are JavaScript functions that are bound to a particular scope. They are the prime actors in AngularJS framework and carry functions to operate on data and decide which view is to be updated to show the updated model based data.
Q 9 - What are the services in AngularJS?
B - Services are objects which AngularJS uses internally.
Answer : A
Explaination
Services are singleton objects which are instantiated only once in app and are used to do the defined task.
Q 10 - What are the filters in AngularJS?
A - Filters select a subset of items from an array and return a new array.
B - Filters are used to show filtered items from a list of items based on defined criteria.
Answer : C
Explaination
Filters select a subset of items from an array and return a new array. Filters are used to show filtered items from a list of items based on defined criteria.
Q 11 - What is deep linking in AngularJS?
B - Deep linking is a SEO based technique.
C - Deep linking refers to linking various views to a central page.
Answer : A
Explaination
Deep linking allows you to encode the state of application in the URL so that it can be bookmarked. The application can then be restored from the URL to the same state.
Answer : B
Explaination
AngularJS code is unit testable.
Answer : B
Explaination
AngularJS provides reusable components.
Q 14 - Which of the following is not a core AngularJS directive.
Answer : D
Explaination
ng-state is not an AngularJS directive.
Q 15 - 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.
Answer : C
Explaination
ng-app directive defines and links an AngularJS application to HTML. It also indicate the start of the application.
Q 16 - 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.
Answer : C
Explaination
ng-model directive binds the values of AngularJS application data to HTML input controls. It creates a model variable which can be used with the html page and within the container control( for example, div) having ng-app directive.
Q 17 - 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.
Answer : D
Explaination
ng-bind directive binds the AngularJS Application data to HTML tags. ng-bind updates the model created by ng-model directive to be displayed in the html tag whenever user input something in the control or updates the html control's data when model data is updated by controller.
Q 18 - 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 19 - Which of the following is true about ng-init directive?
A - ng-init directive initializes an AngularJS Application data.
B - ng-init directive is used to put values to the variables to be used in the application.
Answer : C
Explaination
ng-init directive initializes an AngularJS Application data. It is also used to put values to the variables to be used in the application.
Q 20 - Which of the following is true about AngularJS expressions?
A - Expressions are used to bind application data to html.
B - Expressions are written inside double braces like {{ expression}}.
Answer : D
Explaination
Expressions are used to bind application data to html. Expressions are written inside double braces like {{ expression}}. Expressions behave in same way as ng-bind directives. AngularJS application expressions are pure JavaScript expressions and outputs the data where they are used.
Q 21 - What MVC stands for?
Answer : B
Explaination
MVC stands for Model View Controller.
Q 22 - What is MVC?
A - MVC is name of an algorithm.
B - MVC is a software design pattern for developing web applications.
C - MVC is a software technique to optimize web application performance.
Answer : B
Explaination
Model View Controller or MVC as it is popularly called, is a software design pattern for developing web applications.
Q 23 - What is Model in MVC?
A - Model represents server side data.
B - Model represents data stored in database.
C - Model is the lowest level of the pattern responsible for maintaining data.
Answer : C
Explaination
Model is the lowest level of the pattern responsible for maintaining data.
Q 24 - What is View in MVC?
A - View represents a database view.
B - View is responsible for displaying all or a portion of the data to the user.
Answer : B
Explaination
View is responsible for displaying all or a portion of the data to the user.
Q 25 - What is controller in MVC?
A - It is a software Code that stores the data.
B - It is a software Code that renders the user interface.
C - It is a software Code that controls the interactions between the Model and View.
Answer : C
Explaination
It is a software Code that controls the interactions between the Model and View.
Answer Sheet
Question Number | Answer Key |
---|---|
1 | D |
2 | A |
3 | A |
4 | C |
5 | C |
6 | D |
7 | B |
8 | D |
9 | A |
10 | C |
11 | A |
12 | B |
13 | B |
14 | D |
15 | C |
16 | C |
17 | D |
18 | D |
19 | C |
20 | D |
21 | B |
22 | B |
23 | C |
24 | B |
25 | C |