Skip to content

20 questions to test your knowledge of the Google Framework!

Notifications You must be signed in to change notification settings

Anna-12-Mer/Angular-Quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 

Repository files navigation

Angular-Quiz

Angular

20 questions to test your knowledge of the Google Framework! => The total score must be at least: 15 points 🤓

1- Angular is a framework oriented… (1 point):

  • Components
  • Modules
  • JavaScript
The right answer! Components

2- Which company is behind Angular... (1 point):

  • Amazon
  • Facebook
  • Google
  • Apple
  • Microsoft
The right answer! Google

3- What is a transpiling used for? (2 point):

  • Convert your TypeScript code to JavaScript code
  • Improve the quality of your JavaScript code
  • Change the behavior of your web page on mobile devices
  • Convert JavaScript code from ECMAScript 6 standard to ECMAScript 5
The right answer! Convert JavaScript code from ECMAScript 6 standard to ECMAScript 5

4- What is the recommended language for developing Angular applications? (1 point):

  • Dart
  • TypeScript
  • JavaScript
The right answer! TypeScript

5- Are browsers able to interpret TypeScript directly (1 point):

  • Yes
  • no
The right answer! No

6- Which standards below are part of the WebComponents standard? (2 point):

  • HTML imports
  • Dynamic style sheets
  • The shadow DOM
  • HTML templates
  • The virtual DOM
  • Custom items
The right answer! * HTML imports * The shadow DOM * HTML templates * Custom items

7- Is it possible to have multiple shadow DOMs on a single web page? (1 point):

  • Yes
  • no
The right answer! Yes

8- What do you call the module at the base of any Angular application? (1 point):

  • The single module
  • The original module
  • The root module
The right answer! The root module

10 - Which of the lists below corresponds to the methods available to interact with the lifecycle of a component, in the chronological order they are called by Angular? (2 point):

  • ngOnInit - ngAfterViewInit - ngOnChanges - ngOnDestroy
  • ngDoCheck - ngOnInit - ngOnDestroy - ngOnChanges
  • ngOnChanges - ngOnInit - ngAfterViewInit - ngOnDestroy
  • ngOnInit - ngDoCheck - ngAfterViewInit - ngOnChanges
The right answer! ngOnChanges - ngOnInit - ngAfterViewInit - ngOnDestroy

11- We can develop the template of a component: (1 point):

  • On multiple lines via component annotation
  • In a specific file, separate from the component.
  • In a special service that only manages the application templates.
  • On a single line, in the annotation of the component.
The right answer! - On multiple lines via component annotation. - In a specific file, separate from the component. - On a single line, in the annotation of the component.

12- What do you call displaying a property of a component in its template? (1 point):

  • Superposition
  • Extrapolation
  • Intra-link
  • Interpolation
The right answer! Interpolation

13- Which items below are directives? (1 point):

  • Structural directives
  • The components
  • Pipes
  • Functional modules
  • Attribute directives
  • None of the above!
The right answer! - Structural directives - The components - Attribute directives

14- What is the @HostListener annotation for? (1 point):

  • It allows our application to be hosted by the Listener host
  • It allows to bind a method of a directive to a given event
  • It allows to intercept the interactions of the user in the component
  • It allows you to tell Angular that a class is a directive
The right answer! It allows to bind a method of a directive to a given event

15- What are the basic pipes available in an Angular application? (1 point):

  • DatePipe
  • ColorPipe
  • CountryPipe
  • LowerCasePipe
  • CurrencyPipe
The right answer! DatePipe - CountryPipe - LowerCasePipe

16- What operator is used to intercept all requests to the application? (1 point):

  • |
  • **
  • +
  • ?
The right answer! **

17- What types of module exist in an application? (1 point):

  • Complementary modules
  • The root module
  • Functional modules
  • Source modules
The right answer! The root module - Functional modules

18- What annotation should we decorate our services with? (2 point):

  • @HostListener
  • @Injectable
  • @Directive
  • @Service
The right answer! @Injectable

19- In what situations can Guards be used? (2 point):

  • To set up an authentication system
  • To verify data recovery before a redirect
  • To change the theme of your application
  • To manage redirects in the app
The right answer! To set up an authentication system - To manage redirects in the app

20- Which library is recommended to implement reactive programming in an Angular application?(2 point)

  • Bacon.js
  • ReactiveProgramming
  • RxJS
  • Currently, there is no library for reactive programming
The right answer! RxJS

About

20 questions to test your knowledge of the Google Framework!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published