PYTHON QUIZ 5

3
Created on By Sirjana GhimireAcharya

PYTHON QUIZ 5

1 / 10

  1. Which of these collections defines a DICTIONARY?

2 / 10

2. Which collection is ordered, changeable, and allows duplicate members?

3 / 10

3. Which collection does not allow duplicate members?

4 / 10

4. How do you start writing a while loop in Python?

5 / 10

5. Which statement is used to stop a loop?

6 / 10

6. Which of these is not a Python datatype?

7 / 10

7. Python does not support a character type; a single character is treated as strings of length one.

8 / 10

8. Select the correct output of the following String operations

str1 = 'Welcome'
print (str1[:6] + ' PYnative')

9 / 10

9. Select the correct output of the following String operations

str1 = "my isname isisis jameis isis bond";
sub = "is";
print(str1.count(sub, 4))

10 / 10

10. Which of these is not a core data type?

Your score is

The average score is 7%

0%