Tuesday, 17 October 2017

SAPUI5 Interview Questions and Answers

If you’re looking for SAPUI5 Interview Questions, you are at right place. There are lot of opportunities from many reputed companies in the world. According to research SAPUI5 has increasing market share. So, you still have opportunity to move ahead in your career in SAP. Learn IT Training offers SAPUI5 training interview questions.
1.What is SAPUI5?
Just like any other HTML5 client side rendering library SAPUI5 is alone. SAPUI5 strictly follows RIA (Rich Internet Application) standards. It is based on Javascript which provides a lightweight programming model for desktop as well as mobile applications.
2.Why SAPUI5 instead of HTML5?
As HTML5 is the new age front technology across all aspects of internet applications SAP was kind of trailing in this age because SAP was using 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.
3.What is the main difference between HTML5 and SAPUI5?
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.
4.What is MVC?
MVC stands for model view controller; it is 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.
5.Which control libraries are used for UI5 application development?
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. (Want to learn Fiori by experts register for SAP FIORI training by Learn IT Training)
6.Explain Navigation Concept in UI5?
SAPUI5 uses two mechanisms for navigation in applications they are EventBus and Routing where latter supersedes since SAPUI5 1.16. sap.ui.core.routing is the class used for the routing.We define routing in components metadata in “routing” key.
7.How navigation works in SAPUI5?
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.
8.What is component?
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 components:
  •  Faceless components: Mainly without UIs, Used for business logic and helper methods e.g. Formatters.
  •  UI Component: typically component. js file which is made by extending sap.ui.core.UI Component class.
9.What is the syntax to define a control in UI5?
var obj_name = new sap.m.ControlName (“id of control”,{ properties, events, aggregations });
10.What is responsive web design?
A web application which gives the same look and feel to the user in desktops and mobile devices.
11.When and how to use formatter in SAPUI5?
We need to use formatter when we need to perform some changes on the back end property data on the front end.
12.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;
}}});
13.What all types of views are available in SAPUI5?
Following are the predefined views available in SAPUI5:
  •       JSON view
  •          XML view
  •         Javascript view (JS view)
  •          HTML view
14.What all design patterns are recommended/available in SAPUI5?
        SAP recommends following application design patterns keeping in mind design consistency of the   applications:
       Master – Detail
       Master – Master- Detail
       Full Screen
       Full Screen- Full Screen- Master Detail (Multi Flow)
15.What are the Lifecycle/hook methods of SAPUI5 views controller?
There 4 four Lifecycle methods available in every SAPUI5 views controller. These are onInit(), onExit(), onAfterRendering(), onBeforeRendering(). onInit is called when a view is instantiated and its controls (if available) have already been created; onExit is called when the view is destroyed; used to free resources and finalize activities; onAfterRendering when the view has been rendered and, therefore, its HTML is part of the document; onBeforeRendering is called before the controller view is re-rendered and not before the first rendering.
16.Can we add own controls to UI5?
Yes, we can add custom controls by creating definition of it from scratch.
To define a custom control we use sap.ui.control.extend and to enhance a standard SAP UI5 control we use sap.ui.commons.controlname.extend.
17.What is the main difference between OData Model and JSON Model?
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.
18.How many types of data model are available in SAPUI5?
SAPUI5 has following predefined four data models available:
  •         JSON Model – Client-side model, supports two way binding.
  •         XML Model – Client-side model and intended for small data sets this is very rarely used model.
  •         Resource Model – This is also client side model used to maintain resource bundles, specially texts.
  •      ODATA Model – This is most important model of the four provided.
19.What is the main difference between OData Model and JSON Model?
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.
20.What is SAPUI5 Bootstrapping?
SAPUI5 Bootstrapping means loading and initializing SAPUI5 in any HTML page. Themes and Libraries are defined in this.Learn IT Training is one of the best global online training Portal for the students. We are providing SAP Training based on specific needs of the learners especially we will give innovative one to one classes which has great opportunities in the present IT market. Learners can grasp the technical-subject and practical knowledge from highly experienced and certified professionals.
Register Here for free live demo
For more details:visit:www.learnittraining.com
Email: contact@learnittraining.com
Phone: INDIA: +91 9912989639, USA : +12108585008


No comments:

Post a Comment

SAPUI5 Online Classes | Simplify UI development With SAPUI5

Overview of SAPUI5 SAPUI5 is a recent offering from SAP that powers SAP Fiori applications (Learn from SAP Fiori training by expe...