Python Fundamentals Quiz : Set – 1

Python Fundamentals Quiz : Set – 1

161

Python Fundamentals Quiz : Set 1

This Quiz checks your python fundamentals knowledge.

1 / 10

a = 1 + 2j

print(type(a))

2 / 10

a = 1

def dummy(): 
   a += 10
    print(a)

print(a)

3 / 10

a = 1

def dummy():
  a += 10
  print(a)

dummy()

4 / 10

a = 2
b = 3

print(a ^ b)

5 / 10

a = {"a":1, "b":2}
b = {"c":3, "d":4}

print(a + b)

6 / 10

t = [0] 
s1 = s2 = t
s1 += [1]
s2 += [1]

print(t)

7 / 10

a = [1,2,3]
b = [3,4,5]

print(a + b)

8 / 10

a = [1,2,2,3,2,9,6,5]
b = set(a)
c = [3,4,5,4]

print(len(b) + sum(c))

9 / 10

a = {1,2,3,3,4,5}
print(a[3])

10 / 10

a = [10,5,0,15,20]
b = a.sort()
print(b)

Your score is

The average score is 42%

0%

Leave a Reply

Your email address will not be published.