Psuedocode

Cards (18)

  • What is the keyword used to define constants in pseudocode?
    CONST
  • Which pseudocode operator is used for integer division?

    DIV
  • What data structure starts with indices at zero?
    All
  • Which pseudocode function is used to generate a random number up to n?
    RANDOM(n)
  • How is a two-dimensional array element assigned a value in pseudocode?
    SET Array[1,2] TO value
  • What does the relational operator < signify in pseudocode?
    Less than
  • Which command reads input from a keyboard assuming the input is a string in pseudocode?

    RECEIVE name FROM (STRING) KEYBOARD
  • What symbol is used to comment in pseudocode?
    #
  • Which pseudocode syntax is used for initialising a one-dimensional array with predefined values?
    ARRAY [1,2,3,4,5]
  • In pseudocode, how is a procedure called?

    With its name
  • What does the IF <expression> THEN <command> END IF structure do?

    If expression is true then executes command
  • What does the logical operator AND do in pseudocode?
    Returns true if both conditions are true
  • Which function is not typically included in pseudocode for handling files
    Read
    Write
    Open
    Delete?
    DELETE
  • What pseudocode syntax is used for executing commands until a condition is true?

    REPEAT UNTIL
  • How are constants used in pseudocode?
    Their value is set once and cannot be changed throughout the program.
  • What pseudocode operator is used to concatenate strings?
    &
  • NOTES are added when we do not know the values yet.
  • Notes are added by surrounding a temporary value representative name with <>