Sail E0 Webinar

MCQs

Total Questions : 37 | Page 1 of 4 pages
Question 1. What command will create a new Angular app with a root routing module?
  1.    ng generate my-dream-app
  2.    ng new my-dream-app --routing
  3.    ng generate my-dream-app --routing
  4.    ng new my-dream-app --module
 Discuss Question
Answer: Option B. -> ng new my-dream-app --routing
Question 2. Which of the following is not built-in pipe in Angular?
  1.    DatePipe
  2.    CurrencyPipe
  3.    DataPipe
  4.    PercentPipe
 Discuss Question
Answer: Option C. -> DataPipe
Question 3. Which are the different Data Types supported by Typescript?
  1.    Boolean var bValue: boolean = false
  2.    Number var age: number = 16
  3.    String var name: string = "jon"
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above
Question 4. Select all Structaral directives from below { (i) *ngIf } { (ii) *ngFor } { (iii) *ngClass } { (iv) *ngElse } { (v) *ngWhile } { (vi) *ngSwitch }
  1.    ii, iii, v
  2.    i, ii, iv
  3.    i, ii, vi
  4.    i, iii, v
 Discuss Question
Answer: Option C. -> i, ii, vi
Question 5. Which statements about metadata in angular are true
  1.    Meta-data is the way for processing the class and the component.
  2.    It is used to decorate the class
  3.    All the decorator are used by the meta-data to attach variable to the component or module class.
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above
Question 6. What decorator is used to make a class a service?
  1.    Injector
  2.    Service
  3.    Injectable
  4.    Component
 Discuss Question
Answer: Option C. -> Injectable
Question 7. Cons of SPA - Single Page Application
  1.    XSS
  2.    SEO
  3.    Lazy loading
  4.    Both a & b
 Discuss Question
Answer: Option D. -> Both a & b
Question 8. AngularJS needs data in JSON format to populate its model
  1.    yes
  2.    no
 Discuss Question
Answer: Option A. -> yes
Question 9. What is the quality that is not in Angular?
  1.    Directives
  2.    Pipes
  3.    Component
  4.    RoutingLink
 Discuss Question
Answer: Option D. -> RoutingLink
Question 10. Which of the below commands are used for installing dependencies in Node
  1.    npm add dependencyName
  2.    npm i / install -g dependencyName
  3.    node i / install dependencyName
  4.    node i / install dependencyName
 Discuss Question
Answer: Option B. -> npm i / install -g dependencyName

Latest Videos

Latest Test Papers