How should you complete the relevant code?

HOTSPOT
You are developing a Windows Store app by using JavaScript. The app will call a WinMD component
to convert temperature. The component exposes the following two members:
A static variable named Fahrenheit
A public method named GetInCelsius( ) that accepts an integer
You need to ensure that the app will display the temperature in Celsius and Fahrenheit. How should
you complete the relevant code? (To answer, select the correct code segment from each drop-down
list in the answer area.)

HOTSPOT
You are developing a Windows Store app by using JavaScript. The app will call a WinMD component
to convert temperature. The component exposes the following two members:
A static variable named Fahrenheit
A public method named GetInCelsius( ) that accepts an integer
You need to ensure that the app will display the temperature in Celsius and Fahrenheit. How should
you complete the relevant code? (To answer, select the correct code segment from each drop-down
list in the answer area.)

Answer:

Explanation:



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Vadim

Vadim

The question actually says:
A static variable named Fahrenheit
A public method named GetInCelsius( ) that accepts an integer

So shouldn’t the member names capitalized, i.e. ‘Farenheit’, ‘GetInCecius’?

Vlad

Vlad

Vadim, it should’t be capitalize because the method and variable are written in WinMD, so to access them you use the javascript API (lowercase).

chicco

chicco

Projection makes methods and property written in components to be converted in camel case.