Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What are child routes?
A. Routes to child modules
B. Routes for children components
C. Routes nested within a parent route
D. Secondary routes
Direction: Choose the correct option

Q2.

How do you define child routes in a route configuration?
A. Nesting route objects
B. Using the `children` property
C. Using `childRoutes` property
D. Using `loadChildren`
Direction: Choose the correct option

Q3.

Given a parent route '/users' with child '/profile', what is the full path?
A. /users//profile
B. /users/profile
C. /users-profile
D. /profile/users
Direction: Choose the correct option

Q4.

How many `` components are needed for nested routes?
A. One in the parent component for children, plus the root outlet
C. Only one total
D. One for each level
Direction: Choose the correct option

Q5.

What is an empty path child route used for?
A. To render a default component within the parent's outlet
B. To handle 404
C. To create a redirect
D. To load modules
Direction: Choose the correct option

Q6.

How do you navigate to a child route from the parent component?
A. All of the above
B. Use absolute path
C. Use relative navigation: `router.navigate(['child'], {relativeTo: route})`
D. Use `routerLink` with full path
Direction: Choose the correct option

Q7.

What is a componentless route?
A. A route with no component, used to group routes
B. A route with empty path
C. An invalid route
D. A route without a component
Direction: Choose the correct option

Q8.

Can child routes have their own child routes?
A. Only with `loadChildren`
B. Yes, nested routes can be multi-level
C. No, only one level
D. Only in root
Direction: Choose the correct option

Q9.

What is the purpose of the `outlet` property in routes?
A. To define outlet component
B. To define named router outlets for multiple views
C. To define outlet name
D. To define output
Direction: Choose the correct option

Q10.

How do you access child route parameters from a parent component?
A. Not possible
B. Using `parent` property
C. Using `root` property
D. `ActivatedRoute.firstChild` or `ActivatedRoute.children`