WorksheetsAngular JS -01
Total questions: 55
Worksheet time: 27mins
What is MVC
Model View Controller
Module View Controller
Model View Control
Module Viewer Controller
Is it a good or bad practice to use AngularJS together with jQuery?
Good
Bad
What is the role of services in AngularJS and name any services made available by default?
AngularJS Services are objects that provide separation of concerns to an AngularJS app.
These can be created using a factory method or a service method.
Services are singleton components and all components of the application (into which the service is injected) will work with single instance of the service
all of the above
ng-controller directive
ng-controller directive tells AngularJS what controller to use with this view.
ng-controller directive binds the AngularJS Application data to HTML tags
ng-controller directive binds the values of AngularJS application data to HTML input controls
ng-controller directive defines and links an AngularJS application to HTML
What is a service?
Services are JavaScript functions and are responsible to do specific tasks only.
Each service is responsible for a specific task for example, $https: is used to make ajax call to get the server data.
all of the above
none of the above
AngularJS is written in which language ?
JavaScript
Java
C++
PHP
Normally in an AngularJS application, which component holds the data?
Model
View
Controller
Templates
Which directive initializes an AngularJS application ?
ng-init
ng-app
ng-model
ng-controller
A role of a filter is to ___ the value of an expression for display to the user.
Format
Delete
Evaluate
Change
____ holds the visual layout an presentation
Controller
Model
View
Directive
Which of the following inputs are used for two-way data binding ?
Text, text area and select
Label, legend and fieldset
Datalist, output and option
All correct
___ is the glue between application controller and view.
Scope
Data
Model
$array
In AngularJS, ___ are containers used to hold other part of an application.
Models
Modules
Controllers
Directives
AngularJS applications depend on ___ to control the flow of data in the application.
Models
Modules
Controllers
Directives
We can have an AngularJS application without any ng-app directive
True
False
It is compulsory to have a value for ng-app in an AngularJs application
True
False
AngularJS is a Jquery library
True
False
AngularJS makes developing SPA (Single Page Application) easy
True
False
Which component of AngularJS helps to extend HTML elements?
Directives
Services
Routes
Filters
Which directive Is used for initializing AngularJS application data in HTML?
ng-start
ng-init
ng-show
ng-begin
Which directive is used for binding the value obtained from the user from HTML inputs to application data?
ng-src
ng-app
ng-controller
ng-model
The ___ is a powerful directive that can iterate over thousands of data with a single line of code
ng-hide
ng-repear
ng-repeat
ng-model
Which symbol Is used to prefix a built-in service?
#
$
|
%
If a variable has the same name in both current scope and In $rootScope, which variable will be used by the application?
Current scope
Root scope
Model scope
$scope
What is the term Angular CLI?
Angular Command-line
Angular Command-line user interface
Angular Command-line interface
Angular Command-line interceptor
Who was Angular developed by?
Netflix
Angular
"ng serve" is a command for what?
Order Run service
Run project order
Order update project
Run component
How many types of Data Binding are there?
1 type
2 type
3 type
4 type
What does SPA mean ?
Animal protection Society
Secure Password Authentication
Single Page Application
Sense Plan Act
If I write <button (click) = "onClick ()"> in a template, I use?
interpolation
property binding
event binding
The router allows
Associate URLs with components
To associate values with services
To observe the observables
What mechanism is used to use a service in a component?
Dependency injection
Legacy
Polymorphism
Angular expressions are written in:
[ [expresión ] ]
"" expresión ""
((expresión))
{{ expresión}}
Angular Router is a ....
Component for navigation rules
Module for navigation rules
Fix for navigation rules
Constant for navigation rules
Which tool allows you to manage the dependencies of a frontend project?
NodeJS
npm
TypeScript
webpack
AngularJS
the front-end framework
the web server
the database
the web framework
Which of the following is/are possible for a Web page uses HTML
content
layout
structure
presentation
Web page uses CSS for its
behaviour
layout
presentation
structure
AngularJS module Syntax
(a)
What is a controller in MVC?
(a)
What angular function is used to manually start up an angular application
(a)
AngularJS directives are used in
(a)
There is a controller which takes a single parameter. We call it . . . . . parameter.
(a)
Which directive is used to start an angularJS application?
(a)
Which directive binds the values of application data to HTML input controls in angular JS?
(a)
Which directive binds Application data to HTML tags in angular JS?
(a)
What is data binding in angular JS?
(a)
2
2.5
5
5
{{4/2}}
2.5
5
5
{{4/2}}
2.5
5
{{10/2}}
{{4/2}}
2.5
{{10/2}}
{{10/2}}
Result: {{ 2+2 }}
Result: 4
Result: { 2+2 }
None of the above
Result: {{ 2+2 }}
Result: 4
Result: { 2+2 }
None of the above
Which directive binds the values of application data to HTML input controls in angular JS?
ng-app
ng-model
ng-bind
none
Which directive binds Application data to HTML tags in angular JS?
ng-app
ng-model
ng-bind
none
Which sign is used as prefix for the built-in objects in AngularJS?
#
&
@
$
Can we nest ng-app directive?
true
false
By default, How ng-model watches the directive?
By value
Both value and reference
By reference
none
