Question: 1 . In Python what happens with your file if an error occurs while reading or writing? a . Python automatically closes the file to

1. In Python what happens with your file if an error occurs while reading or writing? a. Python automatically closes the file to avoid any damage in the file. b. The file is corrupted until you close your Jupyter Notebook. c. The file is permanently damaged. d. The file is corrupted until you stop to run the current cell in Jupyter Notebook. 2. In Python which data structure allows you to use any data type as a key? a. A string b. A dictionary c. A list d. An array 3. In Python which of the following code statements can create a dictionary called fruits with the name of the fruit as a key and price as a data? (Select ALL that apply.) a. fruits = dict({"Apple":3.99, "Strawberry": 2.5, "Apricot": 4.99, "Raspberry":3.5, "Mango": 2.99, "Pineapple": 6.3, "Watermelon": 2.75, "Rockmelon": 3.1}) b. fruits =["Apple":3.99, "Strawberry": 2.5, "Apricot":4.99, "Raspberry":3.5, "Mango":2.99, "Pineapple": 6.3, "Watermelon":2.75, "Rockmelon":3.1] c.fruits = dict("Apple":3.99, "Strawberry": 2.5, "Apricot":4.99, "Raspberry":3.5, "Mango":2.99, "Pineapple": 6.3, "Watermelon":2.75, "Rockmelon":3.1) d. fruits ={"Apple":3.99, "Strawberry": 2.5, "Apricot":4.99, "Raspberry":3.5, "Mango":2.99, "Pineapple": 6.3, "Watermelon":2.75, "Rockmelon":3.1}4. In Python what does ** mean in the arguments of a function? a. The argument allows the variable with the same name change even if the function doesnt return the argument. b. The argument will place all of the values into a tuple. c. The argument will place all of the values into a dictionary.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!