nerdexam
IBM

C2180-279 · Question #105

A cross-platform mobile application has the following file structure: What happens when the application is deployed to an Android device and the function getPlatform() is invoked?

The correct answer is A. The invocation will return the value bar because the Android version of MyApp.js is appended to. See the full explanation below for the reasoning.

Question

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

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

Exhibit

C2180-279 question #105 exhibit

Options

  • AThe invocation will return the value bar because the Android version of MyApp.js is appended to
  • BThe invocation will fail with a JavaScript error because the function getPlatform() was not defined
  • CThe invocation should return the value bar, but it will return the value foo because the assignment
  • DThe invocation will return the value foo because the Android version of MyApp.js does not declare

How the community answered

(15 responses)
  • A
    73% (11)
  • B
    7% (1)
  • C
    7% (1)
  • D
    13% (2)

Community Discussion

No community discussion yet for this question.

Full C2180-279 Practice