Red Practice Test Answers  

1. Given the following rule:

      <rule id = "get_quantity" scope = "public">
              <one-of>
                  <item>one share </item>
                  <!-- rest of grammar omitted to save space -->
            </one-of>
    </rule

Rewrite the item so that the value “1” is returned to VoiceXML application when the user speaks “one share”.

A. <item> 1 share </item>

B. <item> one share <tag> $ = "1" </tag> </item>

C. <item> one share <return> 1 </return> </item>

D. <item> one share </item>   (no change to the item)

Correct answer is B. <tag>

 

 

2. Given the following mixed initiative grammar:

<grammar type="application/srgs+xml" version="1.0" xml:lang = "en" root="get_order">
      <rule id = "get_order" scope = "public">
            [_______________]
      </rule>

      <rule id = "get_quantity" scope = "public">
            <one-of>
                  <item>one share  <tag> quantity = "1"</tag></item>
                   <item>two shares <tag> quantity = "2" </tag></item>
                   <!-- rest of grammar omitted to save space -->
            </one-of>
     </rule>

      <rule id = "get_stock" scope = "public">
            <one-of>
                  <item> of intel          <tag>ticker_symbol = "intc" </tag> </item>
                  <item> of microsoft  <tag>ticker_symbol = "msft" </tag> </item>
                  <item> of cisco        <tag>ticker_symbol = "csco" </tag> </item>
            </one-of>
     </rule>

 </grammar>

 Which of the following should be placed in the empty bracket? 

A.  <item><ruleref uri = "#get_quantity"/></item>

C. <one-of>
                <item><ruleref uri = "#get_quantity"/></item>
                <item><ruleref uri = "#get_stock"/></item>
          </one-of>

D. <item><ruleref uri = "#get_quantity"/></item>
           <item> <ruleref uri = "#get_stock"/></item>

Correct answer is D. Lesson 20.8.4

 

 

3. Given the following property has been set:

       <property = "bargein" value = "true"/>

What should the developer specify to prohibit the users from barging in during the following prompt yet continue to allow users to barge in to other prompts?

      <prompt> Once you complete this transaction, the result is final. </prompt>









Correct answer is D. Lesson 13.3 and <prompt>

 

4. Modify the following prompt

     <prompt>
          Dr. Jones lives on Elm Dr .
     </prompt>

So the user hears

     Doctor Jones lives at on Elm Drive

and yet be able to display the original text to a person with hearing disabilities.







Correct answer is A. <sub>

 

5. Given the following VoiceXML code:

<form>
      <block>Welcome to Ajax catalog. </block>
      <field name = "product_code" type = "digits">
           <prompt> Product code? </prompt>
      </field>
      <field name = "quantity" type = "number">
            <prompt> how many? </prompt>
      </field>
      <field name = "price" type = "number">
             <prompt> Price per unit? </prompt>
      </field>
      <filled>
            <if cond = "price &gt; 500">
                     <clear namelist = "price"/>
                     <prompt> Price is too high </prompt>
            </if>
      </filled>
</form>

Complete the following dialog:

Computer: Welcome to Ajax catalog. Product code?
Human: thirteen
Computer: How many?
Human: three
Computer: Price per unit?
Human: six hundred
[__________]








 Correct answer is B. <filled> and <clear>


 

6. What is spoken to the user by the following VoiceXML code?

<var name = "a" expr = "1"/>
<var name = "b" expr = "1"/>
<var name = "c" expr = "1"/>
<form id = “formB”>
     <var name = "b" value = "3"/>
     <field name = "fieldC">
          <assign name = "a" value = "9"/>
          <var name = "c" value = "5"/>
          <filled>
              <prompt>
                      Values at field level are
                      a = <value expr = "a"/>
                      b = <value expr = "b"/>
                      c = <value expr = "c"/>
             </prompt>
         </filled>
     </field>
     <filled>
          <prompt>
                  Values at form level are
                   a = <value expr = "a"/>
                   b = <value expr = "b"/>
                   c = <value expr = "c"/>
          </prompt>
     </filled>
</form>





 Correct answer is B. <var> and Lesson 10.4 .

 

7. A <form> may contain which of the following elements as a direct chilc of the <form>?





  Correct answer is A.<form>

 

