Searching for a SAP UI5 job? If you are an expert in SAP User Interface concepts then this is for you. Do not worry, we’ve a right answer for your job interview preparation. If you are preparing for SAP UI5 job interview, we will help you in clearing the interview through Wisdomjobs interview questions and answers page. SAP UI5 is a kind of user interface that makes use of libraries to create applications. It is the front end development tool. Almost all SAP related applications are based on it. SAP web apps are build using SAPUI5. It provides robust environment. It makes use of CSS, HTML5 and JavaScript. Below are the SAP UI5 interview questions and answers which makes you comfortable to face the interviews:
Question 1. Which Control Libraries Are Used For Ui5 Application Development?
Answer :
sap.ui.commons, sap.ui.table and sap.suite.ui libraries for desktop application development and sap.m library along with sap.ui.layout for Fiori application development.
Question 2. How Navigation Works In Sapui5?
Answer :
Sap uses two mechanisms, routing and EventBus. Routing Is specifically used for bookmarking the URL. We define routing in component.js within the metadata. It also defines the navigation path and hash changer which is used at the runtime to change the url of the particular screen.
Question 3. What Is Component?
Answer :
It is the first point of the application, it serves as an index, which encapsulates all the application details, like view names, routing details, main view, applications type(Full Screen or SplitApp), application service configuration etc.
There are 2 types of compponents:
Question 4. What Is Responsive Web Design?
Answer :
A web application which gives same look and feel to the user in desktops and mobile devices.
Question 5. What Is The Syntax To Define A Control In Ui5?
Answer :
var obj_name = new sap.m.ControlName(“id of control”,{ properties, events, aggregations });
Question 6. What Is Formatter In Sapui5 And How To Use It?
Answer :
We need to use formatter when we need to perform some changes on the back end property data on the front end.
we can use formatter while data binding to a property like as follows:
oControl = new sap.ui.commons.TextField({
value : {path : “/path”, formatter : function(oEvent){
return “Value:”+oEvent;
}}});
Question 7. How Many Types Of Views Are Available In Sapui5?
Answer :
There are 4 types of views available:
Question 8. How Many Types Of Data Model Are Available In Sapui5?
Answer :
SAPUI5 has following predefined four data models available:
Question 9. What All Events/life Cycle Are Available In Sapui5’s Views Controller?
Answer :
There are 4 lifecycle available in SAPUI5’s views controller, they are:
Question 10. What Is The Main Difference Between Odata Model And Json Model?
Answer :
The JSON model is a client-side model and, therefore, intended for small datasets, which are completely available on the client.The OData model is a server-side model: the dataset is only available on the server and the client only knows the currently visible rows and fields.
Question 11. What Is Sapui5 Bootstrapping?
Answer :
SAPUI5 Bootstrapping means loading and initializing SAPUI5 in any HTML page. Themes and Libraries are defined in this.
Question 12. In How Many Ways You Can Bind Data To Your Controls?
Answer :
We can bind data to any controls using three methods, Property, Element and Aggregation binding.
Question 13. What Are Sapui5 Fragments?
Answer :
Fragments are very light weight UI controls. Fragments are not completely like views but they act like a view. Fragments are defined similar like views and are names like “Fragment.fragment.xml“.
Question 14. Does Fragment Have Its Own Controller?
Answer :
Fragments are created without controllers, they don’t have their own controllers they share controller of the view which is invoking it.
Question 15. What Is Metadata Annotations?
Answer :
The service metadata document describes the structure of all resources in the service. This structural metadata makes it easy to understand a service. We can explore service metadata at the address “$metadata” relative to the service root.
Question 16. What Are Common Metadata Annotations?
Answer :
Following are some of the service metadata annotations which are common and a front end developer must know these in order to understand the service and integrate it:
Question 17. What Is Sap Fiori?
Answer :
SAPUI5 is client side HTML5 rendering framework or library and SAP FIORI is collection of and released as waves of applications which are completely based on SAPUI5 framework. It means we can create applications using SAPUI5 framework and SAP FIORI is final product i.e. application. In SAPUI5 we have to code from scratch, but in Fiori Application the custom application is already built and enhancements can be done on those custom apps.
Question 18. How Many Types Of Fiori Applications Are There?
Answer :
There are 3 types of fiori applications:
Question 19. What Is The Difference Between Sap Fiori And Sapui5?
Answer :
SAP FIORI is collection of standard applications based on SAPUI5 library provided by SAP. SAP FIORI applications share some standard design guidelines and way in which these application are developed.
Question 20. What Is Fiori Launchpad And Explain It?
Answer :
It is a home page for all the FIORI applications provided to. There are more than five hundred custom app provided by SAP. This shows tile based UI where every UI redirects to assigned FIORI application. This Launchpad is fully customizable according to your needs like theming and all.
Answer :
SAPUI5 library provides a special API “sap.ui.Device“which can be used to for device and its feature detection. This API provides flags like “chrome”, “firefox”, “mozilla”, “edge” etc. in “sap.ui.Device.browser” API which returns boolean values.
Question 22. What Are Fiori Design Principles?
Answer :
There are 5 design principles we need to keep in mind while designing SAP Fiori applications.
Question 23. Which Open Standards And Tools Are The Foundation Of Sapui5 Technology?
Answer :
Question 24. What Sapui5 Control Metadata Is Used To Configure The Ui Elements At Runtime?
Answer :
Question 25. What Are View Types Offered By Sapui5?
Answer :
Question 26. What Is The Purpose Of A Controller?
Answer :
Question 27. Name Some Standard Controller Hooks In Sapui5?
Answer :
Question 28. What Information Can Be Stored In The Manifest.json File Of Your App?
Answer :
Question 29. Which Of The Following Namespaces Can Be Used In The Manifest.json File?
Answer :
Answer :
Manifest.json
Question 31. For What Stands The Abbreviation Json?
Answer :
Java Script Object Notation
Answer :
Two-way
Question 33. How Would You Add An Icon From The Sapui5 Icon Font To A Button In An Xml View?
Answer :
<Button text="Save Draft" icon="sap-icon://save" />
Answer :
'Tiny', 'Small', 'Medium' or 'Large'
Question 35. What Is Aggregation Binding Used For?
Answer :
To bind a set of data entities to a list-like structure
Question 36. What Do You Need If You Want To Bind A List To Data In Your Jsonmodel?
Answer :
Question 37. How Can You Access Validation Errors In Sapui5?
Answer :
Question 38. Name Some Types In Sapui5?
Answer :
Answer :
group: true
Answer :
Question 41. How Many Filters Can You Apply On A List Binding?
Answer :
As many as needed
Question 42. What Is The Best Practice For Showing Or Hiding An Sapui5 Control At Runtime?
Answer :
Set the “visible” property of the control to “true” or “false”.
Question 43. When Do You Use Element Binding?
Answer :
When you want bindings of child controls to resolve their paths relative to the binding of the parent
Question 44. What Is The Difference Between Aggregation Binding And Element Binding?
Answer :
Aggregation binding is used for list-like structures, whereas element binding can be used to set the binding context of any parent control.
Question 45. How Is Paging Accomplished In Odata Query?
Answer :
Paging can be accomplished by using $skip in combination with $top. The parameters’ values describe the interval of the data that is requested.
Question 46. Name Some Odata Query Parameters?
Answer :
Question 47. What Are Semantic Colors In Sapui5?
Answer :
They are representations of states such as success, warning, and error.
Question 48. Name Some Semantic States In Sapui5?
Answer :
Question 49. How Can You Compose Filters In Sapui5?
Answer :
Question 50. Where Are Filters Applied In Sapui5?
Answer :
To an aggregation binding
Question 51. Which Filter Operation Can You Use To Filter Items With A Numeric Value Lower Than X?
Answer :
sap.ui.model.FilterOperator.LT
Question 52. What Can You Do To Enable Your Sapui5 Application To Adapt To The User’s Device?
Answer :
Question 53. What Can A “device Model” Be Used For?
Answer :
Question 54. What Information Is Provided By The Sap.ui.device Api?
Answer :
Question 55. Which Control Adapts Its Appearance On Touch Devices?
Answer :
The PullToRefresh control: It is represented as a simple button on non-touch devices, but the user needs to pull the page content down on touch devices to refresh it.
Question 56. Why Is It Useful To Have Fragments In Your App?
Answer :
To create reusable UI parts without a designated controller or other behavior code
Question 57. What Happens In The Dom Tree When Nesting Xml Views?
Answer :
Each XML view creates its own DOM element regardless of the nesting level.
Question 58. What Can You Do To Structure Your Application Code Better?
Answer :
Question 59. What Are Fragments Primarily Used For?
Answer :
To make parts of your view reusable
Question 60. What Are Dialogs In Sapui5?
Answer :
Question 61. What Happens When You Instantiate A Dialog From A Single-rooted Fragment?
Answer :
Answer :
Bypassed
Question 63. How Many Targets Can You Configure Within A Route In The Manifest.json File?
Answer :
As many as you like
Answer :
on metadataLoaded - createEntry - submit - on success
Answer :
In the "models" section of the manifest.json file
Question 66. How Are Unit Tests For Your App Started In Sap Web Ide?
Answer :
Question 67. How Do You Register A Unit Test In Qunit?
Answer :
Call QUnit.test() in your test code with a speaking test description and a callback that contains at least one assertion.
Question 68. Which Testing Features Are Provided By The Sap Fiori Worklist Application Template?
Answer :
Question 69. Which Options Are Available In Sapui5 If You Want To Create A Custom Control?
Answer :
Question 70. Which Of The Following Are Part Of The Control Metadata?
Answer :
Question 71. What Do You Have To Consider When Defining Control Metadata?
Answer :
Question 72. How Do You Enable The Debugging Option For Sap Netweaver Odata Services?
Answer :
Use the URL parameter sap-ds-debug=true.
Answer :
The SAPUI5 version must be available in your target deployment system.
Answer :
Question 75. What Is The Correct Syntax For Defining Namespaces In Xml Views?
Answer :
xmlns:m="sap.m"
Question 76. Why Is Not All Javascript Code Put In A <script> Tag Directly On The Index.html Page?
Answer :
Question 77. What Is A Component Within Sapui5?
Answer :
An independent and reusable part that can be used to structure SAPUI5 applications
Question 78. What Information Can Be Stored Inside The Manifest.json File Of Your App?
Answer :
Question 79. What Is The Benefit Of Data Binding Within Sapui5?
Answer :
SAPUI5 uses data binding to bind two data sources or information sources together to keep them in sync. This means: All changes in one source are also reflected in the other one.
Question 80. How Can You Add A Margin All Around A Control?
Answer :
class="sapUiSmallMargin"
Question 81. Which Base Class Are You Recommended To Extend When Implementing A Custom Type?
Answer :
sap.ui.model.SimpleType
Question 82. How Can You Distinguish Absolute And Relative Binding Paths?
Answer :
Absolute binding paths always start with a "/".
Question 83. How To Sort And Group Your Sap.m.list When Added To The View.xml?
Answer :
items="{
path : '/ProductSet',
sorter : {
path : 'Category',
group : true
}
}"
Question 84. How Can You Access The List Item Control In An Event Handler For The Press Event?
Answer :
Call the getSource() method at the event object parameter.
Question 85. What Is The Role Of The Application Template In The Development Process?
Answer :
To generate an initial set of files that serve as the starting point for the development of a productive application
Question 86. How Can Sap.m.table Behave On Smaller Devices Such As Phones And Tablets?
Answer :
Question 87. Which Filter Operation Is Appropriate For A Textual Search In Sapui5?
Answer :
sap.ui.model.FilterOperator.Contains
Answer :
Question 89. Which Options For Code Reuse Are Available In Sapui5?
Answer :
Answer :
When you realize that you need to reuse this code in several other places and views in your app.
Question 91. What Do You Have To Do To Grant A Dialog Access To The Surrounding View’s Models?
Answer :
Add the dialog to an aggregation of the view, for example the "dependent" aggregation.
Question 92. What Is The Purpose Of The "static Area" In The Dom?
Answer :
To display dialogs and popup controls over the application UI
Question 93. Which Benefits Does The Hash-based Navigation In Sapui5 Offer?
Answer :
Question 94. What Do You Have To Do To Be Notified When The Hash Has Changed To A Certain Pattern?
Answer :
Register to the patternMatched event of the route.
Question 95. What Is Sinon.js?
Answer :
A standalone unit testing library for JavaScript that provides spies, stubs, and mocks
Question 96. Where Does Opa Fit In The Testing Pyramid?
Answer :
In component/integration tests
Question 97. Why Is Automated Testing Beneficial For App Development?
Answer :
Question 98. What Is The Main Difference Between Html5 And Sap Ui5?
Answer :
HTML5 is a markup language and it doesn’t have programming capabilities but SAP UI5 is a framework which is based on MVC approach to build web applications. HTML5 is mainly for the purpose of creating a simple webpage without formatting and logic but UI5 provides standard style and components to build rich UIs.
Answer :
MVC stands for model view controller; it’s an architecture to design UI based applications to achieve maximum reusability and extensibility of the application for future changes. Model is the representation of data in form of object, View defines the UI and Controller contains all the logic to drive as well connects view with model.
Question 100. Why Sapui5 Instead Of Html5?
Answer :
As HTML5 world is the new age front technology across all aspect of internet applications SAP was kind of trailing in this age because SAP was using age old WebDynpro for building SAP Web Applications which lacks in rich and user-friendly UI. SAP identified this and came up with its own custom HTML5 library i.e. SAPUI5.
SAP UI5 Related Tutorials |
|
---|---|
SAP CRM Tutorial | SAP ABAP Tutorial |
SAP PI Tutorial | SAP HANA Tutorial |
SAP Crystal Reports Tutorial | Javascript Advanced Tutorial |
SAP Fiori Tutorial |
SAP UI5 Related Practice Tests |
|
---|---|
SAP CRM Practice Tests | SAP ABAP Practice Tests |
SAP PI Practice Tests | SAP XI Practice Tests |
SAP Fiori Practice Tests |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.