98-381 Introduction to Programming Using Python

Loading demo links...

Showing 1–3 of 5 questions

Question 1

DRAG DROP

The ABC company is converting an existing application to Python. You are creating documentation that will be used by several interns who are working on the team.

You need to ensure that arithmetic expressions are coded correctly.

What is the correct order of operations for the six classes of operations ordered from first to last in order of precedence? To answer, move all operations from the list of operations to the answer area and arrange them in the correct order.

Select and Place:

Answer is in the explanation below.

Question 2

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.

Hot Area:

Answer is in the explanation below.

Question 3

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:

Answer is in the explanation below.