8. What do <field>, <record>, <object>, <subdialog>, and <transfer> elements have in common?

A. Each may be a direct child of the <form> element



  Correct answer is D. <field>, <record>, <object>, <subdialog>, and <transfer>

 

9. Which two elements have an id attribute?

A. <field>
B. <form>
C. <menu>
D. <block>

 Correct answers are B and C. <field>, <form>, <menu>, and <block>

 

10. Given the following VoiceXML code:

<form>
     <field name = "A” type = "digit"> <prompt> What is A? </prompt> </field>
     <field name = "B" type = "digit"> <prompt> What is B? </prompt> </field>
     <field name = "C" type = "digit"> <prompt> What is C? </prompt> </field>
     <filled>
          <if cond = "A &gt; 5"> <clear namelist = "B C"/></if>
          <if cond = "B &gt; 3"> <clear namelist = "B"/></if>
     </filled>
</filled>

This code will prompt the user to speak which of the following sequences of numbers?





Correct answer is D. <if> and <clear>

11. Given the following code

<link event = "error.A">
     <grammar version = "2.0" root = "game" type = "application/srgs+xml">
          <rule id = "game">
                 <item> beanbag </item>
          </rule>
     </grammar>
</link>
<form>
     <field name = "circus" >
          <prompt>Do you want to throw a beanbag or softball?</prompt>
          <grammar version = "2.0" root = "projectile" type= "application/srgs+xml">
               <rule id = "projectile"> softball </rule>
          </grammar>
     </field>
</form>

How should the above code be modified so that a <nomatch> event is generated when the user speaks “beanbag”?

A. Insert the following into the field element

          modal = "true"

B. Replace the projectile rule by

          <rule id = "projectile">
               <one-of>
                    <item> softball </item>
                    <item beanbag </item>
               </one of>
          </rule>

C. Insert the following into the <field> element

          cond = "'circus' != 'beanbag'"


  Correct answer is A. <form>

12. Given the following VoiceXML code that enables a user to either speak or enter values using DTMF:

<field name = "purchase">
     <prompt> do you want to purchase item 25 or 53?</prompt>
     <grammar version = " 2.0 " root = "product_dtmf" type = "application/srgs+xml" mode = "dtmf">
          <rule id = "product_dtmf">
                 <one-of> <item> 2 5 </item> <item> 5 3 </item> </one-of>
          </rule>
     </grammar>
     <grammar version = "2.0" root = "pruduct" type = "application/srgs+xml" mode = "voice">
           <rule id = "product_speech">
                <one-of>
                     <item> twentyfive <tag>$ = "25"</tag></item>
                     <item> fiftythree <tag>$ = "53"</tag></item>
                </one-of>
           </rule>
     </grammar>
     <filled>
            <if cond = [_______]”>
                  <prompt> thanks for speaking the item number </prompt>
            <else/><prompt> thanks for entering the item number </prompt>
           </if>
     </filled>
</field>

What should be placed in the blank to by saying thanks for speaking (if the user spoke) or entering (if the user used DTMF)?








Correct answer is F. Lesson 21 .

 

13 What is the standard session variable for storing the ANI?





 Correct answer if D. <transfer>

 

14. Given the following VoiceXML code:

<var name = "first_part" expr = "B" />
<field name = "second_part">
     <grammar version = "2.0" root = "number" type = "application/srgs+xml" mode = "voice">
          <rule id = "number">
               <one-of> <item> 1 </item> <item> 2 </item> </one-of>
          </rule>
     </grammar>
     <prompt> Say 1 or 2 </prompt>
      <filled> [____] </filled>
</field>

Which of the following can be place into the [____] without resulting in an error?





 Correct answer is A.<goto>.

 

15. Which two of the following result in a transfer to another document?

A. <goto next = "xxx.yyy.vxml" />
B. <submit src = "xxx.yyy.vxml" />
C. <fetch src = "xxx.yyy.vxml" />
D. <submit next = "xxx.yyy.vxml" />

Correct answer is A and D. <goto>, <submit>, <return>

 

16. Given the following VoiceXML code, what must be inserted to guarantee that the parent_age is greater than the child_age?

