Sei sulla pagina 1di 7

PDF4Test

http://www.pdf4test.com
Free valid test questions and dumps pdf for certification test prep
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

Exam : C5050-408

Title : IBM Worklight Foundation


V6.2, Mobile Application
Development

Vendor : IBM

Version : DEMO

1
Get Latest & Valid C5050-408 Exam's Question and Answers from Pdf4test.com. 1
http://www.pdf4test.com/c5050-408-dump-torrent.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

NO.1 What is the purpose of the Application Center?


The Application Center is:
A. a means of sharing information among different team members within a company, where some
mobileapplications can be targeted to specific groups of users.
B. intended for production-ready applications only. Development team members should look for
other meansof collaboration.
C. used to share only Worklight applications among different team members within a company.
D. IBM's version of a public Application Store that targets usage outside of a company, similar to the
AndroidMarket or Apple's public Application Store.
Answer: C
Explanation:
IBM Worklight Application Center is an enterprise application store. It allows you to install, configure,
and administer a repository of mobile applications for use by individuals and groups within your
enterprise or organization. It is built on top of the IBM MobileFirst Platform and the IBM Worklight
mobile application platform that enables you to develop, deploy, and manage mobile applications.
References: http://www.redbooks.ibm.com/abstracts/redp5005.html?Open

NO.2 An application developer is using JSONStore in a mobile application to store purchase orders.
The application allows sellers to modify the status of an order. The JSONStore collection for the
orders is defined in a global variable as follows: var ordCollection = { orders: {
searchFields: {ord_number: 'integer', status: 'string' }
}
};
Which of the following JavaScript functions can the application developer use to change the status of
an order in the local JSONStore?
A. var updateOrder = function(orderDoc, newStatus){ orderDoc.json.status = newStatus;
WL.JSONStore.update(ordCollection, orderDoc) .then(function
(numberOfDocumentsUpdated) { // Handle success. })fail(function (errorObject) { // Handle
failure.
});
};
B. var updateOrder = function(orderDoc, newStatus){ orderDoc.json.status = newStatus;
var ordColInstance = WL.JSONStore.get(ordCollection);
var numberOfDocumentsUpdated = ordColInsnance.update(orderDoc); if(
numberOfDocumentsUpdated >= 0 ){
// Handle Success
} else {
// Handle Failure
}
};
C. var updateOrder = function(orderDoc, newStatus){ orderDoc.json.status = newStatus;
WL.JSONStore.get('orders').replace(orderDoc) .then(function

2
Get Latest & Valid C5050-408 Exam's Question and Answers from Pdf4test.com. 2
http://www.pdf4test.com/c5050-408-dump-torrent.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

(numberOfDocumentsReplaced) { // Handle success. })fail(function (errorObject) { // Handle


failure.
});
};
D. var updateOrder = function(orderDoc, newStatus){ orderDoc.json.status = newStatus;
var ordColInstance = WL.JSONStore.get('orders');
var numberOfDocumentsReplaced = ordColInsnance.replace(orderDoc); if(
numberOfDocumentsReplaced >= 0 ){
// Handle Success
} else {
// Handle Failure
}
};
Answer: B
Explanation:
WL.JSONStore.get(collectionName)
Provides an accessor to the collection if the collection exists, otherwise it returns
undefined.
Must reference OrdCOllection in the Get statement.
References:
https://www.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.apiref.do
c/html/refjavascriptclient/html/WL.JSONStore.html

NO.3 An application developer needs to invoke Android native code from Javascript using Apache
Cordova API.
Which method signature should the application developer use?
A. cordova.exec(Plug-inName, ActionName, FailureCallback, SuccessCallback, Parameters);
B. cordova.exec(Plug-inName, ActionName, SuccessCallback, FailureCallback, Parameters);
C. cordova.exec(FailureCallback, SuccessCallback, Plug-inName, ActionName, Parameters);
D. cordova.exec(SuccessCallback, FailureCallback, Plug-inName, ActionName, Parameters);
Answer: D
Explanation:
Here is an example:
cordova.exec(function(winParam) {}, function(error) {}, "service",
"action", ["firstArgument", "secondArgument", 42, false]);
The parameters explained in more detail:
- function(winParam) {} - Success function callback. Assuming your exec call completes successfully
, thisfunction will be invoked (optionally with any parameters you pass back to it)
- function(error) {} - Error function callback. If the operation does not complete successfully, thi
s function willbe invoked (optionally with an error parameter) - "service" - The service name to cal
l into on the native side. This will be mapped to a native class. More onthis in the native guides below
- "action" - The action name to call into. This is picked up by the native class receiving the exec call

