Home / CSE MCQs / Angular 2 ::

CSE MCQs :: Angular 2

  1. Angular 2 integrates easily with NativeScript, allowing you to code your native app in a . . . . . . . . . style that can run on any mobile device platform.
  2. A.
    declarative
    B.
    imperative
    C.
    interrogative
    D.
    exclamatory

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Angular 2 components can be described using ________is a way to do some meta-programming.
  4. A.
    controllers, controller
    B.
    loaders, loader
    C.
    typescripts, typescript
    D.
    decorators, decorator

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The ______ directive substitutes the normal href property and makes it easier to work with route links in Angular 2.
  6. A.
    RouterLink
    B.
    RouterRend
    C.
    RouterLike
    D.
    RouterLayer

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Since Angular 2 defines a set of built-in directives, the . . . . . . . . method passes them in a similar way in order to make them available in the entire application in order to prevent us from code duplications.
  8. A.
    startup
    B.
    bootstrap
    C.
    constructor
    D.
    initialization

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. What are the new features of Angular2?
  10. A.
    Component-Based
    B.
    Directives
    C.
    Dependency Injection
    D.
    All of these

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. On the opposite side of event bindings (()) lie Angular's square-bracket syntax ([]) which signify a . . . . . .
  12. A.
    property binding
    B.
    class binding
    C.
    style binding
    D.
    Both A & B

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. A special mention is required about the children element marked with the . . . . . . . . . . . directive attribute. This attribute qualifies the template that will be displayed when no other value defined by its ngSwitchWhen siblings matches the parent conditional expression.
  14. A.
    ngDefault
    B.
    ngTemplateDefault
    C.
    ngDefaultSwitch
    D.
    ngSwitchDefault

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following is correct about Angular 2 Routing?
  16. A.
    Routing helps in directing users to different pages based on the option they choose on the main page
    B.
    Based on the option they choose, the required Angular Component will be rendered to the user
    C.
    Both of the above
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Angular 2 is using . . . . . . . . to detect changes.
  18. A.
    zone$.js
    B.
    Scope.js
    C.
    zone.js
    D.
    zones.js

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Angular 2 can detect when component data changes, and then automatically re-render the view to reflect that change.
  20. A.
    True
    B.
    False
    C.
    Both
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum