placeholder image to represent content

Chapter - 9

Quiz by Srinivasan J

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
15 questions
Show answers
  • Q1

    __________________ function is used to know the data type of a python object.

    Users enter free text
    Type an Answer
    15s
  • Q2

    Iterating tuples is faster than list.

    true
    false
    True or False
    15s
  • Q3

    A _________ is a mutable and an unordered collection of elements without duplicates.

    Tuple

    List

    Set

    Dictionary

    15s
  • Q4

    A list is known as a _________________ data type.

    Users enter free text
    Type an Answer
    15s
  • Q5

    set_A={'A', 2, 4, 3, 'D', 'E'}

    set_B={'A', 'B', 'C', 'D', 'E',3}

    print(set_A - set_B)

    What will be the result of the above snippet ?

    { 'B', 'C',}

    {2, 4, 'B', 'C',}

    {2, 4}

    { 'A', 'D', 'E',3}

    15s
  • Q6

    The  Description of the function count ( ) is to return the number of similar elements present in the list.

    true
    false
    True or False
    15s
  • Q7

    View the attached image and answer.

    Question Image
    Answer Image
    Answer Image
    Answer Image
    Answer Image
    15s
  • Q8

    What will be the output of the following snippet ?

    Mylist=[34, 45, 48]

    Mylist=append(90)

    [34, 45, 48, 90]

    [45, 48, 90]

    [34, 45, 48]

    Error

    15s
  • Q9

    The elements of a list are _____________ whereas the elements of a tuple are _____________ .

    mutable, immutable

    mutable, mutable

    immutable, mutable

    immutable, immutable

    15s
  • Q10

    ______________ is a list containing another list as an element.

    Users enter free text
    Type an Answer
    15s
  • Q11

    List is an ordered collection of values enclosed within ___________ 

    none of these

    square brackets

    curly brackets

    parenthesis

    15s
  • Q12

    Which of the following operator is used for symmetric difference set operation in python ?

    caret (^) operator

    | operator

    & operator 

    minus (-) operator

    15s
  • Q13

    What will be the output of the following snippet ?

    MyList=[36,12,24,48]

    i=MyList.index(12)

    print(i)

    1

    0

    3

    2

    15s
  • Q14

    ________ function is used to delete elements of a list if its index is unknown .

    del statement

    clear( )

    del( )

    remove( )

    15s
  • Q15

    View the given image and answer.

    Question Image
    Answer Image
    Answer Image

    none of these

    Answer Image
    15s

Teachers give this quiz to your class