98-381 Web TestEngine demo

Exit VCEDump 98-381 Introduction to Programming Using Python
Question 5 of 6
0% complete
Q5 Hotspot

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.

How should you complete the code? To answer, select the appropriate code segments in the answer area.

Select the correct area(s) on the image.

Question diagram

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in