It’s time to put what you’ve learned to the test, get 5 questions right to pass this unit.
Q1.
The router provides a method to navigate to a specific route. What is the name of this method?
Choose the correct answer.
A
display
B
navTo
C
setRoute
D
goTo
Q2.
You have created aBackbutton on a view and call thegetPreviousHashmethod of thesap.ui.core.routing.Historyinstance in the implementation of the attached event handler. What value does this method return if there has been no navigation in the application yet?
Choose the correct answer.
A
null
B
""(empty string)
C
The pattern from the routing configuration that was assigned to the root view of the component.
D
undefined
Q3.
In the application descriptormanifest.jsonthe routing configuration can be found in theroutingproperty of thesap.ui5namespace. What are the sections that make up this routing configuration?
There are three correct answers.
A
config
B
router
C
routes
D
targets
E
hashes
Q4.
The component controllerComponent.jshas a method calledinitin which initializations necessary for the component are implemented. Which of the following method calls must be added to thisinitmethod so that the current URL hash is evaluated and the corresponding views are automatically displayed?
Choose the correct answer.
A
this.getRouter().initialize();
B
this.getRouter().setup();
C
this.getRouter().registerRoutes();
D
this.getRouter().init();
Q5.
You have specified"detail/{customerId}"in the routing configuration as the value for thepatternproperty of a route. Which of the following URL hashes match this pattern of the route and therefore result in thepatternMatchedevent being fired?
There are four correct answers.
A
detail/abc
B
detail/456
C
detail/456/Orders
D
detail
E
/detail/456
F
detail/
G
detail/(00505604-4e85-1edd-818f-21e64b9cd2cf)
Q6.
In the routing configuration, one or more targets can be specified to be displayed if no route of the router matches after changing the hash. What is the name of the property used to specify the corresponding targets?