3
Get Latest & Valid C5050-408 Exam's Question and Answers from Pdf4test.com. 3
http://www.pdf4test.com/c5050-408-dump-torrent.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

, and,depending on the platform, essentially maps to a class's method. - [/* arguments */]
- Arguments to get passed into the native environment
References: http://docs.phonegap.com/en/2.3.0/guide_plugin-development_index.md.html

NO.4 An application developer is developing an Android based Hybrid application but the application
is returning an error on the startup process.
What are two valid initialization failure statuses that the application developer can identify on the
startup process?
FAILURE_NOT_ENOUGH_SPACE
A. FAILURE_CHECKSUMFAILURE_EXTERNAL
B. FAILURE_COMMUNICATIONFAILURE_INTERNAL
C. FAILURE_COMMUNICATIONFAILURE_ENCRYPT
D. FAILURE_UNZIP
Answer: D
Explanation:
The initialization status can be: FAILURE_INTERNAL FAILURE_UNZIP FAILURE_CHECKSUM
FAILURE_NOT_ENOUGH_SPACE References:
http://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/d ev/
c_start_hybrid_app_android_in_webview.html

NO.5 An application developer wants to create a mobile pattern for reuse by other projects. The
developer uses the UI Pattern to create the new template which generates the pattern.html file that
needs to be edited.
In which directory can the application developer find the pattern.html file that was created?
A. apps
B. server
C. Web
D. WebContent
Answer: D
Explanation:
A folder with the name of your new pattern is added to the WebContent folder. This folder
contains the pattern's resources.
References:
https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/
com.ibm.rad.worklight.doc/topics/tcrtuipatterns.html

NO.6 An application developer has developed a mobile web application that uses a large number of
resources. The application developer intends to improve the startup time of the application.
To do so, which technique should the application developer use?
A. Encryption
B. Minification
C. Compression
D. Concatenation

4
Get Latest & Valid C5050-408 Exam's Question and Answers from Pdf4test.com. 4
http://www.pdf4test.com/c5050-408-dump-torrent.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

Answer: D
Explanation:
Concatenation of the web resources can be used to improve the start time of the
application.
Incorrect:
Not B: By using minification on specific web resources, it is possible to reduce the size of
JavaScript and CSS files in the application.
References:
https://www.ibm.com/support/knowledgecenter/SSZH4A_6.1.0/com.ibm.worklight.dev.doc/
devref/ c_optimizing_apps_concatenation.html

NO.7 The following is part of a HTTP adapter invocation result.


{
"college":{
"class":{
"description": "Class object"
"student": {
"description": "Students marks details",
"title":Top Stories"
},
"studentmarks": [
{
"name": "Mirjana Lucic-Baroni.",
"marks": "90",
"level": "Level one"
}
{
"name": "Rose Way.",
"marks": "87",
"level": "null"
}
]
}
}}
An application developer needs to send only the 'name' and 'marks' information to a mobile
application using the adapter xsl file.
Which xsl file code snippet will enable the application developer to achieve this?
A. {
'Items': [
<xsl:for-each select="//college">
{
'name: '<xsl:value-of select="college.name"/>',

5
Get Latest & Valid C5050-408 Exam's Question and Answers from Pdf4test.com. 5
http://www.pdf4test.com/c5050-408-dump-torrent.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

'marks': '<xsl:value-of select="college.marks"/>',


},
</xsl:for-each>
]
}
B. {
'Items': [
<xsl:for-each select="//studentmarks">
{
'name': '<xsl:value-of select="name"/>',
'marks': '<xsl:value-of select="marks"/>',
},
</xsl:for-each>
]
}
C. {
'Items': [
<xsl:for-each select="//item">
{
'name': '<xsl:value-of select="name"/>',
'marks': '<xsl:value-of select="marks"/>',
},
</xsl:for-each>
]
}
D. {
'Items': [
<xsl:for-each select="//student">
{
'name': '<xsl:value-of select="student.name"/>',
'marks': '<xsl:value-of select="student.marks"/>',
},
</xsl:for-each>
]
}
Answer: B
Explanation:
For each studentmarks select the the name and marks.

6
Get Latest & Valid C5050-408 Exam's Question and Answers from Pdf4test.com. 6
http://www.pdf4test.com/c5050-408-dump-torrent.html

Potrebbero piacerti anche