SAP UI5 Skills Test Fiverr

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's view?

a. var myExampleControls = [];

var exampleButton = new sap.ui.commons.Button({

id : this.create.newId("MyButton"),

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("MyButton"),

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("MyButton"),

text : "Example JS View"

});

exampleButton.push(myExampleControls.attachPress(oController.doIt));

return myExampleControls;

d. None of these

In SAPUI5, how many instances of the OData service can be covered by an OData model instance?

a. Only one.

b. Only two.

c. Only three.

d. Only five.

In relation to adding or overriding control methods, which of the following is a good example of code?

a. oControl.onAfterRendering = function()

{

// Code

};

b. oControl.prototype.setText = function()

{ ... };

c. oControl.addEventDelegate({

onAfterRendering:function() {

// code

}

});

d. None of the above.

In relation to SAPUI5 CRUD operations, which of the following is the correct syntax for disabling auto refresh?

a. oData.oModel.setRefreshAfterChange(false);

b. oModel.setRefreshAfterChange = "false";

c. oModel.setRefreshAfterChange(false);

d. oModel.oData.setRefreshAfterChange:false;

In relation to complex data binding in SAPUI5, which of the following properties is a JavaScript array where each element is an object that contains a path property?

a. formatter

b. parts

c. controller

d. i18n.properties

In relation to application development using SAPUI5, which of the following are the correct guidelines?

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

In relation to the sap.ui.core.routing.Router class in SAPUI5, the visibility of which of the following methods is protected?

a. navTo

b. register

c. parse

d. stop

In relation to the sap.ui.core.routing.Router class, what is the type of the arguments parameter of the routePatternMatched event?

a. sap.ui.base.Event

b. String

c. Boolean

d. Object

In relation to SAP Fiori elements, which of the following statements are correct about non-draft apps?

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.

In SAPUI5, which of the following methods are used for accessing data from an OData model and returning the entity object or value?

a. getData()

b. getProperty()

c. getObject()

d. getSource()

Which of the following is the correct signature of sap.m.routing.Router, which is used for instantiating a SAPUI5 mobile router?

a. new sap.m.routing.Router(oRoutes?, oConfig?, titleChanged?, oTargetsConfig?)

b. new sap.m.routing.Router(oRoutes?, oConfig?, oOwner?, async?, oTargetsConfig?)

c. new sap.m.routing.Router(oRoutes?, oConfig?, async?, titleChanged?, oTargetsConfig?)

After SAPUI5 version 1.38, the sap_bluecrystal theme was deprecated. It has been replaced with which of the following options for SAPUI5 applications?

a. sap_belize

b. sap_hcb

c. sap_platinum

d. sap_ux

In SAPUI5, which of the following files is used for holding the setup of an app?

a. App.controller.js

b. manifest.json

c. App.view.xml

d. Component.js

In relation to SAPUI5 controls, which of the following is the correct syntax of the HTML attribute that is used for adding custom data objects to a control or an element in HTML views?

a. data-custom-data= (my-key:"someValue)

b. data-custom-data.my-key="someValue"

c. data-custom-data:my-key="someValue"

d. data-custom-data.my-key: "someValue"

In SAPUI5, which of the following options is used for implementing the not found pages?

a. sap.m.MessagePage

b. sap.m.Label

c. sap.m.MessageStrip

d. sap.m.ProgressIndicator

Which of the following is NOT a property of the sap.viz.ui5.controls.VizFrame class?

a. vizScales

b. legendVisible

c. selectData

d. vizProperties

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. Only statement ii) is correct.

c. Both statements i) and ii) are correct.

d. Neither statement i) nor ii) is correct.

In SAPUI5, which of the following controls is used for managing a visualization's initialization, layout, feeding, customization and interactions?

a. sap.viz.ui5.controls.Popover

b. sap.viz.ui5.controls.VizFrame

c. sap.viz.ui5.controls.VizTooltip

d. None of the above.

While creating XML views for a SAPUI5 application, which of the following conventions are followed?

a. Views' names are in small letters.

b. All views are stored in the view folder.

c. Names of XML views always end with *.v.xml.

d. sap.m is the default namespace.

Can we replace a user-created standard UI app text with SAP Fiori elements?

a. Yes

b. No

In SAPUI5, we can group adjacent controls within the tab chain. Which of the following keys is used for skipping all the controls of a group and moving the focus to the first control in the tab chain of the next group?

a. F2

b. F4

c. F6

d. F8

Suppose that you added a button event to your view. Which of the following functions is required to be added to the controller for handling this event?

a. doIt : oEvent.function{ alert(oEvent.getSource().getId() + " Example!"); }

b. doIt : function.oEvent { alert(getSource(oEvent).getId() + " Example!"); }

c. doIt : function(oEvent) { alert(oEvent.getSource().getId() + " Example!"); }

d. doIt : oEvent { alert(getSource(oEvent).getId() + " Example!"); }

In SAPUI5, which of the following commands can be used for creating an OData model instance?

a. var oExampleModel = new sap.ui.model.odata.v2.ODataModel("http://services.odata.org/ Northwind/Northwind.svc/");

b. var oExampleModel = new sap.ui.model.odata.v2.ODataModel({serviceUrl: "http:// services.odata.org/Northwind/Northwind.svc"});

c. var oExampleModel = new sap.ui.model.odata.v2.ODataModel({new serviceUrl= "http:// services.odata.org/Northwind/Northwind.svc"});

d. Either options a or b

In relation to the processing of runtime objects during chart rendering, which of the following variables is a selected representation object for step S_i?

a. R_i

b. RO_i_s

c. SR_i_s

d. S_i_s

Which of the following CSS classes are provided by SAPUI5 for content padding?

