PYTHON QUIZ 5 3 Created on May 24, 2020 By Sirjana GhimireAcharya PYTHON QUIZ 5 1 / 10 Which of these collections defines a DICTIONARY? {"name": "apple", "color": "green"} ["apple", "banana", "cherry"] ("apple", "banana", "cherry") {"apple", "banana", "cherry"} 2 / 10 2. Which collection is ordered, changeable, and allows duplicate members? DICTIONARY LIST TUPLE SET 3 / 10 3. Which collection does not allow duplicate members? List SET TUPLE 4 / 10 4. How do you start writing a while loop in Python? while (x > y) while x > y { while x > y: x > y while { 5 / 10 5. Which statement is used to stop a loop? break return exit stop 6 / 10 6. Which of these is not a Python datatype? int long decimal float 7 / 10 7. Python does not support a character type; a single character is treated as strings of length one. False True 8 / 10 8. Select the correct output of the following String operationsstr1 = 'Welcome'print (str1[:6] + ' PYnative') Welcome PYnative Welcome PYnative Welcom PYnative WelcomePYnative 9 / 10 9. Select the correct output of the following String operationsstr1 = "my isname isisis jameis isis bond";sub = "is";print(str1.count(sub, 4)) 5 6 7 10 / 10 10. Which of these is not a core data type? Lists Dictionary Tuples Class Your score is The average score is 7% LinkedIn Facebook Twitter 0% Restart quiz