All questions Flashcards
Which authenticators are supported out of the box? (Choose three)
Header authentication
Persistent cookie authentication
Form-based authentication
Kerberos authentication
Header authentication
Persistent cookie authentication
Form-based authentication
Once a Shell developer completes developing her Shell components, what is the proper way to distribute it to inner application developers?
A. Zipping the Worklight project and emailing it to inner application developers
B. Committing the Worklight project to a Source Control Management system and telling inner application developers to use source code from it
C. The Shell developer should not distribute the Shell component to inner application developers. They should send their inner applications to her in order to build them
D. Sending the .wlshell Shell bundle file to inner application developers
Sending the .wlshell Shell bundle file to inner application developers
When should the Shell development approach be considered?
A. There are only two developers
B. The company wants to create a number of mobile applications sharing a common native code base and authentication mechanism
C. The company wants to create a native iOS and Android application, but its resources are limited
D. The company has distributed development teams situated on different continents that must share the source code
The company wants to create a number of mobile applications sharing a common
native code base and authentication mechanism
What is messages.js file used for?
This file contains the texts of application pop-up prompts
This file contains the texts of error messages that application may show
This is an internal framework file. It is used to store system messages for debugging
purposes
This file contains strings that can be used for application elements
This file contains strings that can be used for application elements
Which OS uses an HTML generated tab-bar?
Android
Which of the following is not a client side push API?
WL.Client.Push.isPushSupported()
WL.Client.Push.isSubscribed()
WL.Client.Push.unsubscribe()
WL.Client.Push.poll()
WL.Client.Push.poll()
A Worklight adapter is used to __________.
connect to various back-end systems
Which of these adapter properties is mandatory?
adapter name
display name
description
ip address
adapter name
How can SQL statements can be invoked?
Both by using SQL statement query and SQL stored procedures
Assuming it is not overridden manually, in which case will the isSuccessful property of the procedure invocation result be true?
Worklight server is not accessible
Back end that adapter tries to connect to is not accessible
Internet is not available on a mobile device
Specified procedure does not exist in adapter
Back end that adapter tries to connect to is not accessible
What types of Java methods can be called from Worklight adapter?
Both static and instance methods can be called from adapter
What client side mechanism is used to detect that the server requires authentication for the client s request?
Authenticator.isAuthenticationRequired
Authenticator.isUserAuthenticated
Authenticator.analyzeServerResponse
Authenticator.isLoginFormResponse
Authenticator.isLoginFormResponse
How many JSON objects are in the messages.js file?
1
Which of the following invocationData properties are mandatory? (Choose two)
“invocation”
“adapter”
“procedure”
“parameters”
“adapter”
“procedure”
What is the minimum number of adapter files for a particular adapter?
0
1
2
3
2
In order for a plug-in to be recognized by an iOS application s JavaScript it should be added to
Cordova.plist file
Worklight.plist file
Plugins.plist file
Plug-in will be automatically recognized by JavaScript without adding it to any of above files
Cordova.plist file
Which environments are supported by Worklight? (Choose three)
iOS 3
Blackberry OS 5
Windows Phone
Android 4.0
Blackberry OS 5
Windows Phone
Android 4.0
Which mobile environments use the native implementation of a busy indicator? (Choose three)
iOS
Android
BlackBerry
Windows Phone
iOS
Android
Windows Phone
Each Worklight adapter consists of a _______________.
A. single XML file with adapter settings, single JS file with adapter implementation
B. single XML file with adapter settings, multiple JS files with adapter implementation
C. multiple XML files with adapter settings, multiple JS files with adapter
implementation
D. multiple XML files with adapter settings, single JS file with adapter implementation
single XML file with adapter settings, single JS file with adapter implementation
Which of the below connections are mandatory for push notifications to work? (Choose three)
Client application should be able to connect to a APNS/C2DM server
Client application should be able to connect to Worklight server
Worklight server should be able to connect to a APNS/C2DM server
More than one OS platform is required
Client application should be able to connect to a APNS/C2DM server
Client application should be able to connect to Worklight server
Worklight server should be able to connect to a APNS/C2DM server
What screen width does Android assume its html file is styled for?
A. 480
B. 160
C. 320
D. 1600
320
Which of the following server-side components cannot be added as a part of Worklight Project?
A. Source code of a custom server-side Java classes
B. Properties that should be used by server
C. JAR files containing server-side Java code
D. JMeter application to test Server s performance
JMeter application to test Servers performance
Pick the login type that is not supported by Worklight.
onStartup
never
onAlarm
onDemand
onAlarm
What type of adapter is not provided by Worklight out-of-the-box?
SQL adapter to connect to a SQL based servers
HTTP adapter to communicate with a web-based service
CastIron adapter
SIP adapter for VoIP communications
SIP adapter for VoIP communications
What is the default project application structure?
A single HTML file and a number of CSS and JS files
What happens when adapter procedure invocation fails due to inability to reach the Worklight
server?
Client side framework will try to invoke the procedure again and again until succeeded
onFailure callback specified in invocation options will be invoked. Developer should use it to treat server connectivity issues
onFailure callback specified in invocation options will be invoked. WL.Events.WORKLIGHT_IS_DISCONNECTED event will be fired. Developer should use either to treat server connectivity issues
Client side framework will show an error message with a retry button
onFailure callback specified in invocation options will be invoked. WL.Events.WORKLIGHT_IS_DISCONNECTED event will be fired. Developer should use either to treat server connectivity issues
Which class should be added to an element in order for it to use a property from messages.js?
A. resource
B. translate
C. localizable
D. externalText
translate
What are the components of a Cordova plug-in?
A. A native class implementing the required functionality: It can be called directly from
application s JavaScript
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 JavaScript wrapper only ; Native classes are already provided by Worklight.
A native class implementing the required functionality and a JavaScript wrapper for it: The wrappers functions can be called from JavaScript.
HTTP adapters can be used to__________. (Choose three)
Work with RESTful services
Work with SOAP services
Work with JMS services
Issue GET and POST requests
Work with RESTful services
Work with SOAP services
Issue GET and POST requests
Is it possible to use an existing JAR in my Worklight adapter?
A. No, it is not possible
B. Yes, it is possible. JAR file should to be added to server\lib folder
C. Yes, it is possible. JAR file should to be copied to Eclipse workspace
D. Yes, it is possible. JAR file should be added to server\java folder
Yes, it is possible. JAR file should to be added to server\lib folder
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
Devices phone number
How do you localize a System Message?
A. Insert it in messages.js
B. Override each message in your Javascript
C. Make a new page for each message
D. Add a new folder for each language
Override each message in your Javascript
Is it possible to transfer data between web and native page?
A. Web to native only
B. Native to web only
C. Neither way
D. Both ways
Both Ways
Which busy indicator option only applies to iOS?
text
color
fullScreen
orientation
fullScreen
When working with a SQL adapter which of the following file should be manually added to project?
A. JDBC connector driver
B. Database schema
C. Properties file containing SQL server credentials and configuration
D. Startup script that will connect Worklight server to a specified SQL database
JDBC connector driver
Which SQL servers are supported by theWorklight SQL adapter?
MySQL
Oracle 11g
DB2
All of the above
Where should the icons used for the Windows application bar be placed?
A. windowsphone/images
B. windowsphone/resources/applicationBar
C. windowsphone/applicationBarImages
D. windowsphone/resources/icons
windowsphone/resources/applicationBar
The difference between the Authenticator and Login modules is:
Authenticator is a server side entity used to collect and validate credentials. Login module is a server side entity used to create user identity
Authenticator is a server side entity used to collect credentials and create user identity. Login module is a server side entity used to validate credentials
Authenticator is a server side entity used to collect credentials. Login module is a server side entity used to validate credentials and create user identity
Authenticator is a client side entity that performs basic credentials validation. Login module is a server side entity which performs deep credentials validation
Authenticator is a server side entity used to collect credentials. Login module is a server side entity used to validate credentials and create user identity
What function is invoked when the Worklight framework initialization finishes?
A. wlInit()
B. wlInitFinished()
C. wlCommonInit()
D. wlStart()
wlCommonInit()
What are the steps of creating a native page?
A. Create a new Java class, extend Activity
B. Create a new Java class, extend Activity, add an activity declaration to AndroidManifest.xml
C. Create a new Java class, extend NativePage
D. Create a new Java class, extend NativePage, add a native page declaration to AndroidManifest.xml
Create a new Java class, extend Activity, add an activity declaration to AndroidManifest.xml
How can the developer declare what to do when a response from Worklight adapter is received?
Developer does not have to declare it. Client side framework code will do everything automatically
By specifying the callback function names in adapter s XML file
By specifying the callback function names in onSuccess and onFailure properties of an options object
By adding the callback function names as an invocation parameters
By specifying the callback function names in onSuccess and onFailure properties of an options object
What class must be extended to create a custom Java login module?
A. com.worklight.Auth
B. com.worklight.auth.ext.UserNamePasswordLoginModule
C. com.worklight.auth.Login
D. com.worklight.auth.api.UserIdentity
com.worklight.Auth
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
Yes, using WL.App.getDeviceLocale and WL.App.getDeviceLanguage APIs
Which of these is not a function of WL.Client?
Manipulate elements class names
Obtain general app information
Manage authenticated sessions
Dynamic page and fragment loading
Manipulate elements class names
What format of data can the HTTP adapter retrieve and automatically parse? (Choose three)
A. Swift
B. XML
C. JSON
D. Plain text
XML
JSON
Plain text
What namespace is used for the Worklight API?
A. W
B. WL
C. Worklight
D. WLite
WL
Which of the following API can be used across all environments to debug Worklight
application?
console.log
console.debug
WL.Logger.debug
WL.Debugger.log
WL.Logger.debug
What are the steps to create an iOS native page?
A. Create a new Objective C class, subclass UIViewController B. Create a new Objective C class, subclass UINativePage C. Create a new Objective C class, make it partial class of the application s main ViewController D. Add UI layout to the existing ViewController
Create a new Objective C class, subclass UIViewController
What is the dependency between realm, authenticator and login module in the authenticationConfig.xml file?
A. Each authenticator element must specify its className, realm and loginModule
B. Each realm element must specify a className of its authenticator and loginModules name
C. Each loginModule element must specify a className of its realm and authenticators name
D. Each authenticator element must specify its realm and its loginModule
Each realm element must specify a className of its authenticator and loginModules name
The correct place to specify the application s metadata is __________.
authenticationConfig.xml
worklight.properties
application-descriptor.xml
This setting should be done separately per platform in a dedicated settings file
application-descriptor.xml
Which of the following APIs is synchronous and does not require callbacks to be set up?
WL.EncryptedCache.open
WL.EncryptedCache.read
WL.EncryptedCache.destroy
None of the above
Can application-related custom data be sent in a push notification?
A. No, push notification may only contain notification text that will be shown to user
B. Yes, application-related custom data can be sent in the push notification. but the
application must be running in the foreground in order to receive it.
C. Yes, application-related custom data can be sent in the push notification but the
application must be running in the background in order to receive it.
D. Yes, application-related custom data can be sent in the push notification. The
application may receive it even if it was not running at the time of push notification
arrival.
Yes, application-related custom data can be sent in the push notification. The application may receive it even if it was not running at the time of push notification arrival.
For which OSes does Worklight provide unified push notification? (Choose two)
Windows Phone
Android
iOS
Blackberry
Android
iOS
How does an adapter present data back to the application?
A. SOAP
B. JMS
C. JSON
D. RMI
JSON
Which of the below should not be a part of Shell component?
Authentication module
Native functionality JavaScript wrapper
Application UI components
Company logo that should be shared between several application
Native functionality JavaScript wrapper
Which sentences correctly describe the encrypted cache ?
The encrypted cache is stored in the device s native storage. Its size is limited by the free space on a device therefore large amounts of data can be stored.
HTML5 WebStorage is used for storing encrypted cache; therefore the amount of data stored in it is limited to several megabytes
The encrypted cache is stored on Worklight server. Its size is limited by the free space in the Worklight server s database; therefore large amounts of data can be stored
The encrypted cache is stored in virtual memory. Its size is limited by the devices RAM and erased each time user quits the application.
HTML5 WebStorage is used for storing encrypted cache; therefore the amount of data stored in it is limited to several megabytes
A developer creates two adapters. Each adapter is protected by its own authentication realm
with different login modules. What would be the consequence of this approach?
A. Once the user authenticates in one realm he will be automatically authenticated in a second one
B. The user will not be able to use these adapters together in same application
C. The user will have to login in each realm separately
D. The user will have to logout from one realm prior to using adapter protected by another realm
The user will have to login in each realm separately
Which objects properties should be overwritten in order to override system messages?
WL.SystemMessages
WL.Messages
WL.Resources.Messages
WL.ClientMessages
WL.ClientMessages
When defining a realm using adapter based authentication in authenticationConfig.xml, which
parameters are mandatory? (Choose two)
login-function
adapter-name
logout-function
realm-name
login-function
realm-name
Which mobile environments support the TabBar control? (Choose two)
BlackBerry,
Windows Phone
iOS,
Android
iOS
Android
How can Java code replace a Worklight adapter?
A. It is possible to setup request routing directly to Java code removing the need to use Worklight adapter B. By setting useJavaAdapters property to true in adapter s XML file C. By deleting the adapter s JS file and declaring Java class in XML file D. Java code can be used as an extension of adapter functionality; it cannot be used as a replacement
Java code can be used as an extension of adapter functionality; it cannot be used as a replacement
What does the common folder hold?
A. All resources shared between environments
B. Only files considered ordinary by the developer
C. The splash screens for the each platform
D. An mp3 of the Worklight theme song
All resources shared between environments
What is a common control?
A. A user interface element that is common to most environments
B. A way to specify how group of elements is controlled
C. An emulation of device s native controls using various technologies
D. A native interface element which cannot be controlled by a web means such as JavaScript
A user interface element that is common to most environments
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 users 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
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.
A connectivity to Worklight server is only required in order to __________.
A. create a new encrypted cache
B. open an existing encrypted cache
C. read/write values to encrypted cache
D. destroy encrypted cache
create a new encrypted cache
Where in the Worklight project structure do Worklight.properties belong?
A. server\conf
B. resources\properties
C. server\lib
D. tomcat\worklight
server\conf
What is a best way to keep an active server session alive?
A. Alert user that session is about to expire and ask to perform some action to keep it alive
B. Invoke any Worklight adapter procedure in the background ignoring the response
C. Set heartbeat interval to a value lower than session timeout defined on Worklight
server
D. There is no way to keep session alive from the client. Server is the only entity that can control this
Set heartbeat interval to a value lower than session timeout defined on Worklight server
What protects a Worklight entity from unauthorized access?
A. The login page
B. The AuthorizeAccess web service
C. An authentication realm
D. The authentication adapter
An authentication realm
How can a developer specify which adapter procedures will be protected by an authentication
realm?
A. Once the authentication realm is specified in adapter s XML file, all of the adapters procedures are protected by it
B. The developer doesn t need to specify it. Authentication credentials should be added on the client side when using WL.Client.invokeProcedure
C. The developer should add a requiresAuthentication=”true” property to the procedure
definition in adapter s XML
D. An authentication realm does not protect adapter procedures. Protection is for applications only
The developer should add a requiresAuthentication=”true” property to the procedure definition in adapter s XML
Can an HTTP adapter be used with a non standard HTTP ports?
A. You must use port 80 for HTTP and port 443 for HTTPS
B. You can use any port for HTTP but only to 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
It is possible to use any port for both HTTP and HTTPS
Which of the following is not a Worklight project folder?
adapters
bin
lib
phone
phone
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
When the developer wants to gain access to OS APIs which are not accessible within
the web container