Register Login
Internet / AI Technology University (ITU/AITU)
Created by info@itofthefuture.com
Welcome Anonimous.User to this quiz related to Wml.

Read the question and choose the best answer. Time is limited to 40 seconds!

Important! Do not forget to rank the quality of the question (from bad to excellent).
An initiator of the quiz will get royalty score for QnAs created by her/him and can win the Top Creativity Prize.
Question:
Given the following WML code, insert correct exception handling code at the positions marked with <!-- 1 --> and <!-- 2 -->: <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" "http://www.phone.com/dtd/wml11.dtd" > <wml> <card id="stock"> <do type="accept" label="Next"> <spawn href="#order"> <!-- 1 --> <receive name="status"/> </spawn> </do> <p> Stock Trade Example<br/> $(status) </p> </card> <card id="order"> <do type="accept" label="Order"> <spawn href="#confirm" onexit="?"> <receive name="status"/> </spawn> </do> <do type="options" label="Prev"> <exit> <send value="Status: No Trade"/> </exit> </do> <p> Stock Order: <br/> Stock  : PHCM <br/> Shares : 100 <br/> </p> </card> <card id="confirm"> <do type="accept" label="Yes"> <exit> <send value="Status: Completed"/> </exit> </do> <do type="options" label="Cancel"> <!-- 2 --> </do> <p align="center"> <b>*** Confirm ***<br/> Stock Order <br/> </b> </p> </card> </wml>

<!-- 1 -->
<catch name="status"/>
<!-- 2 -->
<throw name="onerror" value="Status: Canceled"/>



<!-- 1 -->
<catch>
<receive name="status"/>
</catch>
<!-- 2 -->
<throw name="onerror">
<send value="Status: Canceled"/>
</throw>



<!-- 1 -->
<catch>
<receive type="status"/>
</catch>
<!-- 2 -->
<throw name="onerror">
<send value="Status: Canceled"/>
</throw>



<!-- 1 -->
<catch "status />
<!-- 2 -->
<throw "onerror" />



Rank the Quality of the Question from "-10" (bad) or "0" (not clear) to 10 (correct) or even 20 (very good!)
-10 (bad/wrong) 0 (not clear) 10 (correct) 20 (very good!)
Your summary report will be available to you and your instructor. Thank you for your work!!!