Skip to main content

Angular 5 Modules

Angular 5 Modules


Modules are a great way to organize an application and extend it with capabilities from external libraries. NgModules consolidate components, directives, and pipes into cohesive blocks of functionality, each focused on a feature area, application business domain, workflow, or common collection of utilities. Modules can also add services to the application. [Via].

Check your knowledge on Angular 5 Modules by answering these below questions:

1.
To be able to define modules we have to use the decorator . . . . . .

A) @Component
B) @NgModule
C) @Input
D) @angular

2.
Every Angular app has at least one module, the . . . . . . You bootstrap that module to launch the application.

A) uproot module
B) top module
C) basic module
D) root module

3.
The purpose of a NgModule is to declare each thing you create in Angular, and group them together (like Java packages or PHP / C# namespaces).

A) True
B) False

4.
Using . . . . . modules makes Angular applications easier to manage and maintain. . . . . . module is used to group related functionality together, such as the data repository classes in the data model.

A) JavaScript, feature
B) feature, JavaScript
C) feature, feature
D) JavaScript, JavaScript

5.
Any module providing you services only is to be imported . . . . . .

A) only once
B) twice
C) number of times
D) thrice

6.
The root module is a special Angular module that configures the entire application. One of its roles is to give Angular details of the features modules that the application requires.

A) True
B) False

7.
The root module is defined by applying the . . . . . decorator to a class.

A) @Module
B) @RtModule
C) @NgModule
D) @Output

8.
The four Angular Module Configuration properties are . . . . ., . . . . . , . . . . . and . . . . .

A) providers
B) imports
C) declarators
D) bootstrap
E) declarations

9.
Modules can be loaded eagerly . . . . . . . . .

A) when the application starts
B) lazy loaded asynchronously by the router
C) as and when required

10.
Add only . . . . . classes to an NgModule's declarations list.

A) declarable
B) non-declarable
C) initial
D) None of above

11.
. . . . . property is used to specify the Angular modules that the application requires.

A) imports
B) providers
C) declarations
D) bootstrap


Answers

Comments

Popular posts from this blog

Conjunction Worksheet

Practice English Grammar Conjunctions with the below Conjunction worksheet. Apart from this Conjunction worksheet, you can also go through other Conjunction exercises: Conjunction exercise 1 , Conjunction exercise 2 . Co-ordinating Conjunctions A conjunction placed between words, phrases, clauses, or sentences of equal rank, e.g. and, but, or. [ Via ] Correlative Conjunctions They get their name from the fact that they work together (co-) and relate one sentence element to another. Correlative conjunctions include pairs like "both/and," "whether/or," "either/or," "neither/nor," "not/but" and "not only/but also". [ Via ] For example He'd rather run to school than walking. Identify Co-ordinating Conjunctions: 1. Many women and children came to see the movie. 2. I wrote to him, but she did not respond. 3. Her condition became worse, so she was taken to nearby hospital. 4. We should hire a cab, otherwise we will n...

PHP Constructors Multiple Choice Questions

PHP Constructors Multiple Choice Questions 1) PHP recognises constructors by the name . . . . . A) _construct B) __construct C) __constructor D) _constructor 2) In . . . . . constructors, it is important to remember that you have to call the parent constructor explicitly. A) Singleton B) secure C) public D) subclass 3) Constructor and destructor methods have no . . . . . . and are called automatically - they cannot be called explicitly and consequently their declarations need no access specifier. A) parameters B) destructor C) return value D) aproval 4) Unlike constructors, you cannot pass information to a destructor, because you are never sure when its going to be run. A) True B) False 5) You can invoke class constructors that don’t have any relation to the instantiated object by simply prefacing _constructor with the class name like A) classname::__construct() B) classname:__construct() C) classname=>__construct() D) classname->__construct() 6) . . . . . . is...

100 Top XML Multiple Choice Questions and Answers

Below are the list of top 100 XML multiple choice questions and answers for freshers beginners and experienced pdf. XML Multiple Choice Questions and Answers 1. What does XML stand for? A. eXtra Modern Link B. eXtensible Markup Language C. Example Markup Language D. X-Markup Language Ans: B 2. What is the correct syntax of the declaration which defines the XML version?: A. <xml version="A.0" /> B. <?xml version="A.0"?> C. <?xml version="A.0" /> D. None of the above Ans: B 3. Which statement is true? A. All the statements are true B. All XML elements must have a closing tag C. All XML elements must be lower case D. All XML documents must have a DTD Ans: B 4. Is it easier to process XML than HTML? A. Yes B. No C. Somtimes D. Cant say Ans: A 5. Which of the following programs support XML or XML applications?: A. Internet Explorer 5.5 B. Netscape D.7 C. RealPlayer. D. both A and B Ans: D 6. Kind of Parsers are A. well-formed B. well-documente...