wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Sec-C Quiz-3

Total questions: 69

Worksheet time: 52mins

Name
Class
Date
1.
What is deep linking in AngularJS?
a)
A - Deep linking allows you to encode the state of the application in the URL so that it can be bookmarked.
b)
B - Deep linking is an SEO-based technique.
c)
C - Deep linking refers to linking various views to a central page.
d)
D - None of the above.
2.
Which of the following is not a core AngularJS directive.
a)
A - ng-app
b)
B - ng-model
c)
C - ng-bind
d)
D - ng-state
3.
AngularJS application expressions are pure JavaScript expressions.
a)
A - true
b)
B - false
4.
Which of the following is true about the currency filters?
a)
A - Currency filter formats text in a currency format.
b)
B - Currency filter is a function that takes text as input.
c)
C - Both of the above.
d)
D - None of the above.
5.
Model available in $rootScope can be overridden by its all child scopes.
a)
A - true
b)
B - false
6.
Which components can be injected as a dependency in AngularJS?
a)
A - value
b)
B - factory
c)
C - service
d)
D - All of the above.
7.
constants are used to pass values at the config phase.
a)
A - true
b)
B - false
8.
AngularJS applications can run on all major browsers and smartphones including Android and iOS-based phones/tablets.
a)
A - true
b)
B - false
9.
lowercase filter is applied to an expression using a pipe character.
a)
A - false
b)
B - true
10.
AngularJS bootstraps itself during the config phase.
a)
A - true
b)
B - false
11.
What is a Model in MVC?
a)
A - Model represents server-side data.
b)
B - Model represents data stored in a database.
c)
C - Model is the lowest level of the pattern responsible for maintaining data.
d)
D - None of the above.
12.
Use novalidate with a form declaration to disable any browser specific validation.
a)
A - true
b)
B - false
13.
Is AngularJS open source?
a)
A - true
b)
B - false
14.
$rootScope is the parent of all of the scope variables.
a)
A - true
b)
B - false
15.
Services are singleton objects which are instantiated only once in-app.
a)
A - false
b)
B - true
16.
What is data binding in AngularJS?
a)
A - Data binding is the technique to save HTML data in the database.
b)
B - Data binding is the technique to bind database data to HTML control.
c)
C - Data binding is the automatic synchronization of data between model and view components.
d)
D - Data binding is the automatic synchronization of data between model and controller components.
17.
How angular.module works?
a)
A - angular.module is used to create AngularJS modules along with its dependent modules.
b)
B - angular.module is primarily used to create application modules.
c)
C - Both of the above.
d)
D - None of the above.
18.
Which of the following is true about filter filters?
a)
A - filter filter is a function that takes text as input.
b)
B - filter filter is used to filter the array to a subset of it based on provided criteria.
c)
C - Both of the above.
d)
D - None of the above.
19.
With AngularJS, the developer writes less code and gets more functionality.
a)
A - false
b)
B - true
20.
On which of the following types of components can we create a custom directive?
a)
A - Element directives
b)
B - Attribute
c)
C - CSS
d)
D - All of the above.
21.
What MVC stands for?
a)
A - Model View Control
b)
B - Model View Controller
c)
C - Main View Controller
d)
D - Main View Control
22.
Which of the following is true about AngularJS expressions?
a)
A - Expressions are used to bind application data to HTML.
b)
B - Expressions are written inside double braces like {{ expression}}.
c)
C - Expressions behave in the same way as ng-bind directives.
d)
D - All of the above.
23.
$http service is used to make an Ajax call to the server.
a)
A - false
b)
B - true
24.
We need to incorporate corresponding js according to the locale of the country to support Internationalization in AngularJS based applications.
a)
A - true
b)
B - false
25.
Inbuilt services are always prefixed with the $ symbol.
a)
A - true
b)
B - false
26.
currency filter is applied to an expression using pipe character.
a)
A - true
b)
B - false
27.
Which of the following is true about AngularJS?
a)
A - AngularJS is a framework to build large-scale and high-performance web applications while keeping them as easy-to-maintain.
b)
B - AngularJS provides developers options to write a client-side application (using JavaScript) in a clean MVC (Model View Controller) way.
c)
C - AngularJS is a powerful JavaScript-based development framework to create RICH Internet Application(RIA).
d)
D - All of the above
28.
Is AngularJS open source?
a)
A - true
b)
B - false
29.
Are applications written using AngularJS cross-browser compliant?
a)
A - true
b)
B - false
30.
What is data binding in AngularJS?
a)
A - Data binding is the technique to save HTML data in the database.
b)
B - Data binding is the technique to bind database data to HTML control.
c)
C - Data binding is the automatic synchronization of data between model and view components.
d)
D - Data binding is the automatic synchronization of data between model and controller components.
31.
Which directive is used for data binding in AngularJS?
a)
A - ng-data
b)
B - ng-app
c)
C - ng-bind
d)
D - ng-controller
32.
What happens when the page containing AngularJS based Application loads.
a)
A - HTML document is loaded into the browser, and evaluated by the browser.
b)
B - AngularJS JavaScript file is loaded; the angular global object is created.
c)
C - JavaScript which registers controller functions is executed.
d)
D - All of the above.
33.
What are scopes in AngularJS?
a)
A - Scopes define the accessibility of a javascript variable.
b)
B - Scopes are objects that refer to the model. They act as the glue between controller and view.
c)
C - Scopes are objects that refer to the controller.
d)
D - Scopes are objects that refer to the views.
34.
What are the controllers in AngularJS?
a)
A - Controllers are JavaScript functions that are bound to a particular scope.
b)
B - Controller carries functions to operate on data and decide which view is to be updated to show the updated model-based data.
c)
C - They are the prime actors in the AngularJS framework.
d)
D - All of the above.
35.
What are the services in AngularJS?
a)
A - Services are singleton objects which are instantiated only once in-app and are used to do the defined task.
b)
B - Services are objects which AngularJS uses internally.
c)
C - Services are not used in AngularJS.
d)
D - Services are server-side components of AngularJS.
36.
What are the filters in AngularJS?
a)
A - Filters select a subset of items from an array and return a new array.
b)
B - Filters are used to show filtered items from a list of items based on defined criteria.
c)
C - Both of the above.
d)
D - None of the above.
37.
What is deep linking in AngularJS?
a)
A - Deep linking allows you to encode the state of the application in the URL so that it can be bookmarked.
b)
B - Deep linking is an SEO-based technique.
c)
C - Deep linking refers to linking various views to a central page.
d)
D - None of the above.
38.
Is AngularJS code unit testable?
a)
A - false
b)
B - true
39.
Do AngularJS provide reusable components?
a)
A - false
b)
B - true
40.
Which of the following is not a core AngularJS directive.
a)
A - ng-app
b)
B - ng-model
c)
C - ng-bind
d)
D - ng-state
41.
Which of the following is true about the ng-app directive?
a)
A - ng-app directive defines and links an AngularJS application to HTML.
b)
B - ng-app directive indicates the start of the application.
c)
C - Both of the above.
d)
D - None of the above.
42.
Which of the following is true about the ng-model directive?
a)
A - ng-model directive binds the values of AngularJS application data to HTML input controls.
b)
B - ng-model directive creates a model variable that can be used with the Html page and within the container control having ng-app directive.
c)
C - Both of the above.
d)
D - None of the above.
43.
Which of the following is true about the ng-bind directive?
a)
A - ng-bind directive binds the AngularJS Application data to HTML tags.
b)
B - ng-bind updates the model created by the ng-model directive to be displayed in the HTML tag.
c)
C - ng-bind updates HTML control data when the controller changes the model.
d)
D - All of the above.
44.
Which of the following is true about the ng-controller directive?
a)
A - ng-controller directive tells AngularJS what controller to use with this view.
b)
B - AngularJS application mainly relies on controllers to control the flow of data in the application.
c)
C - A controller is a JavaScript object containing attributes/properties and functions.
d)
D - All of the above.
45.
Which of the following is true about the ng-init directive?
a)
A - ng-init directive initializes AngularJS Application data.
b)
B - ng-init directive is used to put values to the variables to be used in the application.
c)
C - Both of the above.
d)
D - None of the above.
46.
Which of the following is true about AngularJS expressions?
a)
A - Expressions are used to bind application data to HTML.
b)
B - Expressions are written inside double braces like {{ expression}}.
c)
C - Expressions behave in the same way as ng-bind directives.
d)
D - All of the above.
47.
What is MVC?
a)
A - MVC is the name of an algorithm.
b)
B - MVC is a software design pattern for developing web applications.
c)
C - MVC is a software technique to optimize web application performance.
d)
D -None of the above.
48.
What is a Model in MVC?
a)
A - Model represents server-side data.
b)
B - Model represents data stored in a database.
c)
C - Model is the lowest level of the pattern responsible for maintaining data.
d)
D - None of the above.
49.
What is View in MVC?
a)
A - View represents a database view.
b)
B - View is responsible for displaying all or a portion of the data to the user.
c)
C - View is responsible to act and process the data.
d)
D - None of the above.
50.
What is the controller in MVC?
a)
A - It is a software Code that stores the data.
b)
B - It is a software Code that renders the user interface.
c)
C - It is a software Code that controls the interactions between the Model and View.
d)
D - None of the above.
51.
________ It is the automatic synchronization of data between model and view
a)
A. components.
b)
B. data binding
c)
C. view
d)
D. Angular js
52.
AngularJS is an open source full featured JavaScript framework developed by __________ it was designed to build dynamic web apps in the first place
a)
A. GOOGLE
b)
B. MICROSOFT
c)
C. SUN
d)
D. none of these
53.
_________ allows to bind data and inject eliminate the most part of the code in order to prevent writing it.
a)
A. data binding
b)
B. view
c)
C. Angular js
d)
D. SPA
54.
AngularJS is a JavaScript framework written in ______
a)
A. data binding
b)
B. java script
c)
C. php
d)
D. SPA
55.
_____ in MVC: It is responsible for displaying all data or only a portion of data to
a)
A. the users.
b)
B. model
c)
C. Model View Controller
d)
D. controller
56.
The ______ tag is an inline container used to mark up a part of a text, or a part of a document.
a)
A. <div>
b)
B. <block>
c)
C. <span>
d)
D. none of these.
57.
The _______ directive .it is used to binds application data to the HTML view
a)
A. ng-app
b)
B. ng-model
c)
C. ng-bind
d)
D. none of these.
58.
AngularJS is a powerful javascript framework, used for developing _________ projects in very clean and maintainable way.
a)
A. SinglePageApplication(SPA)
b)
B. doublepage application
c)
C. multipage application
d)
D. none of these
59.
________is a web application or website that interacts with the user by dynamically rewriting the current page rather than loading entire new pages from a server).
a)
A. SinglePageApplication(SPA)
b)
B. doublepage application
c)
C. multipage application
d)
D. non of these
60.
The _____ directive .it is used to binds application data to the HTML view.
a)
A. ng-app
b)
B. ng-model
c)
C. ng-bind
d)
D. none of these.
61.
The ______ directive initializes application data. ,it is used to initializes the data
a)
A. ng-app
b)
B. ng-model
c)
C. ng-bind
d)
D. ng-init
62.
The _______ directive repeats a set of HTML, a given number of times.
a)
A. ng-app
b)
B. ng-bind
c)
C. ng-init
d)
D. ng-repeat.
63.
______ directive is used to show a div tab by linking it to a Boolean variable in the script. If the value of the variable is true then the item is displayed.
a)
A. ng-app
b)
B. ngshow
c)
C. ng-init
d)
D. none
64.
______directive is used to hide a div tab by linking it to a Boolean variable in the script. If the value of the variable is false then the item is not displayed.
a)
A. ng-hide
b)
B. ngshow
c)
C. ng-init
d)
D. none
65.
The AnglarJS ______directive sets the readonly attribute on the element; if it gets that the expression inside ng-readonly is true. it used to show the only which we can not change ,it is only for read only purpose.
a)
A. ng-hide directive
b)
B. readonly diretive
c)
C. ng-init directive
d)
D. ng-repeat.directive
66.
The AngularJS ______ is used to remove the HTML elements if the expression is set to false. If the if element is set to true, a copy of the element is added in the DOM.
a)
A. ng-if directive
b)
B. readonly diretive
c)
C. ng-init directive
d)
D. ng-repeat.directive
67.
The AngularJS _______ facilitates you to specify custom behaviour when an element is clicked. So, it is responsible for the result what you get after clicking
a)
A. ng-click directive
b)
B. readonly diretive
c)
C. ng-init directive
d)
D. ng-repeat.directive
68.
The ______ sets the disabled attribute of a form field (input, select, or textarea).
a)
A. ng-disebled directive
b)
B. readonly diretive
c)
C. ng-init directive
d)
D. ng-repeat.directive
69.
The ________ adds a controller to your application.it control on the application
a)
A. ng-control directive
b)
B. readonly diretive
c)
C. ng-init directive
d)
D. ng-repeat.directive