It’s time to put what you’ve learned to the test, get 7 questions right to pass this unit.
Q1.
Which file contains the initialization code for the UI library?
Choose the correct answer.
A
library.load.js
B
library.js
C
loadlibrary.js
D
lib.dll
Q2.
Which of the following aspects are true for an SAPUI5 UI element?
There are 3 correct answers.
A
A UI element has an API.
B
A UI element does not have a renderer.
C
A UI element has a renderer.
D
A UI element can have events.
Q3.
Which of the following statements are true with regard to implementing your own renderer?
There are 3 correct answers.
A
Implement the render function inside the control.
B
Implement a renderer class, derived from sap.ui.core.Renderer, in a separate file.
C
Implement the renderer using AMD syntax.
D
Assign a reference to the renderer property of the UI control.
Q4.
Which function must be called inside a control renderer to add the control ID to the DOM tree and support eventing?
Choose the correct answer.
A
writeClasses
B
writeIcon
C
writeControlData
D
write
Q5.
What is the base class for all UI controls in SAPUI5?
Choose the correct answer.
A
sap.ui.Control
B
sap.ui.core.Control
C
sap.ui.base.Control
D
sap.ui.Element
Q6.
How can a renderer access the associated elements?
Choose the correct answer.
A
The developer must implement an appropriate function to access the elements.
B
SAPUI5 provides functions to access all properties, associations, and aggregations.
C
The developer must define a property method in the control metadata and declare the access control.
Q7.
You want to define a property with the name width to enhance a standard UI5 control. The property should hold the current width of the UI control. What is the best approach to defining the type of such a property?
Choose the correct answer.
A
Define the property width of the type string.
B
Define the property width of the typesap.ui.core.Integer.
C
Define the property width of the type sap.ui.core.CSSSize.
D
Define the property width of the type sap.ui.core.type.CSSSize.