Advertisement
Guest User

Ejemplo de Codigo de Problema Drag and Drop

a guest
Aug 31st, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.30 KB | None | 0 0
  1. <problem>
  2.   <p> Allopurinol is a drug used to treat and prevent gout, a very painful form of arthritis. Once only a “rich man’s disease”, gout has become more and more common in recent decades – affecting about 3 million people in the United States alone. Deposits of needle-like crystals of uric acid in connective tissue or joint spaces cause the symptoms of swelling, stiffness and intense pain. Individuals with gout overproduce uric acid because they cannot eliminate it efficiently. Allopurinol treats and prevents gout by stopping the overproduction of uric acid through inhibition of an enzyme required for the synthesis of uric acid. </p>
  3.   <p> You are shown one of many possible molecules. On the structure of allopurinol below, identify the functional groups that are present by dragging the functional group name listed onto the appropriate target boxes on the structure. If you want to change an answer, you have to drag off the name as well. You may need to scroll through the names of functional groups to see all options. </p>
  4.   <customresponse>
  5.     <drag_and_drop_input no_labels="true" one_per_target="true" target_outline="true" img="/static/Allopurinol.gif">
  6.       <draggable can_reuse="true" label="methyl" id="1"/>
  7.       <draggable can_reuse="true" label="hydroxyl" id="2"/>
  8.       <draggable can_reuse="true" label="amino" id="3"/>
  9.       <draggable can_reuse="true" label="carboxyl" id="4"/>
  10.       <draggable can_reuse="true" label="aldehyde" id="5"/>
  11.       <draggable can_reuse="true" label="phosphate" id="6"/>
  12.       <draggable can_reuse="true" label="sulfhydryl" id="7"/>
  13.       <draggable can_reuse="true" label="phenyl" id="8"/>
  14.       <draggable can_reuse="true" label="none" id="none"/>
  15.       <target id="0" h="53" w="66" y="55.100006103515625" x="131.5"/>
  16.       <target id="1" h="113" w="55" y="140.10000610351562" x="181.5"/>
  17.     </drag_and_drop_input>
  18.     <answer type="loncapa/python">
  19. correct_answer = [
  20.     {'draggables': ['2'], 'targets': ['0' ], 'rule':'unordered_equal' },
  21.     {'draggables': ['none'], 'targets': ['1' ], 'rule':'unordered_equal' }]
  22. if draganddrop.grade(submission[0], correct_answer):
  23.     correct = ['correct']
  24. else:
  25.     correct = ['incorrect']
  26.     </answer>
  27.   </customresponse>
  28.   <solution>
  29.     <img src="/static/AllopurinolAnswer.gif"/>
  30.   </solution>
  31. </problem>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement