Skip to content
Time limit: 0

Quiz Summary

0 of 6 Questions completed

Questions:

Information

You have already completed the quiz before. Hence you can not start it again.

Quiz is loading…

You must sign in or sign up to start the quiz.

You must first complete the following:

Results

Quiz complete. Results are being recorded.

Results

025507560
You have given 0 correct
answers out of 6 Quiz questions.

Time has elapsed

You have reached 0 of 0 point(s)0

Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)

Categories

  1. Not categorized 0%

Analysing Algorithms

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  1. Question no 1 / 6
    1. Question
    1 point(s)

    What technique do we use to identify errors in our code?

    Correct
    Incorrect
  2. Question no 2 / 6
    2. Question
    1 point(s)

    True or False: We cannot use flowcharts when trying to identify errors in an algorithm.

    Correct
    Incorrect
  3. Question no 3 / 6
    3. Question
    1 point(s)

    Either through visual inspection or using a trace table, identify the purpose of this algorithm.

    number1 ← USERINPUT
    number2 ← USERINPUT
    result ← (number1 + number2) / 2
    OUTPUT result
    Correct
    Incorrect
  4. Question no 4 / 6
    4. Question
    2 point(s)

    Complete the trace table for this algorithm, when the numbers 2, 9, 1 & 3 are input.

    number ← USERINPUT
    IF number < 5 THEN
       OUTPUT 'A'
    ELSE
       OUTPUT 'B'
    ENDIF
    Number Output
    2
    9
    1
    3
    Correct
    Incorrect
  5. Question no 5 / 6
    5. Question
    2.5 point(s)

    Complete the trace table for this algorithm.

    total ← 0
    FOR x ← 0 TO 4
          total ← total + 1
    ENDFOR
    x total
      0
    0
    1
    2
    3
    4
    Correct
    Incorrect
  6. Question no 6 / 6
    6. Question
    3 point(s)

    Complete the trace table for this algorithm.

    FOR counter ← 0 TO 4
          result ← counter * 2
    ENDFOR
    counter result
    0
    1
    2
    3
    4
    Correct
    Incorrect