Computers

11th -

12thgrade

Image

Tuples Part B

3
plays

12 questions

Show Answers
See Preview
  • Multiple Choice
    Please save your changes before editing any questions.
    30 seconds
    1 pt

    What is the type of the following variable

    aTuple = ("Orange")

    print(type(aTuple))

    list

    tuple

    array

    str

  • Multiple Choice
    Please save your changes before editing any questions.
    30 seconds
    1 pt

    What is the output of the following code

    aTuple = (100, 200, 300, 400, 500)

    aTuple[1] = 800

    print(aTuple)

    TypeError

    (100, 800, 200, 300, 400, 500)

    (800, 100, 200, 300, 400, 500)

  • Multiple Choice
    Please save your changes before editing any questions.
    30 seconds
    1 pt

    What is the output of the following tuple operation

    aTuple = (100, 200, 300, 400, 500)

    aTuple.pop(2)

    print(aTuple)

    (100, 200, 400, 500)

    (100, 300, 400, 500)

    Error

  • Explore all questions with a free account

    Already have an account?