i) sapUiNoContentPadding

ii) sapUiResponsiveContentPadding

iii) sapUiContentPadding

a. Only options i) and iii).

b. Only option i).

c. Only options ii) and iii).

d. All options i), ii) and iii).

While preparing OData services by using SAP Fiori elements, which of the following options must be supported if the data is represented in a list page?

a. $count

b. $filter

c. $select

d. $expand

In relation to creating an OData V2 model instance, which of the following statements are correct about service metadata?

a. The metadata can be shared among multiple OData models using the same service.

b. The service metadata is cached once for all service URLs.

c. The $metadata request can be triggered by first model instance only.

d. In the v2.ODataModel, the service metadata can be loaded both synchronously and asynchronously.

Which of the following is the default binding mode used by the OData V4 model?

a. One-way

b. Two-way

c. One-time

d. None of the above.

In relation to SAPUI5 controls, which of the following statements is correct about control elements?

a. The sap.ui.core.Element class is the base class of sap.ui.core.Control.

b. Elements can be used standalone.

c. Elements have their own renderer.

d. None of the above.

In SAPUI5, which of the following application attributes are contained in the sap.app namespace?

i) applicationVersion

ii) i18n

iii) type

iv) title

a. Only options i) and iv).

b. Only options i), ii) and iv).

c. Only options i), ii) and iii).

d. All options i), ii), iii) and iv).

In relation to OData CRUD (create, read, update, delete) operations in SAPUI5, which of the following parameters is/are required?

a. triggeredByInteraction

b. sPath

c. mParameters

d. sap-system

In relation to SAPUI5 OData V4 Model adapter, which of the following literals in request URI are NOT converted?

a. Edm.Decimal

b. Edm.Double

c. Edm.Binary

d. Edm.Time

In relation to SAPUI5, which of the following oData features are supported by the mock server?

a. Multiple draft service in an application.

b. Annotations.

c. CRUD calls.

d. Select System Query Option ($select).

In relation to OpenUI5 version, which of the following code snippets is used for accessing the core version (OpenUI5 version) at runtime?

a. var oPromise = sap.ui.getVersionInfo({ async: fasle });

oPromise.then( function(oVersionInfo) {

var oVersion = jQuery.sap.Version(oVersionInfo.version);

});

b. var oPromise = sap.ui.getVersionInfo({ async: true });

oPromise.then( function(oVersionInfo) {

var oVersion = oConfig.getVersion();

});

c. var oConfig = sap.ui.getCore().getConfiguration();

var oVersion = oConfig.getVersion();

d. None of these

In relation to SAPUI5 controls, what is the margin provided by the sapUiResponsiveMargin control, all around a control, for tablets and small desktops (between 600 px and 1023 px)?

a. 16 px

b. 32 px

c. 64 px

d. 128 px

While configuring charts in SAPUI5, which of the following annotations is used for specifying the dimensions and measures that make up the chart and the chart type?

a. UI.Chart.MeasureAttributes.Measure

b. UI.Chart.MeasureAttributes.Role

c. UI.Chart

d. UI.Identification

In relation to SAP Fiori elements, which of the following types of tables can be rendered using Smart tables?

i) Analytical table

ii) Grid table

iii) Responsive table

iv) Tree table

a. Only options i) and iii).

b. Only options ii), iii) and iv).

c. Only options i), ii) and iii).

d. All options i), ii), iii) and iv).

Which of the following statements is/are correct about using SAP UI in business?

a. It increases productivity and user adaptation.

b. It has high cost of training.

c. It results in high performance of SAP systems.

d. It results in higher number of manual errors.

In which of the following v2.ODataModel batch processing methods in SAPUI5, the requests are stored and can be submitted manually using the submitChanges() call by the application?

a. Default

b. Deferred

c. Both a and b.

d. Neither a nor b.

Which of the following statements is/are incorrect about SAPUI5?

a. It provides full translation support.

b. Applications that are build using SAPUI5 are responsive over desktop but not over smartphones.

c. It provides keyboard interaction support and accessibility features.

d. Both statements a and c are incorrect.

In relation to SAPUI5 versioning, which of the following digits of the version number 1.44.7 is used for specifying the minor version or the version number?

a. 1

b. 44

c. 7

In relation to SAPUI5 field groups, which of the following statements is/are correct?

i) All sap.ui.core.Control instances have the fieldGroupIds property.

ii) The fieldGroupIds property can be set as an array of strings.

a. Only statement i) is correct.

b. Only statement ii) is correct.

c. Both statements i) and ii) are correct.

d. Neither statement i) nor ii) is correct.

In SAPUI5, the data() method, which is used for attaching a data object to controls, is contained in which of the following namespaces?

a. sap.ui.core.Element

b. sap.ui.core.control

c. sap.ui.core.ComponenetContainer

d. sap.ui.core.mvc

While using SAP Web IDE, which of the following keyboard shortcuts is used for creating a project within the Workspace folder?

a. Ctrl + Shift + F

b. Ctrl + Alt + Shift + F

c. Ctrl + Alt + Shift + N

d. Alt + Shift + N

In relation to progress indicator facet, which of the following properties are mandatory?

a. Footer

b. Value

c. Unit of Measure

d. Title

In relation to SAPUI5 smart micro chart facet, which of the following UI.Chart annotation properties is used for the subtitle?

a. UI.Chart Description

b. UI.Chart Title

c. Neither option a nor b.

In relation to SAPUI5 field groups, which of the following events is raised on the control that loses focus, leaving at least one field group?

a. validateFieldGroup

b. fieldGroupId

c. aAllControlsWithFieldGroupId

d. validateValue

SAP UI5 Fiverr Skills Test 2020 part 2