<form>
     <field name = "parent_age" type = "number">
          <prompt> What is the age of the parent? </prompt>
     </field>
     <field name = "child_age" type = "number">
          <prompt> What is the age of the child? </prompt>
     </field>
     [_____]
</form>

A. <filled>
                <if cond = "child_age &ge; parent_age">
                      <clear namelist = "parent_age child_age"/>
                      <prompt> child is older than parent </prompt>
                 </if>
           </filled>

B. <filled>
               <if cond = "child_age &ge; parent_age">
                     <reset namelist = "parent_age child_age"/>
                     <prompt> child is older than parent </prompt>
               </if>
           </filled>

C. <filled>
                <if cond = "child_age &ge; parent_age">
                      <var name = "parent_age" expr = "child_age">
                      <assign name = "child_age" expr = "parent_age"/>
                      <prompt> child is older than parent </prompt>
               </if>
          </filled>

D. <filled>
                <if cond = "child_age &ge; parent_age">
                     <initial namelist = "parent_age child_age"/>
                     <prompt> child is older than parent </prompt>
                </if>
           </filled>


Correct answer is A. <clear>.

 

 

17. Given the following code:

<form>
     <field name = "parent_age" type = "number">
          <prompt> What is the age of the parent? </prompt>
     </field>
     <field name = "child_age" type = "number" >
          <prompt> What is the age of the child? </prompt>
     </field>
     <filled> [_____] </filled>
</form>

Insert into the blank a <submit> element that sends both parent_age and child_age to the server and then transitions to library/application3.vxml





  Correct answer is A. <submit>

 

 

18. Given the following CCXML code:

<?xml version="1.0" encoding="UTF-8"?>
<ccxml xmlns="http://www.w3.org/2002/09/ccxml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.w3.org/2002/09/ccxml http://www.w3.org/TR/ccxml/ccxml.xsd" version="1.0">

     <var name = “voiceApp” expr = "'myApp.vxml'"/>
     <eventprocessor>
          <transition event = [_____] name = "evt">
               <if cond = "evt.callerid == ‘tel:+8005551234' ">
                     <assign name = "voiceApp" expr = "'blocked.vxml'"/>
               </if>
               <accept connectionid = "evt.callid"/>
          </transition>

          <transition event = "connection.connected">
               <dialogstart src = "voiceApp" />
          </transition>

          <transition event = "dialog.exit">
               <exit/>
          </transition>

     </evenprocessor>
</ccxml>

Which event should be placed in the blank in order to determine whether to accept the call or to block the call?





 Correct answer is D. Lesson 21.2.

 

19. Given the following code:

<?xml version="1.0" encoding="UTF-8"?>
<ccxml xmlns="http://www.w3.org/2002/09/ccxml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.w3.org/2002/09/ccxml http://www.w3.org/TR/ccxml/ccxml.xsd" version="1.0">

     <eventprocessor>

          <transition event = "ccxml.loaded" >
               <createcall dest = "'tel:+8009999999'"/>
          </transition>

          <transition event = "[________]">
               <dialogstart src = "voiceApp" />
          </transition>

          <transition event = "dialog.exit">
               <exit/>
          </transition>

     </eventprocessor>
</ccxml>

What event should be placed in the blank space to trigger starting the dialog voiceApp?





  Correct answer is C. Lesson 21.2.

 

20. Given the following VoiceXML code

<form id="call_transfer">
    <transfer name="call_ajax" dest="tel:+18005559999" connecttimeout="30s" bridge="[_____]">
       <filled>
           <if cond="call_ajax == 'busy'">
                <prompt>
                 The Ajax line is busy. Please call again later.
                </prompt>
            <elseif cond="call_ajax == 'noanswer'"/>
                <prompt>
                      Ajax cannot answer the phone now. Please call again later.
                </prompt>
            </if>
        </filled>
   </transfer>
</form>

 

What is the value for the bridge attribute?





 Correct answer is C. <transfer>


21. An application consists of





 Correct answer is C. Lesson 3.4 .

22. Which grammar matches exactly all of the following utterances?

     the big book of poems
     the small book of poems
     the big book of verse
     the small book of verse

