DBS written test:-

1)
var1 = True
var2 = False
var3 = False

if var1 or var2 and var3:
 print("True")
else:
 print("False")

 output:- True

2)
var1 = lambda var: var * 2
ret = lambda var: var * 3
result = 2
result = var1(result)
result = ret(result)
result = var1(result)
print(result)

output:- 24

3)
class abc(object):
    def __init__(self):
        self.x=5
pass

c = abc()
print c.x
print c.x

output :-
5
5

4)select the following python module which doesnt come default??
  output:- mechanicz

5)__doc__  attribute  use ??

6)PyChecker use in python ??

7)Python indent related question

8) one question realted to set

9)One question realted to tuple

10)One questio related to exception handling

11) One question related to syntax error