Computers

11th

grade

Image

list

13
plays

7 questions

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

    What will be the output of following program:

    list1 = ["python", "list", 1952, 2323, 432]

    print(list1[1:4])

    ["python","list",1952,2323]

    [1952,2323,432]

    ["list",1952,2323]

    ["list",1952,2323,432]

  • 2. Multiple Choice
    30 seconds
    1 pt

    What will be the output of following program:

    list1 = ["python", "list", 1952, 2323, 432]

    print(list1[-5])

    list

    1952

    432

    python

  • 3. Multiple Choice
    30 seconds
    1 pt

    What will be the output of following code-

    a,b=[3,1,2],[5,4,6]

    print(a+b)

    [3,1,2]+[5,4,6]

    (3,1,2,5,4,6)

    [3,1,2,5,4,6]

    [54,6,3,1,2]

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?