1.
AngularJs is following
Correct Answer
B. MVW
Explanation
AngularJS follows the MVW (Model-View-Whatever) architecture. This means that it does not strictly adhere to any specific design pattern like MVC, MVP, or MVVM. Instead, AngularJS allows developers to choose their own interpretation of the architecture, making it more flexible and adaptable to different project requirements. The "Whatever" in MVW represents the fact that AngularJS provides a wide range of tools and features that can be used to implement various design patterns, depending on the needs of the application.
2.
Best place for Dom Manipulation in AngularJs is
Correct Answer
D. Directive
Explanation
The best place for DOM manipulation in AngularJS is the Directive. Directives are used to extend HTML with new attributes and elements, and they allow us to create reusable components with their own behavior and logic. Directives have access to the DOM element they are attached to, so they are the ideal place to manipulate the DOM. By using directives, we can encapsulate the DOM manipulation logic within the directive, making our code more modular and maintainable.
3.
Which out of the following features are supported by AngularJs
Correct Answer
D. All of the Above
Explanation
AngularJS supports all of the mentioned features: Dependency Injection, Routing, and Testing. Dependency Injection is a core feature of AngularJS that allows components to be easily managed and tested. Routing allows for the creation of single-page applications with multiple views. Testing is also supported by AngularJS, with built-in tools and libraries for unit testing and end-to-end testing. Therefore, the correct answer is "All of the Above".
4.
The easiest way in AngularJs for localisation is using Directives
Correct Answer
B. False
Explanation
The statement "The easiest way in AngularJs for localisation is using Directives" is false. While directives can be used for localisation in AngularJS, it is not necessarily the easiest way. There are other methods and tools available for localisation in AngularJS, such as using filters or external libraries like angular-translate.
5.
Two way data binding is supported by AngularJs
Correct Answer
A. True
Explanation
AngularJS supports two-way data binding, which means that any changes made to the model data will automatically update the view, and any changes made to the view will automatically update the model data. This allows for a seamless synchronization between the model and the view, making it easier to develop dynamic and interactive web applications.
6.
AngularJs is all about Client side code
Correct Answer
A. True
Explanation
AngularJS is a JavaScript framework that is primarily used for developing client-side applications. It allows developers to create dynamic and interactive web pages by extending the functionality of HTML. With AngularJS, the majority of the code is executed on the client-side, meaning that the processing and rendering of data occurs on the user's browser rather than on the server. This makes AngularJS a powerful tool for building responsive and efficient web applications. Therefore, the statement "AngularJS is all about Client side code" is true.
7.
$rootScope accessible from all controllers
Correct Answer
A. True
Explanation
The statement "True" is the correct answer because $rootScope is a global object in AngularJS that is accessible from all controllers. This means that any data or functions defined in $rootScope can be accessed and used by any controller in the application.
8.
Module contains
Correct Answer
D. All Above
Explanation
The correct answer is "All Above" because a module typically contains all of the mentioned components - Factory, Config, and Service. These components work together to provide functionality and services within the module. Therefore, selecting "All Above" is the most appropriate answer as it encompasses all the components that are commonly found in a module.
9.
In AngularJs which feature is available for Navigation
Correct Answer
D. Route
Explanation
In AngularJs, the feature available for navigation is the Route. The Route feature allows developers to define different routes or URLs for different views in their application. It enables navigation between different views or pages based on the URL entered by the user or triggered by an event. By configuring routes, developers can define which view to display when a particular URL is accessed, making it easy to create a single-page application with multiple views.
10.
Is AngularJs provides testing feature?
Correct Answer
A. True
Explanation
AngularJS does provide testing features. It includes a testing framework called "Jasmine" which allows developers to write unit tests for their AngularJS applications. It also provides tools like "Karma" which helps in running tests and generating code coverage reports. These testing features in AngularJS help in ensuring the quality and reliability of the application.