139
83.1k
Chapter:

30+ AngularJS Directives and Expressions Solved MCQs

in Angular-JS

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
1.

Angular 2 is a cross platform framework.

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

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
3.

Angular 2 still does not provide nested components.

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

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
5.

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

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

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

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

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
8.

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
9.

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
10.

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
11.

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
12.

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

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

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
14.

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

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

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
16.

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
17.

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
18.

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
19.

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
20.

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

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

AngularJS never regenerates the HTML again.

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

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
23.

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
24.

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
25.

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
26.

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
27.

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
28.

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
29.

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
30.

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

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.