Python Proficiency Explore your knowledge of the popular programming language Python with this quiz. Test your understanding of its essential constructs, string manipulation and more! rihanna80 published on April 10, 2023 Stacked 1/13 What is the data type used to store strings in Python? int float boolean str 2/13 Besides numbers, what are the two types of data in Python? ints and floats lists and dictionaries strings and floats strings and collections 3/13 What type of loop is used when you know how many times you want to loop? while loop for loop do-while loop foreach loop 4/13 Which of the following does not exist in Python? switch if-else-if ladder ternary operator short-circuiting operators 5/13 Which of the following is not a function? print() input() list() myVar 6/13 What is the function for a logical operator OR used for in Python? return either one or the other return true if one expression is false return true if both expressions are true return true if either expression is true 7/13 What kind of Syntax is used in Python? Indentation-based Parentheses-based Bracket-based Semi-colon-based 8/13 Which of the following is not a variable type in Python? int bool list record 9/13 What is an attribute in Python? A predefined variable A property of a class An in-built function A global keyword 10/13 Which of the following is a valid use of the 'in' keyword in Python? Hint: 2 choices Checking if a number is contained in a range Checking if a string is contained in a list Checking if an elements is contained an integer Checking if an array is contained inside another array 11/13 Which of the following is used to persist data to disk in Python? Hint: 2 choices pickle cPickle Pickle json 12/13 Which of the following uses the least memory in Python? list tuple string dictionary 13/13 Which of the following is a valid type of exception in Python? Hint: 2 choices standard exception special exception built-in exception machine exception