Download New Updated (July) IBM C2180-279 Actual Test 51-60

Ensurepass

 

 

QUESTION 51

Where in the Worklight project structure do Worklight.properties belong?

 

A.

serverconf

B.

resourcesproperties

C.

serverlib

D.

tomcatworklight

 

Correct Answer: A

 

 

QUESTION 52

Before submitting a long form, an application needs to explicitly detect that the device is connected to the Worklight server. How can this be done?

 

A.

Add an event listener to WL.Events.WORKLIGHT_IS_CONNECTED and handle the submission of the form in the callback.

B.

Add an event listener to WL.Events.WORKLIGHT_IS_DISCONNECTED and handle the submission of the form in the callback.

C.

Use WL.Client.invokeProcedure() to a procedure and then handle the submission of the form in the callback onSuccess.

D.

Use WL.Device.getNetworkInfo() and handle the submission of the form in the callback after checking that isNetworkConnected is true.

 

Correct Answer: C

 

 

QUESTION 53

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 adapter’s 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

 

Correct Answer: C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 54

A developer wants to create a procedure called getAccountInfo in a Worklight SQL adapter to retrieve account information from a backend database. The procedure should invoke a SQL query that accepts an accountID as parameter and returns the accountNumber, accountName and accountBalance of the corresponding row in the Account table. What is a correct implementation of the procedure in the adapter’s JavaScript file?

 

clip_image002

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: A

 

 

 

 

 

QUESTION 55

A cross-platform mobile application has the following file structure:

 

clip_image004

 

What happens when the application is deployed to an Android device and the function getPlatform() is invoked?

 

A.< /font>

The invocation will return the value bar because the Android version of MyApp.js is appended to the common version of MyApp.js.

B.

The invocation will fail with a JavaScript error because the function getPlatform() was not defined in the Android version of the MyApp.js.

C.

The invocation should return the value bar, but it will return the value foo because the assignment myPlatform = “bar”; is declared ona local scope (missing the var definition).

D.

The invocation will return the value foo because the Android version of MyApp.js does not declare a getPlatform() function andWorklight will fallback to the common implementation.

 

Correct Answer: A

 

 

 

 

QUESTION 56

What client side mechanism is used to detect that the server requires authentication for the client’s request?

 

A.

Authenticator.isAuthenticationRequired

B.

Authenticator.isUserAuthenticated

C.

Authenticator.analyzeServerResponse

D.

Authenticator.isLoginFormResponse

 

Correct Answer: D

 

 

QUESTION 57

A hybrid mobile application named App1 is failing to connect to the Worklight Server with the following error code: “Application Error – The connection to the server was unsuccessful” Knowing that the application should be available at “http://srv.ent.com:9099/wl” but without any access to the Worklight Console, how can the support engineer ensure that the application App1 has been properly deployed?

 

A.

Query the is-alive URL at “http://srv.ent.com:9099/wl/ws/rest/vitality?app=App1”

B.

Query the preview URL at “http://srv.ent.com:9099/wl/apps/services/preview/App1/App1.html”

C.

Invoke the Worklight Server Mobile Browser Simulator at”http://srv.ent.com:9099/wl/_MobileBrowserSimulator/index.html?app=App1″

D.

Use a remote debugging tool such as Weinre or iWebInspector to inspect the request to the application’s init resource at” http://srv.ent.com:9099/wl/apps/services/api/App1/common/init”

 

Correct Answer: A

 

 

QUESTION 58

Which of the below connections are mandatory for push notifications to work? (Choose three)

 

A.

Client application should be able to connect to a APNS/C2DM server

B.

Client application should be able to connect to Worklight server

C.

Worklight server should be able to connect to a APNS/C2DM server

D.

More than one OS platform is required

 

Correct Answer: ABC

 

 

QUESTION 59

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

 

Correct Answer: A

 

 

 

 

QUESTION 60

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

 

Correct Answer: D

 

Free VCE & PDF File for IBM C2180-279 Real Exam

Instant Access to Free VCE Files: CompTIA | VMware | SAP …
Instant Access to Free PDF Files: CompTIA | VMware | SAP …