PYTHON QUIZ 6

40
Created on By Sirjana GhimireAcharya

PYTHON QUIZ 7

1 / 10

  1.  What is the output of the following code

x = 100
y = 50
print(x and y)

2 / 10

2. What is the output of the following code

print(int(2.999))

3 / 10

3. What is the output of print(abs(-45.300))

4 / 10

4. Select correct float number

5 / 10

5. What is the output of the following code?

sampleList = [10, 20, 30, 40]
del sampleList[0:6]
print(sampleList)

6 / 10

6. In Python, list is mutable

7 / 10

7. What is the output of the following

l = [None] * 20
print(len(l))

8 / 10

8. What is the output of the following

aList = [5, 10, 15, 25]
print(aList[::-2])

9 / 10

9. What is the output of the following code

sampleSet = {"Yellow", "Ornage", "Black"}
print(sampleSet[1])

10 / 10

10. The isdisjoint() method returns True if none of the items are present in both sets, otherwise, it returns False.

Your score is

The average score is 23%

0%