this is a coding multiple choice quiz, answer each one with technical and true precision, and format with a "#) Letter" style: Flag question: Question 1
Question 11 pts
By definition, a loop repeats a part of code...

Group of answer choices

a specified number of times or until a condition is met

until another loops begins

until the program stops running or the user manually ends the loop

more than 1 time but no more than 10 times
 
Flag question: Question 2
Question 21 pts
What would the following Python code output?

months = ["January", "February", "March"]

for x in month:
   print(x)
Group of answer choices

January, February, March

The code would cause a syntax error


"January", "February", "March"

January

February

March

 
Flag question: Question 3
Question 31 pts
If a for loop is iterating through the following range, what will happen?

range(16, 32, 2)
The loop...

Group of answer choices

Runs 9 times

Runs 2 times

Ends at the number 32

Starts at the number 16
 
Flag question: Question 4
Question 41 pts
In Python, a function...

Group of answer choices

Is a reusable block of code

Automatically repeats until a condition is met

Always outputs a value

Must have a name that starts with the word "function"
 
Flag question: Question 5
Question 51 pts
The following code will cause an error:

def test_function()
  print('The Coding School')
What is wrong with the code?

Group of answer choices

The Coding School should be in double quotes

The parentheses are empty

The function name doesn't start with the word "function"

There is no colon
 
Flag question: Question 6
Question 61 pts
What is the difference between an argument and a parameter?

Group of answer choices

An argument is in the function's name and a parameter is in the function's body.


A parameter is in the parentheses of the function definition while an argument is in the parentheses of the function call.


An argument is in the parentheses of the function definition while a parameter is in the parentheses of the function call.


A parameter is in the function's name and an argument is in the function's body.

 
Flag question: Question 7
Question 71 pts
In the solution for homework Problem #3.2, which of the following is true?

Group of answer choices

In the conditional, we call a function that finds the length of a string.


Every state in the dataset has at least one reported fatality.


We have to use the .upper() method in the else statement.


The states dictionary has a two letter key for every state in the dataset.

 
Flag question: Question 8
Question 81 pts
In homework Problem #3.3, we recommend changing the name of the damage column to ef_rating. How do you access the heading of the damage column to make that change?

 

Group of answer choices

data[3][1]

data[1][3]

data[0][2]

data[2][0]
 
Flag question: Question 9
Question 91 pts
In homework Part 3, which of these tasks are you not asked to do?

Group of answer choices

Change the name of the damage column


Ensure every piece of data in the state column is two characters long


Use a function to change the data type of the data in the width column


Convert the data in the date column to strings

 
Flag question: Question 10
Question 101 pts
In homework Problem #4.1, the first line of the starter code is:

col_data = [ ]
In your solution code, what belongs in the square brackets?

Group of answer choices

[data]

[1,10]

[width]

They should remain empty