Olete.in
Articles
Mock Tests
🧪 Angular MCQ Quiz Hub
Most Asked Angular MCQ Questions
Choose a topic to test your knowledge and improve your Angular skills
1. Which of the following statement is correct for AngularJS?
AngularJS is an HTML framework
AngularJS is a Java framework
AngularJS is a JavaScript framework
AngularJS is a SQL framework
2. On which of the Architectural pattern AngularJS is based?
Observer Pattern
Decorator pattern
MVC Architecture pattern
MVVM Architectural pattern
3. ngularJS is perfect for?
SPAs
MPAs
DPAs
CPAs
4. Which of the following is the correct syntax for writing AngularJS expressions?
(expression)
{{expression}}
{{{expression}}}
[expression]
5. Which of the following directive is used to bind the application data to the HTML view in AngularJS?
ng-app directive
ng-model directive
ng-bind directive
ng-init directive
6. Which of the following syntax is correct for applying multiple filters in AngularJS?
{{ {filter1} | {filter2} |
expression | filter1 | filter2 | ... }}
{{ expression | {filter1} | {filter2} | ... }}
{{ expression - {filter1} - {filter2} - ... }}
7. Which of the following statement is true about the lowercase filter?
The lowercase filter converts a text to lower case text.
The lowercase filter is a function that takes text as input.
Both of the above.
None of the above.
8. Which of the following is an advantage of AngularJS?AngularJS code is unit testable.
AngularJS code is unit testable.
AngularJS provides reusable components.
AngularJS uses dependency injection and makes use of separation of concerns.
All of the above
9. Which of the following statement is true about $dirty flag?
$dirty flag is used to state that value has been changed.
$dirty flag is used to state that the form has invalid data.
Both of the above.
None of the above.
10. What will be the output for the following code?
The output is 1
The output is 15
The output is 19
The output is 2
11. What is the use of Angular Controllers in the application?
Angular controllers are used for controlling the data.
Angular controllers are used for displaying the data.
Both of the above are correct.
None of the above is correct.
12. Which of the following syntax is used to create a module in AngularJS?
var myModule= angular.module();
var myModule= new Module();
module("app" []);
None of the above
13. Which of the following is used to share data between controller and view in AngularJS?
using Model
using services
using factory
using $scope
14. Which of the following statement specifies the data-binding in AngularJS?
Synchronization of data between the model and view components.
Synchronization of data between the model and controller components.
Synchronization of data between the controller and view components.
None of the above
15. Which of the following is not a valid AngularJS filter?
lowercase
orderby
email
currency
16. Who is known as the father of AngularJS?
Brad
Green
Misko
Hevery
17. Which of the following directive is used to bind the value of HTML controls to application data?
ng-app
ng-init
ng-model
ng-hide
18. Which of the following community Angular JS belong to?
Twitter
Facebook
Google
Microsoft
19. A module created by using the AngularJS function is called?
module()
module()
mod()
angular module()
20. Which of the following types of the component can be used to create a custom directive?
Element directives
Attribute
CSS
All of the above.
21. How many $RootScope an AngularJS application can have?
Zero
One
Two
Infinity
22. Which of the following is true about the currency filter?
A currency filter is used to format the text in a currency format.
A currency filter is a function that takes text as input.
Both A and B
None of the above
23. Which of the following statement is true in the case of a controller in MVC?A controller is a software code that controls the interactions between the Model and View.
A controller is a software code that controls the interactions between the Model and View.
A controller is a software code that stores the data.
A controller is a software code that renders the user interface.
All of the above.
24. Which of the following components can be injected as a dependency in AngularJS?
Value
Factory
Constant
Application Module
25. What is deep linking in AngularJS?
Deep linking is an SEO-based technique.
Deep linking refers to linking various views to the main page.
Deep linking allows you to encode the state of an application in the URL so that it can be bookmarked.
All of the Above
26. AngularJS applications are a mix of which of the following technologies?
HTML and PHP
HTML and JavaScript
HTML and TypeScript
PHP and JavaScript
27. Which of the following template can be used to write AngularJS directives?
Tag
Attribute
Class name
All of the above
28. Which of the following statement is true in the case of $routeProvider?
It is a service.
It is a module.
It is a component.
None of the above.
29. Which of the following statement justify the working of AngularJS?
module is primarily used to create application modules.
module is used to create AngularJS modules along with its dependent modules.
Both A and B
None of the above
30. The [] parameter in the module definition is used to define dependent modules.
TRUE
FALSE
Can be true or false
Cannot say
31. Angular Js is based on
MVC Architecture
Decorator pattern
MVVM Architectural pattern
Observer Pattern
32. . AngularJS expressions are written using (expression)
(expression)
{{expression}}
{{{expression}}}
[expression]
33. What is correct way to apply multiple filters in AngularJs.
{{ expression | filter1 | filter2 | ... }}
{{ expression | {filter1} | {filter2} | ... }}
{{ expression - {filter1} - {filter2} - ... }}
{{ {filter1} | {filter2} | ...-expression}}
34. Which directive initializes an AngularJS application?
ng-init
ng-app
ngSrc
ng-start
35. hich of following is not valid AngularJs Filter
lowercase
orderby
email
currency
36. Which Angular directive is used to binds the value of HTML controls (input select textarea) to application data?
ng-cloak
ng-bind
ng-model
ng-blur
37. Which one of following is correct syntax for creating a module in AngularJs?
var myModule= angular.module();
var myModule= new Module();
angular.module("app" []);
38. How do you share data between controller and view?
using Model
using services
using factory
using $scope
39. What is $routeProvider ?
A service
A module
A component
using $scope
40. Who is known as father of Angularjs?
Brad Green
Misko Hevery
Adam Abrons
None of them
41. Angular 1.x is written in Java
Java
Javascript
TypeScript
None of them
42. Which Angular Directive is used to disable an Element?
ng-disabled
ng-hide
ng-false
None of them
43. What is $routeProvider ?
A service
ng-hide
A module
A component
44. AngularJS directives are used in ____________
Module
Controller
Service
View
45. AngularJS directives can be written in Templates as
Tag
Attribute
Class name
All of the above
46. Which of the following directive allows us to use a form in AngularJs?
ng-include
ng-form
ng-directive
ng-bind
47. AngularJS applications are a mix of
HTML and PHP
HTML and JavaScript
HTML and CrossScript
HTML and AngularScript
48. What is deep linking in AngularJs?
Deep linking is a SEO based technique.
Deep linking refers to linking various views to a central page.
Deep linking allows you to encode the state of application in the URL so that it can be bookmarked.
All of the Above
49. Which components can be injected as a dependency in AngularJS?
Value
Factory
Constant
Application Module
50. Who is sometimes called as father of Angularjs?
Brad Green
Misko Hevery
Brad Richardson
Chuck Jazdzewski
51. Which of the following is correct about TypeScript?
Angular is based on TypeScript.
This is a superset of JavaScript.
TypeScript is maintained by Microsoft.
All of the above.
52. What is the decorator used for configuring your module class?
@NgModule
@NgApp
Both
None of above
53. Which angular decorator allows us to define the pipe name that is globally available for use in any template in the across application?
pipeName
pipeDeco
Pipe
None of the above
54. Which character is used for chaining multiple pipes?
|
:
Both
None of above
55. RxJS can be used for?
Browser
Server Side
Both
None of above
56. How Observables are Used?
The Reactive Forms Module uses reactive programming and Observables for listening to user input
The @output() decorator in a component takes an EventEmitter instance. EventEmitter is a subclass of the RxJS Observable
Both
None of above
57. What is .subscribe?
Streams data in asynchronously
Streams data in synchronously
Both
None of above
58. What does AOT stand for?
ahead-of-time compilation
Angular Object Templates
Both
None of above
59. Which of the following is not a hook application life cycle?
ngOnChanges
ngViewStart
ngOnInit
None of above
60. Which of the following is not a hook application life cycle?
ngOnChanges
ngViewStart
ngOnInit
None of above
61. Router is part of which of the following module?
@angular/core
@angular/router
Both
None of above
Submit