98-381 Exam Question 26
HOTSPOT
You find errors while evaluating the following code. Line numbers are included for reference only.

You need to correct the code at line 03 and line 06.
How should you correct the code? Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code segment.
NOTE: Each correct selection is worth one point.
Hot Area:

You find errors while evaluating the following code. Line numbers are included for reference only.

You need to correct the code at line 03 and line 06.
How should you correct the code? Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code segment.
NOTE: Each correct selection is worth one point.
Hot Area:

98-381 Exam Question 27
HOTSPOT
You are developing a Python application for your company.
You write the following code:

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code segment.
Hot Area:

You are developing a Python application for your company.
You write the following code:

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code segment.
Hot Area:

98-381 Exam Question 28
You are creating a function that manipulates a number. The function has the following requirements:
* A floatis passed into the function
* The function must take the absolute value of the float
* Any decimal points after the integer must be removed
Which two math functions should you use? Each correct answer is part of the solution. (Choose two.)
* A floatis passed into the function
* The function must take the absolute value of the float
* Any decimal points after the integer must be removed
Which two math functions should you use? Each correct answer is part of the solution. (Choose two.)
98-381 Exam Question 29
Evaluate the following Python arithmetic expression:

What is the result?

What is the result?
98-381 Exam Question 30
HOTSPOT
You work for a company that distributes media for all ages.
You are writing a function that assigns a rating based on a user's age. The function must meet the following requirements:
* Anyone 18 years old or older receives a rating of "A"
* Anyone 13 or older, but younger than 18, receives a rating of "T"
* Anyone 12 years old or younger receives a rating of "C"
* If the age is unknown, the rating is set to "C"
You need to complete the code to meet the requirements.

You work for a company that distributes media for all ages.
You are writing a function that assigns a rating based on a user's age. The function must meet the following requirements:
* Anyone 18 years old or older receives a rating of "A"
* Anyone 13 or older, but younger than 18, receives a rating of "T"
* Anyone 12 years old or younger receives a rating of "C"
* If the age is unknown, the rating is set to "C"
You need to complete the code to meet the requirements.
