Computers

11th -

12thgrade

Image

Tuples Part B

3
plays

12 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    What is the type of the following variable

    aTuple = ("Orange")

    print(type(aTuple))

    list

    tuple

    array

    str

  • 2. Multiple Choice
    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)

  • 3. Multiple Choice
    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

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?