Search Header Logo

Angular

Mathematics, Computers

2nd - 3rd Grade

Used 63+ times

Angular
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

How would you debug and evaluate the response of the http.get function (using HttpClient) using a debugger?

You cannot place breakpoints on asynchronous operators

Place a breakpoint on the function that calls the http.get

Place a breakpoint on the http.get

Place a breakpoint inside one of the functions inside the pipe call

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What does this syntax do? routerLink="/crisis-center"

It navigates to the component with a name matching the assigned string

It links a route to a service by matching the assigned string to a service class name

It links a route with data by matching the assigned string to a property name

It navigates to the component with a path matching the assigned string

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

The purpose of the providers array of an Angular module is to define the set of:

libraries used by the application including Angular system and third-party libraries.

components that the application provides to other parts of the application.

components, custom directives, and custom pipes.

objects available for dependency injection.

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the correct syntax to associate an external template file orders.component.html to an OrdersComponent , when both are in the same orders/ folder?

@Component({

template: './orders.component.html'

})

@Component({

templateUrl: './*'

})

@Component({

templateUrl: './orders/orders.component.html'

})

@Component({

template: `

./orders/orders.component.html

`

})

@Component({

templateUrl: './orders.component.html'

})

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What command will create a new Angular app with a root routing module?

ng generate my-dream-app

ng new my-dream-app --module

ng generate my-dream-app --routing

ng new my-dream-app

ng new my-dream-app --routing

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

You apply a style selector in a component's CSS file. Which matching elements will be affected?

All matching elements in the application

All matching elements in the component and its child components

All matching elements in the module

All matching elements in the component, only

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

How would you write code to modify the response from an http.get ?

Using the modify operator chained to the http.get

Using the map function inside of the pipe operator chained to the http.get

Using the transform operator chained to the http.get

Subscribing to the http.get and setting the response to a local variable

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?