Given the following code in an application's initOptions.js file: What is the expected result when starting the application on a device?
A. The onSuccess function will be invoked every time the application is loaded.
B. The WL.Client.init method will not be executed because WLJSX.bind is not supported in Worklight.
C. The onConnectionFailure function will be invoked, because the connectOnStartup property is set to false.
D. The server related function would not be available until the developer calls the WL.Client.reloadApp function to invoke the serverconnection.
An HTTP adapter is deployed on a Worklight server. Which steps need to be taken by the developer to receive data from the adapter in an application?
A. Create an invocationData object that contains the adapter and procedure names and send it through the WL.Server.invokeProcedureAPI with the onSuccess and onFailure callbacks.
B. Create an invocationData object that contains the adapter and procedure names and send it through the WL.Client.invokeProcedureAPI with the onSuccess and onTimeout callbacks.
C. Create an invocationData object that contains the adapter and procedure names and send it through the WL.Client.invokeProcedureAPI with the onSuccess and onFailure callbacks.
D. Create an invocationData object that contains the backend URL and procedure name and send it through theWL.Client.invokeProcedure API with the onSuccess and onTimeout callbacks.
An administrator is installing Worklight Server on a stand-alone machine in a QA environment and has already performed the following steps: 1.Created and initialized the Worklight databases 2.Defined and configured the required application server resources Which additional step must the administrator perform to use the Worklight Console to verify successful installation?
A. Deploy the Worklight Console adapter file.
B. Install the Worklight sample customization WAR file.
C. Set the worklight.home JVM custom property to the location of the Worklight Console folder.
D. Copy the worklight-jee-library.jar file to the application server's Worklight library folder.
A developer is invoking a SQL adapter procedure from a mobile application. The procedure is named getModelByYear and returns data from a table named Auto as follows:
Which option represents the returned data when the procedure is invoked with the parameter 2005?
A. Option A
B. Option B
C. Option C
D. Option D
Assuming it is not overridden manually, in which case will the isSuccessful property of the procedure invocation result be true?
A. Worklight server is not accessible
B. Back end that adapter tries to connect to is not accessible
C. Internet is not available on a mobile device
D. Specified procedure does not exist in adapter
What information cannot be retrieved using WL.Device.getNetworkInfo API?
A. Device's current IP address
B. Telephony type currently in use (GSM/UMTS etc)
C. Whether device is currently or roaming
D. Device's phone number
Is it possible to detect current device language and locale?
A. Yes, using WL.App.getDeviceLocale and WL.App.getDeviceLanguage APIs
B. Yes, using WL.App.getDeviceLanguageSettings API
C. It is only possible to detect the device language by using WL.App.getDeviceLanguage
D. No, it is not possible
What format of data can the HTTP adapter retrieve and automatically parse? (Choose three)
A. Swift
B. XML
C. JSON
D. Plain text
A user has several devices. He's using the application from all of them. Is it possible to send a push notification to a specific device?
A. No, once Worklight server submits push notification it will be delivered to all of user's devices
B. Yes, userSubscription contains deviceSubscription objects for each device user ever registered for push notifications from. It can be used to send notification to a specific device.
C. Yes, once Worklight server submits push notification it will be delivered to the last user of the device
D. No, this is considered a security breach. If the user has more than one device notification will not be sent at all
When should Cordova plug-ins be used?
A. When the developer wants to implement the application in the native code because he is not familiar with JavaScript
B. When the developer wants the application to look more like a native application
C. When the developer wants to gain access to OS APIs which are not accessible within the web container
D. When the developer needs to retrieve data from a remote server