A. <grammar version = "2.0" type = " application/srgs+xml " root = "referencebook" >
                <rule id = "referencebook" >
                     <item> the </item>
                     <one-of>
                            <item> big </item>
                            <item> small </item>
                     </one-of>
                     <item> book of </item>
                     <one-of>
                            <item> poems </item>
                            <item> verse </item>
                     </one-of>
                </rule>
          </grammar>

B. <grammar version = "2.0" type = " application/srgs+xml " root = "referencebook">
               <rule id = "referencebook">
                    <one-of>
                          <item> the big book of poems </item>
                          <item> the small book of verse </item>
                    </one-of>
                </rule>
           </grammar>

C. <grammar version = "2.0" type = " application/srgs+xml " root = "referencebook" >
                <rule id = "referencebook">
                     <item repeat "1-7" >
                            <one-of>
                                   <item> the </item>
                                   <item> big</item>
                                   <item> small </item>
                                   <item> book of </item>
                                   <item> verse </item>
                                   <item> poems </item>
                           </one-of>
                    </item>
               </rule>
          </grammar>


 Correct answer is A. Lesson 14.4 and Lesson 14.5.3.

 

23. Given the following grammar named itinerary.grxml :

<grammar version = "2.0" type = "application/srgs+xml" root = "flight" >
     <rule id = "flight" >
          From <ruleref uri = "#city1"/> to <ruleref uri = "#city2"/>
     </rule>
     <rule id = "city1" scope = "public" >
          <one-of>
               <item> Chicago </item>
               <item> Boston </item>
          </one-of>
     </rule>
     <rule id = "city2" >
          <one-of>
               <item> Alanta </item>
               <item> Seattle </item>
          </one-of>
     </rule>
</grammar>

Which of the following are all of the legal references from within a VoiceXML application?


B. src = "itinerary.grxml" and src = "itinerary .grxml#city1"
C. src = "itinerary.grxml" and src = "itinerary .grxml#city2"
D. src = "itinerary.grxml" src = "itinerary.grxml#city1" and src = "itinerary.grxml#city2"

  Correct answer is B. See Lesson 14.5.2. Rule "city2" defaults to private and can not be accessed publically.

 

24. Given the following VoiceXML document:

<form id = "birthmonth">
     <subdialog name="month_name" [________] />
</form>

<form id="get_month">
     <field  name = "month">
          <prompt> What month? </prompt>
          <grammar version = "1.0" type="application/srgs+xml" root = "month">  
              <rule id = "month">
                   <one-of>
                        <item>January</item>
                        …
                        <item>December</item>
                   </one-of>
                 </rule>
           </grammar>
           <filled>
                <return namelist="month"/>
           </filled>
     </field>
</form>

What should be placed into the blank to invoke the get_month subdialog?





  Correct answer is A. <subdialog>

 

25. Given the following VoiceXML code fragment

<field name = "size" >
     <grammar src = “size.grxml”/>
     <prompt count = " [____] " > What size? </prompt>
     <prompt count = " [____] " > What size? Small, medium, or large?</prompt>
</field>

What should be placed in the two boxes to specify a tapered (escalating) prompt?





 Correct answer is B. <prompt>

 

26 Given the following code:

<vxml …>
     [ A ]
     <form ….>
          <nomatch> Please try again </nomatch>
          [ B ]
          <field … >
               [ C ]
          </field>
          <filled>
                [ D ]
         </filled>
     </form>
</vxml>

  

Where should the following event handler be placed to override the event handler in the above VoiceXML code?

     <nomatch> Do you want size small? Yes or no? </nomatch>





  Correct answer is C. <catch>

27 Which of the following generates a user-defined event?





 Answer is A. <throw>

28 Given the following code:

<form id = "questionnaire">
   <catch event = "noinput">           
        <prompt> Catch message 1.</prompt>
   </catch>     
   <field name = "question1" type = "number">
         <prompt> Question 1? </prompt>
         <catch event = "noinput">           
             <prompt> Catch message 2.</prompt>
        </catch>
   </field>
   <field name = "question2" type = "number" >
        <prompt> Question 2?</prompt>
   </field>
</form>

Which of the following dialogs can be produced by the above VoiceXML code?

A. Computer: Question 1?
           Human: (no response)
          Computer: Catch message 2
          Human: 14
          Computer: Question 2?
          Human: (no response)
          Computer Catch message 1
          Human: 12

