139
86.4k

160+ Angular-JS Solved MCQs

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Business Administration in Computer Applications (BBA [CA]) .

Chapters

Chapter: AngularJS Directives and Expressions
51.

Angular 2 is a cross platform framework.

A. True
B. False
C. none
D. all
Answer» A. True
52.

Angular 2 is entirely component based. Controllers and $scope are no longer used. They have been replaced by . . . . . . . and . . . . . . . .

A. components, controllers
B. $scopes, components
C. components, directives
D. controllers, directives
Answer» C. components, directives
53.

Angular 2 still does not provide nested components.

A. True
B. False
C. none
D. all
Answer» B. False
54.

Angular 2 components can be described using . . . . . . A . . . . . . is a way to do some meta-programming.

A. controllers, controller
B. loaders, loader
C. typescripts, typescript
D. decorators, decorator
Answer» D. decorators, decorator
55.

Angular 2 uses . . . . . . . . syntax for built-in directives.

A. Pascal case
B. Snake case
C. Camel case
D. Underscore case
Answer» C. Camel case
56.

You can use languages like . . . . . . . . . to write Angular 2 code.

A. ES5
B. ES6
C. TypeScriptor
D. Dart
Answer» A. ES5
57.

The . . . . . . . . . . directive substitutes the normal href property and makes it easier to work with route links in Angular 2.

A. RouterLink
B. RouterRend
C. RouterLike
D. RouterLayer
Answer» A. RouterLink
58.

There are two ways to build forms in Angular 2, namely . . . . and . . . . . .

A. interface-driven
B. model-driven
C. template-driven
D. modular-driven
Answer» B. model-driven
59.

Angular 2 is an open source JavaScript framework to build web applications in HTML and JavaScript and has been conceived as a . . . . . . . . .

A. mobile first approach
B. UI first approach
C. web first approach
D. all of above
Answer» A. mobile first approach
60.

Angular 1 core concept was $scope, and you will not find $scope in angular 2.0. Angular 2 is using . . . . . . . . to detect changes.

A. zone$.js
B. Scope.js
C. zone.js
D. zones.js
Answer» C. zone.js
61.

Angular 2 integrates easily with NativeScript, allowing you to code your native app in a . . . . . . . . . style that can run on any mobile device platform.

A. declarative
B. imperative
C. interrogative
D. exclamatory
Answer» A. declarative
62.

Angular 2 make use of the . . . . . . . module syntax.

A. ES2016a
B. ES2017
C. ES2016
D. ES2015
Answer» D. ES2015
63.

In Angular 2, applications rely upon the . . . . . . . method to load top-level components

A. loadstrap
B. bootstrap
C. bootload
D. none of above
Answer» B. bootstrap
64.

In Angular 2.0, the template compilation process is . . . . . . .

A. synchronous
B. asynchronous
C. none
D. all
Answer» B. asynchronous
65.

On the opposite side of event bindings (()) lie Angular's square-bracket syntax ([]) which signify a . . . . . .

A. property binding
B. class binding
C. style binding
D. both A & B
Answer» A. property binding
66.

Angular 2.0 contains a logging service called . . . . . which is very useful feature measuring where time is spent in your application.

A. config.js
B. logging.js
C. diary.js
D. none of above
Answer» C. diary.js
67.

The router in Angular 2.0 has been reworked to be simple, yet extensible. It will include the following basic features:

A. Simple JSON-based Route Config
B. Optional Convention over Configuration
C. Static, Parameterized and Splat Route Patterns
D. URL Unresolver
Answer» A. Simple JSON-based Route Config
68.

Angular 2 has a . . . . . . . service that allows us to dynamically load a component in a certain position on the page.

A. DynamicControlLoader
B. DynamicControllerLoader
C. DynaCompLoader
D. DynamicComponentLoader
Answer» D. DynamicComponentLoader
69.

Angular 2 can detect when component data changes, and then automatically re-render the view to reflect that change.

A. True
B. False
C. none
D. all
Answer» A. True
70.

AngularJS supports . . . . . kind(s) of data binding.

A. one
B. two
C. three
D. four
Answer» B. two
71.

AngularJS never regenerates the HTML again.

A. True
B. False
C. none
D. all
Answer» A. True
72.

AngularJS bindings are . . . . . , meaning that when the value associated with the binding is changed (in the data model), the HTML element will be updated.

A. parallel
B. one way
C. two way
D. live
Answer» D. live
73.

You can use the . . . . . . directive, in order to bind the innerHTML of the element to the specified model property.

A. ng-bind
B. ng-binding
C. ng-binds
D. ng-bindings
Answer» A. ng-bind
74.

Any change to the . . . . and . . . . . properties affects these bindings and consequently the user interface content.

A. noOfTries, deviations
B. restart, tries
C. noOfTries, deviation
D. noOfTry, deviation
Answer» C. noOfTries, deviation
75.

