Quiz day 3


  1. This term refers to an individual item in a list.

  2. element
    bin
    cubbyhole
    slot

  3. In Python, lists are:

  4. mutable data structures
    static data structures
    dynamic data structures
    b and c both

  5. This is the last index in a list.

  6. 1
    0
    99
    The size of the list minus one

  7. When the * operator’s left operand is a list and its right operand is an integer, the operator bec

  8. The repetition operator
    The multiplication operator
    The initialization operator
    Nothing—the operator does not support those types of operands.

  9. This list method adds an item to the end of an existing list.

  10. add
    insert
    append
    add_to

  11. Which of the following is not a property of tuples?

  12. Tuples are immutable data structures
    Tuples do not support functions like len, min, max
    Tuples can not be accessed just like lists
    Processing tuples is faster than lists

  13. Which of the following statements creates a tuple?

  14. values = [1, 2, 3, 4]
    values = {1, 2, 3, 4}
    values = (1)
    values = (1,)

  15. This function returns the length of a string.

  16. length
    lengthof
    len
    size

  17. This string method returns a copy of a string with all the alphabetic letters converted to upperca

  18. uppercase()
    upper_case()
    upper()
    case_upper()

  19. This operator determines whether element is contained inside string.

  20. contains
    is_in
    in
    is

Popular posts from this blog

BIG DATA

C plus plus notes