B. Computer: Question 1?
           Human: (no response)
          Computer: Catch message 1
          Human: 14
          Computer: Question 2?
          Hum an: (no response)
          Computer Catch message 1
          Human: 12

C. Computer: Question 1?
           Human: (no response)
          Computer: Catch message 1
          Human: 14
          Computer: Question 2?
          Human: (no response)
          Computer Catch message 2
          Human: 12

D. Computer: Question 1?
           Human: (no response)
          Computer: Catch message 2
          Human: 14
         Computer: Question 2?
          Human: (no response)
          Computer Catch message 2
          Human: 12

 Correct answer is A. Lesson 11.3.

 

29. Which of the following segments will produce the following output to a log?

     value of quantity is 13



B. <var name = "quantity" value = "13" />
           <log> value of quantity is <value expr = "quantity"/> </log>



  Correct answer is B. <log>

 

30. Which of the following rules recognizes a three-digit number where each digit has the value of either “333” or “555”

A. <rule id = "three_digit_number" repeat = "3-3" >
                <item repeat = " 3-3 " >
                       <one-of>
                               <item> 3 </item>
                               <item> 5 </item>
                       </one-of>
                </item>
           </rule>

B. <rule id = "three_digit_number" >
                <item repeat = "3-" >
                       <one-of>
                             <item> 3 </item>
                             <item> 5 </item>
                       </one-of>
                 </item>
          </rule>

C. <rule id = "three_digit_number" >
                <one-of repeat = "3-3" >
                      <item> 3 </item>
                      <item> 5 </item>
                </one-of>
           </rule>

D. <rule id = "three_digit_number" >
                <one-of>
                       <item repeat = "3-3" > 3 </item>
                       <item repeat = "3-3" > 5 </item>
                </one-of>
          </rule>

 Correct answer is D. <item>

 

31. Given the following SRGS rules:

<rule id = "size" >
     <one-of>
          <item> small </item>
          <item> medium</item>
          <item> large</item>
     </one-of>
</rule>

<rule id = "drink" >
     <one-of>
          <item> orange juice </item>
          <item> milk</item>
          <item> soda</item>
     </one-of>
</rule>

and the utterance

     large soda

Which grammar root rule matches the utterance?

A. <rule id = "root" scope = "public" >
           <rule src = "#size"/>
           <rule src = "#drink"/>
           </rule>

B. <rule id = "root" scope = "public" >
                size
                drink
           </rule>

C. <rule id = "root" scope = "public" >
                <ruleref id = "#size "/>
                <ruleref id = "#drink "/>
           </rule>


D. <rule id = "root" scope = "public" >
                <ruleref uri = "#size "/>
                <ruleref uri = "#drink "/>
           </rule>

  Correct answer is D. <ruleref> and Lesson 14.7.

 

32. Given the following grammar rule:

<rule id = "size" >
     <item repeat = "0-2" > very </item>
          <one-of>
               <item> red</item>
               <item> green</item>
               <item> blue</item>
          </one-of>
     </item>
     balloon
</rule>

 

Which of the following input produces the associated output?

          Speech input                                                 Output





  Correct answer is B. Lesson 14:  Grammars

 

33. Which rule accepts each of the following speech inputs and produces the associated output?

Speech input                      Output


blue               produces      blue
green blue      produces      green blue
blue green      produces      blue green

A. <rule id = "size" >
                <item repeat = "1-2">
                       <one-of>
                              <item> green</item>
                              <item> blue</item>
                       </one-of>
                </item>
           </rule>

B. <rule id = "size" >
                <one-of>
                     <item> green</item>
                     <item> blue</item>
                     <item> green</item>
                     <item> blue</item>
                </item>
          </rule>

C. <rule id = "size" >
                <one-of>
                     <item repeat = "1-2" > green</item>
                     <item repeat = "1-2" > blue</item>
                </one-of>
          </rule>


D. <rule id = "size" >
                <item repeat = "1-2">
                     <item> green</item>
                     <item> blue</item>
                </item>
          </rule>

  Correct answer is A. Lesson 14:  Grammars

 

