What will be the output?
print(list([]))
  print(list([]))
Anonymous Quiz
    47%
    []
      
    8%
    [[...]]
      
    31%
    [[]]
      
    10%
    list([])
      
    4%
    Check answer
      
    👍1
  How many elements will be in the tuple tuple('aabc')
  Anonymous Quiz
    32%
    1
      
    20%
    3
      
    27%
    4
      
    16%
    You cannot create a tuple like this
      
    4%
    Check answer
      
    👍2
  What will be the output?
print(5 / float('inf'))
  print(5 / float('inf'))
Anonymous Quiz
    24%
    0.0
      
    3%
    5
      
    13%
    5.0
      
    13%
    float('inf')
      
    41%
    Error
      
    5%
    Check answer
      
    👍2
  What will be the output?
print(dir(int) == dir(5))
  print(dir(int) == dir(5))
Anonymous Quiz
    48%
    True
      
    31%
    False
      
    14%
    Error
      
    7%
    Check answer
      
    👍1
  What will be the output?
print(type(iter([1, 2, 3])))
  print(type(iter([1, 2, 3])))
Anonymous Quiz
    15%
    <class 'list'>
      
    33%
    <class 'list_iterator'>
      
    45%
    <class 'iterator'>
      
    2%
    <class 'map'>
      
    5%
    Check answer
      
    🦄1
  What will be the output?
print(1e3)
  print(1e3)
Anonymous Quiz
    24%
    1e3
      
    35%
    1000.0
      
    26%
    1000
      
    10%
    0.001
      
    5%
    Check answer
      
    🦄1
  Which option to import is not suitable, if we want to run the following line:
print(pi)
  print(pi)
Anonymous Quiz
    29%
    from math import pi
      
    16%
    form math import *
      
    30%
    from math import pi as PI
      
    20%
    All are suitable
      
    4%
    Check answer
      
    👍1👎1
  What methods does range have?
  Anonymous Quiz
    6%
    start, stop
      
    48%
    start, stop, step
      
    9%
    count, index
      
    7%
    append, remove
      
    26%
    range hasn't methods
      
    4%
    Check answers
      
    🦄1
  👍1
  What will be the output?
print(complex(1.1) + 6j)
  print(complex(1.1) + 6j)
Anonymous Quiz
    4%
    1.7
      
    10%
    7.1
      
    63%
    (1.1) + 6j
      
    15%
    Error
      
    8%
    Check answer
      
    👍1
  What method exists to add to string?
  Anonymous Quiz
    14%
    insert
      
    24%
    add
      
    4%
    push
      
    30%
    append
      
    24%
    none
      
    3%
    Check answer
      
    👍1
  What will be the output?
print(hex(int('A', 16) + 5))
  print(hex(int('A', 16) + 5))
Anonymous Quiz
    7%
    15
      
    31%
    0xf
      
    12%
    F
      
    14%
    21
      
    26%
    Error
      
    10%
    Check answer
      
    👍1
  What will be an exception?
  Anonymous Quiz
    10%
    int(5.2)
      
    23%
    int('5.2')
      
    8%
    int('5')
      
    11%
    int(5.2 - 0.20)
      
    42%
    Nothing
      
    6%
    Check answer
      
    🦄1
  What will be the output?
print(0,5 * 8)
  print(0,5 * 8)
Anonymous Quiz
    52%
    4
      
    22%
    0, 40
      
    10%
    0 40
      
    13%
    Error
      
    2%
    Check answer
      
    ❤1👍1
  Which of that can't the sorted function take as an argument?
  Anonymous Quiz
    17%
    str
      
    21%
    tuple
      
    15%
    dict
      
    21%
    set
      
    19%
    All
      
    6%
    Check answer
      
    👍1
  Which operation is the highest priority among the listed?
  Anonymous Quiz
    12%
    & (Bitwise AND)
      
    14%
    - (Unary minus)
      
    41%
    ** (exponentiation)
      
    27%
    not (Logical negation)
      
    7%
    Check answer
      
    👍1
  What will be the output?
s = [1, 9, 5]
print(s, s.sort())
  s = [1, 9, 5]
print(s, s.sort())
Anonymous Quiz
    18%
    [1, 9, 5] None
      
    11%
    [1, 5, 9] None
      
    66%
    [1, 9, 5] [1, 5, 9]
      
    4%
    [1, 5, 9] [1, 9, 5]
      
    1%
    Check answer
      
    🦄1
  👍1
  What will be the output?
eval('print(0 / 5))', {'__builtins__': {}})
  eval('print(0 / 5))', {'__builtins__': {}})
Anonymous Quiz
    20%
    Will be a ZeroDivisionError
      
    19%
    Will be a NameError
      
    16%
    Will be a TypeError
      
    25%
    This code will not output anything and will not throw exception
      
    19%
    Check answer
      
    👍1
  😁2
  Which attribute integer variable hasn't?
  Anonymous Quiz
    18%
    real
      
    33%
    imag
      
    10%
    abs
      
    23%
    denominator
      
    15%
    Check answer
      
    🦄1