These SAP UI5 multiple-choice questions and their answers will help you strengthen your grip on the subject of SAP UI5. You can prepare for an upcoming exam or job interview with these 80+ SAP UI5 MCQs.
So scroll down and start answering.
A. One-way
B. Two-way
C. One-time
D. None of the above.
A. Version 15 or higher.
B. Version 33 or higher.
C. Version 39 or higher.
D. Version 40 or higher.
A. The OData service models should be derived from the CDS views.
B. The annotations should be stored in the front-end system.
C. The UI annotations should be attached to CDS views using the tags that are defined by the SAP - ABAP Programming Model for SAP Fiori.
D. CDS UI annotations should not be exposed at the front end.
A. F2
B. F4
C. F6
D. F8
A. validateFieldGroup
B. fieldGroupId
C. aAllControlsWithFieldGroupId
D. validateValue
A. $count
B. $filter
C. $select
D. $expand
A. A custom font family and custom color should be defined.
B. Flexible layout concept in CSS should be used.
C. PX should be used as a unit instead of REM/EM.
D. When flexible layouts do not meet UX expectations, media-queries should be used.
In relation to SAPUI5 network graphs, which of the following is the correct syntax for switching the layout algorithm to NoopLayout?
A.
< NoopLayout>
...
B.
...
C.
</layoutAlgorithm>
...
</Graph>
D.
None of the above.
A. 1
B. 44
C. 7
A. Moving JavaScript artifacts such as namespaces, classes and functions between modules.
B. Adding new values to enumeration types.
C. Eliminating support for configuration entries.
D. Moving properties up in the inheritance hierarchy.
In relation to defining controls in SAPUI5, which of the following is the correct syntax for defining a button control and adding attribute data-text with value "SAPUI5" to it?
A.
< div data-sap-ui-type=sap.ui.commons.Button, data-text=SAPUI5>
B.
< div data-sap-ui-control: sap.ui.commons.Button data-text:
C.
< div data-sap-ui-type=
D.
< div data-sap-ui-type:'sap.ui.commons.Button', data-text:'SAPUI5'>
A. sap.ui.define
B. sap.ui.require
C. sap.ui.table
D. sap.ui.vk
A. var oExampleModel = new sap.ui.model.odata.v2.ODataModel(
B. var oExampleModel = new sap.ui.model.odata.v2.ODataModel({serviceUrl:
C. var oExampleModel = new sap.ui.model.odata.v2.ODataModel({new serviceUrl=
D. Either options a or b.
A. Multiple draft service in an application.
B. Annotations.
C. CRUD calls.
D. Select System Query Option ($select).
A. navTo
B. register
C. parse
D. stop
A. App.controller.js
B. manifest.json
C. App.view.xml
D. Component.js
A. Data is automatically saved to the back-end system, if the data on the UI is changed.
B. When data is edited, objects are locked by the system.
C. A device switch is not supported.
D. No checks are performed during data entry.
A. The use of timeouts should be avoided.
B. The control class styling should never be overwritten indirectly.
C. In CSS selectors, generated IDS should not be used.
D. Namespace selectors should not be created.
A. sap.ui.vbm
B. neo-app.json
C. manifest.json
D. sap.ui.commons
A. sap.m.MessagePage
B. sap.m.Label
C. sap.m.MessageStrip
D. sap.m.ProgressIndicator
A. Edm.Decimal
B. Edm.Double
C. Edm.Binary
D. Edm.Time
Which of the following is the correct code snippet of a constructor, which is used for creating a new text control that says "SAPUI5 Example" with tooltip value "Learning SAPUI5" and width "80px"?
A.
var oText= new sap.m.Text(
B.
var oText= new sap.m.Text({text : "SAPUI5 Example", tooltip: "Learning SAPUI5", width: "80px"});
C.
var oText = new sap.m.Text(oText.setValue = "SAPUI5 Example";
oText.setTooltip = "Learning SAPUI5";
oText.setWidth = "80px";
D.
var oText = new sap.m.Text(
oText.setValue("SAPUI5 Example");
oText.setTooltip("Learning SAPUI5");
oText.setWidth("80px");
A. npm install grunt-cli -g
B. npm install grunt-cli -globally
C. npm install -g grunt-cli
D. npm install grunt-g-cli
In relation to creating a new OData service in SAPUI5, which of the following is the correct syntax of the annotation that is used to implicitly generate the CRUD request?
A.
@ObjectModel.writeEnabled: true
@ObjectModel.writeDraftPersistance: '
B.
@ObjectModel.Enabled: true
@ObjectModel.DraftPersistance:
C.
@ObjectModel.writeEnabled= @ObjectModel.writeDraftPersistance="<Name of Business Object>"
D.
@ObjectModel.writeEnabled: 1
@ObjectModel.writeDraftPersistance: Name of Business Object
A. vizScales
B. legendVisible
C. selectData
D. vizProperties
A. sap_belize
B. sap_hcb
C. sap_platinum
D. sap_ux
A. oModel.remove(
B. oModel.Delete(
C. oModel.remove(
D. oModel.remove(
A. doIt : oEvent.function{ alert(oEvent.getSource().getId() +
B. doIt : function.oEvent { alert(getSource(oEvent).getId() +
C. doIt : function(oEvent) { alert(oEvent.getSource().getId() +
D. doIt : oEvent { alert(getSource(oEvent).getId() +
A. formatter
B. parts
C. controller
D. i18n.properties
A. They provide multi-device support.
B. They provide reused functionality with the help of some specific programming.
C. They provide a common look, feel and UI behaviour for all apps.
D. They support message handling.
A. DNS
B. IMAP
C. NTP
D. HTTP
A. R_i
B. RO_i_s
C. SR_i_s
D. S_i_s
In SAPUI5, which of the following statements are correct for a control with a fieldGroupId that has the focus currently?
i) The validateFieldGroup event is fired when the control is destroyed before the focus is moved to another control.
ii) The validateFieldGroup event is fired for the new fieldGroupIds instead of the old ones if the control changes its fieldGroupIds.
A.
Only statement i) is correct.
B.
C.
Both statements i) and ii) are correct.
D.
Neither statement i) nor ii) is correct.
A. config
B. routes
C. sample
D. targets
E. coding
A. General
B. Object page
C. List report
D. None of the above.
A. UI.Chart Description
B. UI.Chart Title
C. Neither option a nor b.
A. Only one.
B. Only two.
C. Only three.
D. Only five.
A. Yes
B. No
A. sap.viz.ui5.controls.Popover
B. sap.viz.ui5.controls.VizFrame
C. sap.viz.ui5.controls.VizTooltip
D. None of the above.
A. JSON
B. XML
C. SQL
D. OData
A. jQuery.sap.initMobile()
B. jQuery.sap.getter()
C. jQuery.sap.require()
D. jQuery.sap.resources()
A. True
B. False
C. 1
D. None of the above.
In SAPUI5, which of the following statements is correct about two-way data binding?
i) With data binding, the value of the property of a control can be derived from any suitable property in a model.
ii) The transport of data, both from the model to the controls and back from the controls to the model, is automatically handled by SAPUI5.
A.
Only statement i) is correct.
B.
Only statement ii) is correct.
C.
Both statements i) and ii) are correct.
D.
Both statements i) and ii) are incorrect.
In relation to SAPUI5 CRUD operations, which of the following is the correct syntax for creating an entity Employees with entity data EmployeeId that has a value, 5021, and EmployeeName that has a value, Mathew?
A.
var oData = {
new EmployeeId:5021,
new EmployeeName:
}
oModel.create.dData("/Employees", {success: mySuccessHandler, error:
myErrorHandler});
B.
var oData = {
EmployeeId: 5021,
EmployeeName:
}
oModel.create("/Employees", oData, {success: mySuccessHandler, error:
myErrorHandler});
C.
var oData = {
EmployeeId = 5021,
EmployeeName =
}
oModel.create(oData, "/Employees", success= mySuccessHandler, error=
myErrorHandler);
D.
var oData = {
EmployeeId:5021;
EmployeeName:
}
oModel.create("/Employees", {oData.success: mySuccessHandler, oData.error:
myErrorHandler});
A. Ctrl + Shift + F
B. Ctrl + Alt + Shift + F
C. Ctrl + Alt + Shift + N
D. Alt + Shift + N
A. These message are only valid for a short time.
B. These message are only displayed for a short time.
C. These message are saved to the database.
D. Both options a and c are incorrect.
Which of the following types of graphs is/are supported by network graphs?
i) Directed graph
ii) Undirected graph
iii) Graphs containing cycles
A.
Only option i).
B.
Only options i) and iii).
C.
Only options i) and ii).
D.
All options i), ii) and iii).
While creating an application using SAPUI5, which of the following syntax is used for creating a new view folder in a user
A.
xmlns=xmlns.mvc="sap.ui.core.mvc">
<Text content="SAPUI5 Example"/>
..........................
</mvc>
B.
xmlns=xmlns:mvc="sap.ui.core.mvc">
<Text content="SAPUI5 Example"/>
..........................
</mvc:View>
C.
xmlns=sap.m
mvc. xmlns=sap.ui.core.mvc>
...........................
</mvc:View>
D.
xmlns:xmlns.mvc: "sap.ui.core.mvc">
<Text content:"SAPUI5 Example"/>
.........................
</mvc >
A. sap.ui.base.Event
B. String
C. Boolean
D. Object
While creating an SAPUI5 application project, which of the following code snippets should be added to the createContent function in a JS view, in order to add a control to a user
A.
var myExampleControls = [];
var exampleButton = new sap.ui.commons.Button({
id : this.create.newId(
text= "Example JS View"
});
myExampleControls.add(exampleButton.attachPress(oController.doIt));
return myExampleControls;
B.
var myExampleControls = [];
var exampleButton = new sap.ui.commons.Button({
id : this.createId(
text : "Example JS View"
});
myExampleControls.push(exampleButton.attachPress(oController.doIt));
return myExampleControls;
C.
var myExampleControls = [{}];
var exampleButton = new sap.ui.commons.Button({
id.this.createId(
text : "Example JS View"
});
exampleButton.push(myExampleControls.attachPress(oController.doIt));
return myExampleControls;
D.
None of these