34. What will the following VoiceXML code produce?

     <audio src= "warning.wav" >This is a warning</audio>





  Correctd answer is C. <audio>

 

35. Given the VoiceXML fragment

     <prompt>
          Hello <break/>my name is Ann.
     </prompt>

Insert a SSML to slow the speech by 10 percent.



B. <prompt>
                <prosody rate = "-10%">
                    Hello <break/>my name is Ann.
               </prosody>
          </prompt>

C. <prompt>
                <prosody speed = "-10">
                      Hello <break/>my name is Ann.
               </prosody>
          </prompt>

D. <prompt>
                <prosody speecd = "-10%">
                     Hello <break/>my name is Ann.
                </prosody>
          </prompt>

The corrrect answer is B. <prosody>

 

36. Given the following VoiceXML code:


     <object name = "voice_message" classid = "method://send" data = "messasge" type = "audio/x-wav"/>        
             [_________]  
     </object>

Which code fragment allows you to pass the variable “to” to the object?




Correct answer is C.   <object>

 

37. Given the following ECMAScript

<script>
   <![CDATA[
          var a = "17";
    ]]>
</script>

Which of the following presents the user with the contents of the variable?

A. <prompt>
                The value of the a variable is <parm name = "a "/ >
          </prompt>

B. <prompt>
                The value of the a variable is <value name = "var "/ >
          </prompt>

C. <prompt>
                The value of the a variable is <var name = "a "/ >
          </prompt>

D. <prompt>
                The value of the a variable is <value expr = "a "/ >
          </prompt>

 Correct answer is D. <value>

 

38. Given the VoiceXML code

<menu>
     <prompt> stock quotes or airport codes? </prompt>
     <choice next = "stock_quote.vxml" [_____] > stock quotes </choice>
</menu>

What goes in the blank so the stock_quote.vxml file is downloaded into the cache when it is required, possibly causing a delay in the user interface?




 Correct answer is A. Lesson 12.1.

 

39. What is the result if the user responds with “9” to the first prompt?

<form>
     <field name = "A" type = "number"> <prompt> What is A? </prompt> </field>
     <field name = "B" type = "number"> <prompt> What is B? </prompt> </field>
     <filled>
          <if cond = "A &gt; 5"> <clear namelist = "B"/></if>
     </filled>
</form>





Correct answer is D. <clear> and <if>

40. Given the following grammar expressed using the XML format:

<item repeat="0-1">
     <item repeat="0-1"> very </item>
     big
</item>
pizza
<item repeat="0-">
     <item repeat="0-1">
          <one-of>
               <item>with</item>
               <item>and</item>
         </one-of>
     </item>
     <ruleref uri="#topping"/>
</item>

What is the equivalent grammar expressed using the ABNF format?





  Correct answer is A. Lesson 14.13.

 41. What is the purpose of the <initial> element?




Answer: A. <initial>

42. What should occur when a user fails to completely answer a prompt appearing in the <initial> element of a mixed initiative dialog?






Answer: B 20.8.6. Prompt for missing parameters

43. Given the following VoiceXML code:

<form id = "gadget">
     <field name = "size" type = "digits">

            <prompt>How many ? </prompt>
     </field>
     <filled>
          <if cond = "size = '3'"><clear namelist = "quanity" /> </if>
     </filled>
</form>

Which of the following are true?




Answer: A <clear>

44. Which two rule recognize both of these phrases?

     a sweet candy bar
     a big sweet candy bar




Answer: A and B 14.11.  Repeat and Optional

45. A <grammar> element may be a child of which of the following elements?

A. <field>
B. <choice>
C. <record>
D. <link>
E. <help>

A, B, C, D, but not E <field> <choice> <record> <link> <help>

46. Which of the following VoiceXML code snippets are equivalent?

A. <form id = "get_data">
               <field name = "account_number" type = "number">
                    <prompt> What is your account number?</prompt>
               </field>
               <catch event = "nomatch">
                      <prompt>I did not hear you. </prompt>
                      <reprompt/>
               </catch>
           </form>

B. <form id = "get_data">
               <field name = "account_number" type = "number">
                    <prompt> What is your account number?</prompt>
               </field>
               <nomatch>
                      <prompt>I did not hear you. </prompt>
                      <reprompt/>
               </nomatch>
         </form>

