CUSTOMER_CODE SMUDE DIVISION_CODE SMUDE

advertisement

CUSTOMER_CODE SMUDE

DIVISION_CODE

EVENT_CODE

SMUDE

SMUAPR15

ASSESSMENT_CODE BT0087_SMUAPR15

QUESTION_TYPE DESCRIPTIVE_QUESTION

QUESTION_ID 36427

QUESTION_TEXT Explain any five functions of WML Browser Library.

SCHEME OF

EVALUATION

The WMLBrowser library contains functions that can be used to access browser variables.

, , , , , , are the functions belonging to WML Browser library .

1.getVar(variable_name)

Returns the value of the WML variable variable_name .

Example: var wmlscript_variable = WMLBrowser.getVar("wml_variable");

2.setVar(variable_name, value)

Assigns value to the WML variable variable_name . Sets the value of a variable, and returns true if the new value was implemented successfully, and false if not

Example:

WMLBrowser.setVar("wml_variable", "Hello World");

3.go(url)

Goes to the card with URL address url .

Example:

WMLBrowser.go("http://www.developershome.com/helloWorldEg1.wml");

4.prev()

Goes to the previous card displayed in the WML browser.

Eg. WML Browser.prev( );

5.newContext()

Clears all WML variables and the URL history stored in the WML browser.

WML Browser.newContext( );

6.getCurrentCard()

Returns the URL of the current card displayed in the WML browser. var a = WML Browser.getcurrentcard( );

7.refresh( )

Refreshes the contents of the current card displayed in the WML browser.

WML Browser.refresh( );

(explanation of any 5 types of functions – 2 marks each - > 5 x 2 = 10 marks)

QUESTION_TYPE DESCRIPTIVE_QUESTION

QUESTION_ID 73583

QUESTION_TEXT Write note on WML Script variables.

SCHEME OF EVALUATION

WML script variables:

● It is a variable associated with data value

● Declaration with example (3 marks)

● Variable scope and lifetime (3 marks)

● Variable access (2 marks)

● Variable name (2 marks)

QUESTION_TYPE DESCRIPTIVE_QUESTION

QUESTION_ID 155771

QUESTION_TEXT

SCHEME OF

EVALUATION

Why HTTP, TLS and Transmission Control Protocol (TCP) are inefficient over mobile networks.

HTML, HTTP, TLS and transmission control protocol (TCP) are inefficient over mobile networks because they require large amount of mainly text-based data to be sent over a network.this requirement for large amounts of data to be transmitted is not optimal for mobile networks because mobile networks currently are characterized by lower bandwidths then normal web networks. In addition, any protocols with large data transmission requirement must overcome the difficult challenges of intermittent coverage, another

Characteristic of wireless networks.

HTML Internet standards are not optimal for the wireless web because this standard was not designed for small screen displays and limited input options. WAP does not use HTML to display web sites, but instead uses WML and the WMLScript. WML and WMLScript make optimum use of small display screens where navigation is usually performed with one hand. WAP standards are scalable and can fit into the two-line text displays on the most basic devices to the full graphic screens on the latest smart phones.

QUESTION_TYPE

QUESTION_ID

QUESTION_TEXT

SCHEME OF

EVALUATION

DESCRIPTIVE_QUESTION

155773

Write WML code to create Reset Buttons using anchors.

<?xml version=”1.0”?>

<! DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML

1.3//EN” http://www.wapforum.org/DTD/wml13.dtd

>

<wml>

<card id=”card1” title=”WML Form”>

<p>

User name:<br/>

<input name=”myUserName”/><br/>

Password:<br/>

<input name=”myPassword” type=”password”/><br/><br/>

<anchor>

<go method=”get” href=”resetButtonsProc.asp”>

<postfield name=”name” value=”$(myUserName)”/>

<postfield name=”password” value=”$(myPassword)”/>

</go>

Submit Data

</anchor><br/>

<anchor>

<refresh>

<setvar name=”myUserName” value=””/>

<setvar name=”myPassword” value=””/>

</refresh>

Reset Form

</anchor>

</p></card>

</wml>

Download