SAP UI5 MCQs

SAP UI5 MCQs

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.

1: 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.

2: In relation to SAPUI5 browser support, which of the following versions of Mozilla Firefox is supported by sap.ui.vk?

A.   Version 15 or higher.

B.   Version 33 or higher.

C.   Version 39 or higher.

D.   Version 40 or higher.

3: Under which of the following circumstances, the existing read-only annotated OData services can be reused for the list report and object page templates?

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.

4: 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

5: 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

6: 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

7: Which of the following guidelines should be followed for SAPUI5 application theming?

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.

8:

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.

9: 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

10: In relation to SAP API evolution, which of the following types of changes are considered compatible with an existing API and can be done anytime?

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.

11:

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'>


12: In relation to module loading in SAPUI5, which of the following syntax are used by all the files?

A.   sap.ui.define

B.   sap.ui.require

C.   sap.ui.table

D.   sap.ui.vk

13: 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(

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.

14: 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).

15: 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

16: 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

17: 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.

18: 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.

19: Which file is used for containing all the project settings of SAP Web IDE and is created in the root folder of a user's project?

A.   sap.ui.vbm

B.   neo-app.json

C.   manifest.json

D.   sap.ui.commons

20: 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

21: 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

22:

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");


23: While installing the Node.js-based development environment, which of the following commands is used for globally installing the Grunt command line interface?

A.   npm install grunt-cli -g

B.   npm install grunt-cli -globally

C.   npm install -g grunt-cli

D.   npm install grunt-g-cli

24:

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


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

A.   vizScales

B.   legendVisible

C.   selectData

D.   vizProperties

26: 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

27: Suppose that you created an entity Employees with entity data EmployeeId that has a value, 5021, and EmployeeName that has a value, Mathew. Which of the following is the correct syntax for deleting this entity?

A.   oModel.remove(

B.   oModel.Delete(

C.   oModel.remove(

D.   oModel.remove(

28: 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() +

B.   doIt : function.oEvent { alert(getSource(oEvent).getId() +

C.   doIt : function(oEvent) { alert(oEvent.getSource().getId() +

D.   doIt : oEvent { alert(getSource(oEvent).getId() +

29: 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

30: Which of the following are the correct features of SAP Fiori elements?

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.

31: In relation to SAPUI5 CRUD operations, which of the following ETags are used by OData for optimistic concurrency control?

A.   DNS

B.   IMAP

C.   NTP

D.   HTTP

32: 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

33:

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.

34: In SAPUI5, which of the following subsections are used for defining the routing and navigation structure of an application?

A.   config

B.   routes

C.   sample

D.   targets

E.   coding

35: In relation to SAP Fiori message handling, which of the following options displays only transient messages in a dialog box after an action has been executed?

A.   General

B.   Object page

C.   List report

D.   None of the above.

36: 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.

37: 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.

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

A.   Yes

B.   No

39: In SAPUI5, Which controlis 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.

40: In relation to data binding in SAPUI5, which of the following types of models is a server-side model used for defining the business data within a model?

A.   JSON

B.   XML

C.   SQL

D.   OData

A.   jQuery.sap.initMobile()

B.   jQuery.sap.getter()

C.   jQuery.sap.require()

D.   jQuery.sap.resources()

42: In relation to the sap.suite.ui.commons.networkgraph.Group class, which of the following options is the default value of the collapsed property?

A.   True

B.   False

C.   1

D.   None of the above.

43:

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.

44:

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});





45: 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

46: In relation to SAP Fiori elements, which of the following statements is/are incorrect about transient messages?

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.

47:

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).

48:

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 >


49: 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

50:

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