C. <form id = "get_data">
               <field name = "account_number" type = "number">
                    <prompt> What is your account number?</prompt>
               </field>
               <catch event = "nomatch">
                      <reprompt/>
               </catch>
         </form>

D. <form id = "get_data">
               <field name = "account_number" type = "number">
                    <prompt> What is your account number?</prompt>
               </field>
               <nomatch>
                      <prompt>I did not hear you. </prompt>
               </nomatch>
         </form>

Answer: A and B <catch>

47. In the <grammar> element, which of the following indicates that the grammar is fetched when it is needed?

as-needed"


Answer: C 12.1.  When to Fetch Needed Resources into the Cache

48. Which of the following <subdialog> elements will execute form get_month in the same document as the <subdialog> element?

A. <subdialog name="month_name" src="get_month"/>
B. <subdialog name="month_name" src="#get_month"/>
C. <subdialog name="get_month"/>
D. <subdialog name="#get_month"/>

Answer: B <subdialog>

49. Which two of the following are correct VoiceXML forms?

A. <form id = "get_data">
               <field name = "account_number" type = "number">
                    <prompt> What is your account number?</prompt>
               </field>
               <goto next= "#get_more_data"/>
         </form>

B. <form id = "get_data">
               <field name = "account_number" type = "number">
                    <prompt> What is your account number?</prompt>
               </field>
               <goto next = "get_more_data"/>
         </form>

C. <form id = "get_data">
               <field name = "account_number" type = "number">
                    <prompt> What is your account number?</prompt>
               </field>
               <filled><goto next = "#get_more_data"/></filled>
         </form>

D. <form id = "get_data">
               <field name = "account_number" type = "number">
                    <prompt> What is your account number?</prompt>
               <filled> <goto next = "#get_more_data"/></filled>
               </field>
         </form>

Answer: C and D. <goto> is executable content, and thus must be inside of <filled>

50. Which two of the following assign the same value to the variable size?




</if>

Answer: A and B 10.2.  Declaring, Initializing and Accessing Variables in VoiceXML
10.5.  Declaring, Initializing, and Accessing Variables in ECMAScript

 

51. Which of the following will transfer control to menu3 within the same document?




D. <filled> <var name = "count" expr = "3"/> <goto expr = " '#' + 'menu' + count" /> </filled>

Answer: D. <goto>

52. How does the developer specify a <grammar> element to enable a user to say a word described in the grammar even if the user is interacting within another document in the application?




Answer: D. 15.2.  Grammar Scope

53. Given that a grammar contains the following rules

<rule id = "complete_name">
    <ruleref uri = "first_name"/>
    <ruleref uri = "last_name"/>
<rule id = "first_name">  <item> jack </item> </rule>
<rule id = "last_name" <item> tailor </item> </rule>

What attribute must be specified in the <grammar> element to recognize the following:

jack in the spoken utterance "jack hudson"
tailor in the spoken utterance "bob tailor"
jack hudson in the spoken utterance "jack hudson"




"incomplete"

Answer: B. <grammar>

54. What is the purpose of the <reprompt> element?





 55. Given a <grammar> element with scope = "dialog", where are the grammars active?




Answer: B <grammar>

56. Change the following prompt element so the first "Dr." is pronounced as "doctor" and the second "Dr." is pronounced as drive by using the <sub> element

Dr. Smith lives at 214 Elm Dr.




Answer: A <sub>

57. What will happen if the confidencelevel is set to value 1.0?

by the speech recognition engine, resulting in additional nomatch events
by the speech recognition engine, resulting in additional noinput events
by the speech recognition engine, resulting in faster task completion time
by the speech recognition engine, resulting in additional false recognitions.

Answer is A.
13.1.  Generic Speech Recognizer Properties

58. What is the purpose of the termchar property"?




Answer is B. 13.2.  Generic DTMF Recognizer Properties

59. Which of the following elements use the fetechhint, fetchtimeout, maxage, and maxstale attributes?




Answer is A. <audio>, <grammar> , <script>, <object>, <subdialog>, <speak>, <prompt>

60. A document grammar scope is specified by whichof the following:




Answer: A <grammar>

  © 2002 Larson Technical Services