Which module in the python standard library parses options received from the command line?
  Anonymous Quiz
    16%
    getarg
      
    27%
    getopt
      
    29%
    main
      
    29%
    os
      
    What arithmetic operators cannot be used with strings in Python?
  Anonymous Quiz
    17%
    *
      
    39%
    -
      
    8%
    +
      
    36%
    All
      
    π4π3π₯°3
  What will be the output of the following Python code?
print("abc. DEF".capitalize())
  print("abc. DEF".capitalize())
Anonymous Quiz
    13%
    Abc. def
      
    5%
    abc. def
      
    15%
    Abc. Def
      
    67%
    ABC. DEF
      
    π6
  Which of the following statements is used to create an empty set in Python?
  Anonymous Quiz
    21%
    ( )
      
    28%
    { }
      
    21%
    [ ]
      
    30%
    Set( )
      
    π7π1π1
  To add a new element to a list we use which Python command?
  Anonymous Quiz
    3%
    list1.addEnd(5)
      
    6%
    list1.addLast(5)
      
    75%
    list1.append(5)
      
    16%
    list1.add(5)
      
    What will be the output of the following Python code?
print('*', "abcde".center(6), '*', sep='')
  print('*', "abcde".center(6), '*', sep='')
Anonymous Quiz
    22%
    * abcde *
      
    34%
    *abcde *
      
    18%
    * abcde*
      
    26%
    * abcde *
      
    π6
  Which one of the following is the use of function in python?
  Anonymous Quiz
    5%
    Functions donβt provide better modularity for your application
      
    8%
    you canβt also create your own functions
      
    61%
    Functions are reusable pieces of programs
      
    27%
    All
      
    π6
  What is the maximum possible length of an identifier in Python?
  Anonymous Quiz
    23%
    79 characters
      
    16%
    31 characters
      
    25%
    63 characters
      
    36%
    None
      
    What are the two main types of functions in Python?
  Anonymous Quiz
    3%
    System function
      
    3%
    Custom function
      
    92%
    Built-in function & User defined function
      
    2%
    User function
      
    π2
  Which of the following is a Python tuple?
  Anonymous Quiz
    24%
    {1, 2, 3}
      
    5%
    {}
      
    58%
    (1, 2, 3)
      
    13%
    [1, 2, 3]
      
    π4
  What will be the output of the following Python code snippet?
z=set('abc$de') 'a' in z
  z=set('abc$de') 'a' in z
Anonymous Quiz
    18%
    Error
      
    57%
    True
      
    13%
    False
      
    12%
    No output
      
    π4
  What will be the output of the following Python expression?
round(4.576)
  round(4.576)
Anonymous Quiz
    23%
    4
      
    40%
    4.6
      
    31%
    5
      
    6%
    4.5
      
    Hey folks π,
Most of you know that we organized our Programming Quiz League where you could compete with other members of our community.
Finding sponsors which would buy valuable prizes for our winners π is going very slow π so I will probably buy modest prizes by myself.
If you have any suggestions what could i buy to winners please write in comments or send me a DM.
That said, I also decided to give a chance to people who maybe didn't have time or didn't know about our quiz league. Anyone who missed some quiz round can take it now. Both old winners and potential new winner would get prizes π
Here is a list of all 10 quiz rounds:
1st round General Programming Knowledge
2nd round Data Structures (beginner level)
3rd round Java Quiz
4th round Database Management System
5th round Python Quiz
6th round HTML Quiz
7th round Javascript Quiz
8th round Data structures (advanced level)
9th round Data Science
10th round C/C++/OOP
After 10-15 days I will update results in this sheet.
PS. I will send this message to few or our other channels so I make sure everybody see it, I hope you don't mind.
Good luck π
  
  Most of you know that we organized our Programming Quiz League where you could compete with other members of our community.
Finding sponsors which would buy valuable prizes for our winners π is going very slow π so I will probably buy modest prizes by myself.
If you have any suggestions what could i buy to winners please write in comments or send me a DM.
That said, I also decided to give a chance to people who maybe didn't have time or didn't know about our quiz league. Anyone who missed some quiz round can take it now. Both old winners and potential new winner would get prizes π
Here is a list of all 10 quiz rounds:
1st round General Programming Knowledge
2nd round Data Structures (beginner level)
3rd round Java Quiz
4th round Database Management System
5th round Python Quiz
6th round HTML Quiz
7th round Javascript Quiz
8th round Data structures (advanced level)
9th round Data Science
10th round C/C++/OOP
After 10-15 days I will update results in this sheet.
PS. I will send this message to few or our other channels so I make sure everybody see it, I hope you don't mind.
Good luck π
Quiz Directory
  
  General knowledge programming quiz
  10 questions
π2
  Which of the following is a feature of Python DocString?
  Anonymous Quiz
    7%
    In Python all functions should have a docstring
      
    22%
    Docstrings can be accessed by the __doc__ attribute on objects
      
    24%
    It gives convenient way of associating documentation with Python modules,functions, classes,methods
      
    48%
    All
      
    What will be the output of the following Python code?
print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
  print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
Anonymous Quiz
    23%
    Hello (βfooβ, βbinβ) and (βfooβ, βbinβ)
      
    21%
    Error
      
    47%
    Hello foo and bin
      
    8%
    None
      
    π2
  π2
  Which of the following is the use of id() function in python?
  Anonymous Quiz
    8%
    Every object in Python doesnβt have a unique id
      
    71%
    In Python Id function returns the identity of the object
      
    7%
    None
      
    15%
    All
      
    The process of pickling in Python includes ____________
  Anonymous Quiz
    47%
    conversion of a Python object hierarchy into byte stream
      
    15%
    conversion of a datatable into a list
      
    30%
    conversion of a byte stream into Python object hierarchy
      
    8%
    conversion of a list into a datatable