What are the components of a Cordova plug-in?
A. A JavaScript wrapper only ; Native classes are already provided by Worklight.
B. A native class implementing the required functionality and a JavaScript wrapper for it: The wrapper's functions can be called from JavaScript.
C. A native class implementing the required functionality, a JavaScript wrapper for it and a declaration in the application-descriptor.xml file
D. A native class implementing the required functionality: It can be called directly from application's JavaScript
正解:B
質問 2:
HTTP adapters can be used to__________. (Choose three)
A. Work with JMS services
B. Issue GET and POST requests
C. Work with RESTful services
D. Work with SOAP services
正解:B,C,D
質問 3:
A developer writes a Worklight push notification application and creates the following: 1.An event source 2.An adapter to retrieve the notification from the event source 3.A function to notify the user device 4.A function to handle the arriving notification Which two actions still need to be done? (Choose two.)
A. Create a function to verify the user device.
B. Register the event source for the device on the console.
C. Deploy the event source to the server.
D. Deploy the adapter to the server.
E. Create a function to subscribe to the event source.
正解:D,E
質問 4:
Can an HTTP adapter be used with a non standard HTTP ports?
A. You can use any port for HTTP but only to port 443 for HTTPS
B. You must use port 80 for HTTP and port 443 for HTTPS
C. You must use port 80 for HTTP but can use any port for HTTPS
D. It is possible to use any port for both HTTP and HTTPS
正解:D
質問 5:
Where in the Worklight project structure do Worklight.properties belong?
A. tomcat\worklight
B. server\lib
C. resources\properties
D. server\conf
正解:D
質問 6:
A Worklight mobile application needs to aggregate news about stock symbols in a portfolio using Worklight adapters and server-side JavaScript.
Given the following high-level schema for aggregation,
1.The application calls getPortfolioNews from the SQLPortfolioAdapter.
2.The SQLPortfolioAdapter retrieves a list of stock symbols in the portfolio from the adapter's SQL datasource by calling getStockSymbolList.
a.For each of the stock symbols in the portfolio, The SQLPortfolioAdapter calls getStockNews from HTTPStockNewsAdapter with the stock symbol as parameter.
b.HTTPStockNewsAdapter retrieves news from the stock news HTTP API and returns it to SQLPortfolioAdapter.
3.SQLPortfolioAdapter returns portfolio news to the application.
Which procedure(s) must be declared in the SQLPortfolioAdapter.xml file?
A. getPortfolioNews
B. getPortfolioNews and getStockSymbolList
C. getPortfolioNews and getStockNews
D. getPortfolioNews, getStockSymbolList and getStockNews
正解:A
質問 7:
Is it possible to detect current device language and locale?
A. It is only possible to detect the device language by using WL.App.getDeviceLanguage
B. No, it is not possible
C. Yes, using WL.App.getDeviceLocale and WL.App.getDeviceLanguage APIs
D. Yes, using WL.App.getDeviceLanguageSettings API
正解:C
質問 8:
A developer is writing a Worklight mobile application to run on Android and iOS platforms. The developer is using the Apache Cordova device.platform API in the code to identify the device's platform type. Which additional step, if any, should the developer perform before building and deploying the application to successfully use the Apache Cordova API?
A. Add a <script> element to the application's main HTML file to include the cordova.js JavaScript file that defines the API functions.
B. No additional step is required since the Cordova framework is automatically added into Worklight iOS and Android projects.
C. Copy the cordova.jar library file to the project's server folder to make it available to the application at run-time.
D. Set the <use-cordova> element to true in the application's descriptor file to indicate the use of Cordova.
正解:B
1497 お客様のコメント





Kami -
C2180-279しっかり学習。教科書と過去問題 を一冊に集約。