Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > Microsoft > Microsoft Certifications > 98-381 > 98-381 Online Practice Questions and Answers

98-381 Online Practice Questions and Answers

Questions 4

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:

Buy Now

Correct Answer:

References: http://www.mathcs.emory.edu/~valerie/courses/fall10/155/resources/op_precedence.html

Questions 5

DRAG DROP

You are writing a Python program. The program collects customer data and stores it in a database.

The program handles a wide variety of data.

You need to ensure that the program handles the data correctly so that it can be stored in the database correctly.

Match the data type to the code segment. To answer, drag the appropriate data type from the column on the left to its code segment on the right. Each data type may be used once, more than once, or not at all.

Select and Place:

Buy Now

Correct Answer:

References: https://www.w3resource.com/python/python-data-type.php

Questions 6

HOTSPOT

You develop a Python application for your company.

You have the following code. Line numbers are included for reference only.

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:

Buy Now

Correct Answer:

Questions 7

HOTSPOT

The ABC Video company needs a way to determine the cost that a customer will pay for renting a DVD. The cost is dependent on the time of day the DVD is returned. However, there are also special rates on Thursdays and Sundays. The fee

structure is shown in the following list:

The cost is $1.59 per night.

If the DVD is returned after 8 PM, the customer will be charged an extra day.

If the video is rented on a Sunday, the customer gets 30% off for as long as they keep the video.

If the video is rented on a Thursday, the customer gets 50% off for as long as they keep the video.

You need to write code to meet the requirements.

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

Hot Area:

Buy Now

Correct Answer:

Questions 8

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:

Buy Now

Correct Answer:

Questions 9

HOTSPOT

You are an intern for ABC electric cars company. You must create a function that calculates the average velocity of their vehicles on a 1320 foot (1/4 mile) track. The output must be as precise as possible.

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

Hot Area:

Buy Now

Correct Answer:

References: https://www.w3resource.com/python/python-data-type.php

Questions 10

HOTSPOT

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Hot Area:

Buy Now

Correct Answer:

References: https://docs.python.org/2.0/ref/try.html

Questions 11

HOTSPOT

You are developing a Python application for an online game.

You need to create a function that meets the following criteria: The function is named update_score The function receives the current score and a value The function adds the value to the current score The function returns the new score

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

Hot Area:

Buy Now

Correct Answer:

Questions 12

HOTSPOT

You create a function to calculate the power of a number by using Python.

You need to ensure that the function is documented with comments.

You create the following code. Line numbers are included for reference only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Hot Area:

Buy Now

Correct Answer:

Questions 13

You develop a Python application for your company.

You want to add notes to your code so other team members will understand it.

What should you do?

A. Place the notes after the # sign on any line

B. Place the notes after the last line of code separated by a blank line

C. Place the notes before the first line of code separated by a blank line

D. Place the notes inside of parentheses on any time

Buy Now

Correct Answer: A

References: http://www.pythonforbeginners.com/comments/comments-in-python

Exam Code: 98-381
Exam Name: Introduction to Programming Using Python
Last Update: May 25, 2026
Questions: 40

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2026 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.