In two-way binding, changes done to a model are reflected in the view, but the reverse also holds true sometimes.

A. True
B. False
C. none
D. all
Answer» B. False
76.

You can create bindings only for the data values that are added to the . . . . . object by the controller.

A. $action
B. $control
C. $scope
D. none of above
Answer» C. $scope
77.

The ng-bind directive . . . . . . allow you to hide your template markup when the HTML content is shown to the user before it is processed by AngularJS.

A. does
B. does not
C. none
D. all
Answer» A. does
78.

The drawback of inline bindings is that AngularJS will not find and process every set of {{ and }} characters in your content.

A. True
B. False
C. none
D. all
Answer» B. False
79.

When adding . . . . . and . . . . . . to a view, we are essentially instructing Angular to create data bindings that keep the model and view in sync.

A. extrapolations, interpolations
B. scopes, directives
C. directives, interpolation
D. none of above
Answer» C. directives, interpolation
80.

The . . . . . directive is used if you want to add or remove HTML elements from the DOM based on data in the model.

A. ng-switch
B. ng-model
C. ng-Disabled
D. ng-Cloak
Answer» A. ng-switch
Chapter: AngularJS Modules, Controller, View and Scope
81.

AngularJS is based on the _____ pattern

A. VMC
B. MVC
C. MCV
D. CVM
Answer» B. MVC
82.

What is Angular Js?

A. Library
B. Framework
C. Plugin
D. Browser Extension
Answer» B. Framework
83.

AngularJS applications are a mix of _____

A. HTML and PHP
B. HTML and CrossScript
C. HTML and AngularScript
D. HTML and JavaScriptcorrect
Answer» C. HTML and AngularScript
84.

How to include HTML content into another HTML?

A. Server Side push
B. Use of CommetD
C. Use of Polling
D. Use of include
Answer» D. Use of include
85.

What is MVC (Mode View Controller)?

A. It is a services for Java built function
B. It is marker for DOM elements
C. It is a software design pattern for developing web applications
D. None of the above
Answer» C. It is a software design pattern for developing web applications
86.

Which of the following is true about AngularJS service?

A. Services are JavaScript functions
B. Services are responsible to do specific tasks only
C. Inbuilt services are always prefixed with $ symbol
D. All of the above
Answer» D. All of the above
87.

Which of the following is valid for AngualarJS module

A. var app = angular.module(["myApp","param");
B. var app = angular.module("myApp", []);
C. var app = angular.module();
D. var app = angular.module("myApp");
Answer» D. var app = angular.module("myApp");
88.

What angular function is used to manually start up an angular application ?

A. angular.bootstrap
B. angular.element
C. angular.copy
D. None of the above
Answer» A. angular.bootstrap
89.

Which of the following is true about

A. $routeProvider $routeProvider maps Urls with the corresponding html page or ng-template
B. $routeProvider attaches a controller with the view
C. All of these
D. $routeProvider is the key service which set the configuration of urls
Answer» C. All of these
90.

Which is the right format for calling a ng-bind function?

A. ng-bind
B. ng:bind
C. ng_bind
D. All the Above
Answer» D. All the Above
91.

What is the purpose of angular.module in AngularJS?

A. It creates an application module
B. It invokes an application module
C. It destroys an application module
D. None
Answer» A. It creates an application module
92.

What are various possible ways in which angular application can be initialized?

A. On an element, one could either put simply the attribute such as (ng-app, datang-app, ng:app, x-ng-app)
B. Put the named attribute such as (ng-app='demoApp')
C. Both of the above
D. None
Answer» C. Both of the above
93.

AngularJS controllers control ___of AngularJS applications.

A. the data
B. thefunction
C. thevariable
D. None of these
Answer» A. the data
94.

Which directive defines the application controller?

A. ng-model
B. ng-ctrl
C. ng-controller
D. None of these
Answer» C. ng-controller
95.

Whichdirectives bind the input fields to the controller properties?

A. data-ng-model
B. ng-app
C. ng-controller
D. None of these
Answer» A. data-ng-model
96.

In larger applications,controllers are stored in ___?

A. external files
B. scope object
C. internal files
D. None of these
Answer» A. external files
97.

Which statement is true about scope in AngularJS?

A. The scope is the binding part between the HTML (view) and the JavaScript (controller).
B. The scope is an object with the available properties and methods.
C. The scope is available for both the view and the controller.
D. All of the above
Answer» D. All of the above
98.

Controller, which is the JavaScript function that ___ the data?

A. Makes
B. Changes
C. Removes
D. All of the above
Answer» D. All of the above
99.

$rootScoperefers to an object which is accessible from everywhereof theapplication.

A. True
B. False
C. none
D. all
Answer» A. True
100.

$rootScope is created with ___

A. ng-controller
B. ng-app
C. ng-init
D. None of these
Answer» B. ng-app

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.