AngularJS is an open-source front-end web framework based on JavaScript. It was created in 2009 by Misko Hevery and Adam AbronsIt and is essentially kept up by Google. It Provides developers a choice to compose customer-side applications utilizing JavaScript in a clean MVC way. It is completely free and licensed under the Apache license version 2.0.
Take the AngularJs MCQ Test, which is very helpful for the preparation for the AngularJs Exam/Interview.
AngularJS MCQ Online Test
1) Angular Js is based on
A. MVC Architecture
B. Decorator pattern
C. MVVM Architectural pattern
D. Observer Pattern
2) AngularJS expressions are written using
A. (expression)
B. {{expression}}
C. {{{expression}}}
D. [expression]
3) What is correct way to apply multiple filters in AngularJs.
A. {{ expression | filter1 | filter2 | ... }}
B. {{ expression | {filter1} | {filter2} | ... }}
C. {{ expression - {filter1} - {filter2} - ... }}
D. {{ {filter1} | {filter2} | ...-expression}}
4) Which directive initializes an AngularJS application?
A. ng-init
B. ng-app
C. ngSrc
D. ng-start
5) Which of following is not valid AngularJs Filter
A. lowercase
B. orderby
C. email
D. currency
6) What are Angular Controllers are responsible for
A. Controlling the data.
B. Displaying the data.
7) Which Angular directive is used to binds the value of HTML controls (input, select, textarea) to application data?
A. ng-cloak
B. ng-bind
C. ng-model
D. ng-blur
8) Which one of following is correct syntax for creating a module in AngularJs?
A. var myModule= angular.module();
B. var myModule= new Module();
C. angular.module("app", []);
9) How do you share data between controller and view?
A. using Model
B. using services
C. using factory
D. using $scope
10) What is $routeProvider ?
A. A service
B. A module
C. A component
11) Who is known as father of Angularjs?
A. Brad Green
B. Misko Hevery
C. Adam Abrons
12) Angular 1.x is written in
A. Java
B. Javascript
C. TypeScript
13) Is AngularJs supports two way binding?
14) Which Angular Directive is used to disable an Element?
A. ng-disabled
B. ng-hide
C. ng-false
15) Is AngularJs supports internationalization?
16) Can we extend AngularJS?
17) What is $routeProvider ?
A. A service
B. A module
C. A component
18) AngularJS directives are used in ____________
A. Module
B. Controller
C. Service
D. View
19) AngularJS directives can be written in Templates as
A. Tag
B. Attribute
C. Class name
D. All of the above
20) Which of the following directive allows us to use a form in AngularJs?
A. ng-include
B. ng-form
C. ng-directive
D. ng-bind
21) AngularJS applications are a mix of
A. HTML and PHP
B. HTML and JavaScript
C. HTML and CrossScript
D. HTML and AngularScript
22) AngularJS application expressions are pure JavaScript expressions.
23) Can $http service is used to make an Ajax call to server.
24) What is deep linking in AngularJs?
A. Deep linking is a SEO based technique.
B. Deep linking refers to linking various views to a central page.
C. Deep linking allows you to encode the state of application in the URL so that it can be bookmarked.
D. All of the Above
25) Which components can be injected as a dependency in AngularJS?
A. Value
B. Factory
C. Constant
D. Application Module
What is Angular js?
AngularJS is a JavaScript-based front-end web application framework that was first released in 2010 by Google. The framework is used to develop web applications that are composed of HTML5, JavaScript, and CSS. It is designed to make it easier to build dynamic, single-page web applications and provides a number of features such as two-way data binding, dependency injection, and a powerful directive system. AngularJS uses a component-based architecture, and its latest version, Angular 11, was released in November 2020. Developers widely use it to build complex and high-performance web applications.
History of AngularJs
AngularJS was first released in 2010 by Google as an open-source web application framework. It was developed by Misko Hevery and Adam Abrons . The initial release of AngularJS was focused on providing a framework for building dynamic, interactive web applications. The framework used a declarative approach to building user interfaces, making it more structured and easier to understand than traditional JavaScript-based web development. It also introduced two-way data binding, which allowed changes made to the model to be automatically reflected in the view and vice versa. This simplified the process of updating the user interface.
The first version of AngularJS was met with positive feedback from the developer community, and Google continued to develop and maintain the framework. In 2013 , Google released AngularJS 1.2 , which introduced new features such as animations, new directives, and support for mobile devices. AngularJS 1.3 was released in 2014 , which included features such as a simplified directive definition and improved performance.
In 2016 , Google released Angular 2, a complete rewrite of AngularJS. Angular 2 introduced a number of new features and improvements, such as a simplified component-based architecture, improved performance, and support for newer web technologies. Angular 2 was not backward compatible with AngularJS, meaning developers had to learn the new framework to continue using it.
AngularJS is still widely used today, but Angular 2 and later versions have become more popular among developers.
Features of AngularJS
Directives: AngularJS uses directives to extend the capabilities of HTML by defining new elements or attributes. Directives are used to create reusable components and to add behavior to the DOM.
Data binding: AngularJS uses two-way data binding, which allows changes made to the model to be automatically reflected in the view and vice versa. This simplifies the process of updating the user interface.
Services: AngularJS provides a set of built-in services, such as $http and $resource, that can be used to make HTTP requests to the server and to interact with the web application's data.
Dependency injection: AngularJS uses dependency injection to manage the dependencies between different components of the application. This makes it easy to test and maintain the application.<l/i>
Routing: AngularJS provides a powerful routing feature that allows developers to create single-page applications with multiple views. This enables developers to build complex web applications with a clear structure.
Forms and validation: AngularJS provides a set of directives and services that can be used to create forms and to validate user input.
Unit testing: AngularJS provides a set of tools and best practices for unit testing the application, which helps in ensuring the quality of the code.
Performance: AngularJS provides various techniques and features to improve the performance of web apps, such as change detection, lazy loading and caching.