Computers

11th

grade

Image

List in Python

317
plays

25 questions

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

    Which of the following statement will create list?

    a. L1=list( )

    b. L1=[1,2,3,4]

    c. Both of the above

    d. None of the above

  • 2. Multiple Choice
    10 seconds
    1 pt

    Write the output of the following code : list(“welcome”)

    a. [‘w’, ‘e’, ‘l’, ‘c’, ‘o’, ‘m’, ‘e’]

    b. (‘w’, ‘e’, ‘l’, ‘c’, ‘o’, ‘m’, ‘e’)

    c. [‘welcome’]

    d. None of the above

  • 3. Multiple Choice
    20 seconds
    1 pt

    Write the output of the following code :

    >>> L=[“Amit”,”Anita”,”Zee”,”Longest Word”]

    >>> print(max(L))

    a. Zee

    b. Longest Word

    c. Error

    d. None of the above

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?