lehrkraefte:blc:informatik:glf20:programmieren:if-else-quiz

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lehrkraefte:blc:informatik:glf20:programmieren:if-else-quiz [2020/10/28 07:38]
mirco.triner
lehrkraefte:blc:informatik:glf20:programmieren:if-else-quiz [2020/10/30 08:05] (current)
mirco.triner
Line 1: Line 1:
 ====== Quiz: Selektionen, if-else ====== ====== Quiz: Selektionen, if-else ======
  
-<quizlib id="quiz" rightanswers="[['a1'], ['3'], ['Or here? Or over here?'], ['10 11 12 13']]" submit="Check Answers">+<quizlib id="quiz" rightanswers="[['a0'], ['a3'], ['a3']]" submit="Check Answers">
  
 <question title="Welchen Wert hat X nach dem Ausführen des folgenden Codes?  <question title="Welchen Wert hat X nach dem Ausführen des folgenden Codes? 
Line 11: Line 11:
  x = x + 4 &lt;br&gt;  else: &lt;br&gt;    x = x + 3 &lt;br&gt;else: &lt;br&gt;  x = x + 2 &lt;br&gt;print(x) &lt;br&gt;" type="radio">0|4|2|3</question>  x = x + 4 &lt;br&gt;  else: &lt;br&gt;    x = x + 3 &lt;br&gt;else: &lt;br&gt;  x = x + 2 &lt;br&gt;print(x) &lt;br&gt;" type="radio">0|4|2|3</question>
  
-<question title="Was wird nach dem Ausführen des Programms auf der Konsole stehen?&lt;pre&gt;x = 3 &lt;br&gt;if ( x == 0 ):&lt;br&gt;  print (&quot;Am I here?&quot;)&lt;br&gt;elif ( x == 3 ):&lt;br&gt;  print (&quot;Or here?&quot;)&lt;br&gt;print (&quot;Or over here?&quot;)" type="radio">Am I here?|Or here?|Am I here? Or here?|Or here? Or over here|Am I here? Or over here?</question>  +<question title="Was wird nach dem Ausführen des Programms auf der Konsole stehen?&lt;pre&gt;x = 3 &lt;br&gt;if ( x == 0 ):&lt;br&gt;  print (&quot;Am I here?&quot;)&lt;br&gt;elif ( x == 3 ):&lt;br&gt;  print (&quot;Or here?&quot;)&lt;br&gt;print (&quot;Or over here?&quot;)" type="radio">Am I here?|Or here?|Am I here? Or here?|Or here? Or over here?|Am I here? Or over here?</question> 
- +
-<question title="Wie ist die Ausgabe nach dem Ausführen des Codes?&lt;pre&gt;for num in range(10, 14):&lt;br&gt;  for i in range(2, num):&lt;br&gt;    if num%i == 1:&lt;br&gt;      print(num)&lt;br&gt;      break" type="radio">10 11 12 13|11 13</question>+
          
        
  • lehrkraefte/blc/informatik/glf20/programmieren/if-else-quiz.1603867135.txt.gz
  • Last modified: 2020/10/28 07:38
  • by mirco.triner