Passcerty.com » Microsoft » MTA » 98-381

98-381 Exam Questions & Answers

Exam Code: 98-381

Exam Name: Introduction to Programming Using Python

Updated: Apr 19, 2024

Q&As: 40

At Passcerty.com, we pride ourselves on the comprehensive nature of our 98-381 exam dumps, designed meticulously to encompass all key topics and nuances you might encounter during the real examination. Regular updates are a cornerstone of our service, ensuring that our dedicated users always have their hands on the most recent and relevant Q&A dumps. Behind every meticulously curated question and answer lies the hard work of our seasoned team of experts, who bring years of experience and knowledge into crafting these premium materials. And while we are invested in offering top-notch content, we also believe in empowering our community. As a token of our commitment to your success, we're delighted to offer a substantial portion of our resources for free practice. We invite you to make the most of the following content, and wish you every success in your endeavors.


Download Free Microsoft 98-381 Demo

Experience Passcerty.com exam material in PDF version.
Simply submit your e-mail address below to get started with our PDF real exam demo of your Microsoft 98-381 exam.

Instant download
Latest update demo according to real exam

*Email Address

* Our demo shows only a few questions from your selected exam for evaluating purposes

Free Microsoft 98-381 Dumps

Practice These Free Questions and Answers to Pass the MTA Exam

Questions 1

DRAG DROP

You are building a Python program that displays all of the prime numbers from 2 to 100.

How should you complete the code? To answer, drag the appropriate code segments to the correct location. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to

view content.

NOTE: Each correct selection is worth one point.

Select and Place:

Show Answer
Questions 2

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:

Show Answer
Questions 3

The ABC company has hired you as an intern on the coding team that creates e-commerce applications.

You must write a script that asks the user for a value. The value must be used as a whole number in a calculation, even if the user enters a decimal value.

You need to write the code to meet the requirements.

Which code segment should you use?

A. totalItems = input("How many items would you like?")

B. totalItems = float(input("How many items would you like?"))

C. totalItems = str(input("How many items would you like?"))

D. totalItems = int(input("How many items would you like?"))

Show Answer
Questions 4

You are creating a function that manipulates a number. The function has the following requirements: A float is 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. math.fmod(x)

B. math.frexp(x)

C. math.floor(x)

D. math.ceil(x)

E. math.fabs(x)

Show Answer
Questions 5

The ABC company is creating a program that allows customers to log the number of miles biked. The program will send messages based on how many miles the customer logs. You create the following Python code. Line numbers are included for reference only.

You need to define the two required functions.

Which code segments should you use for line 01 and line 04? Each correct answer presents part of the solution? (Choose two.)

A. 01 def get_name():

B. 01 def get_name(biker):

C. 01 def get_name(name):

D. 04 def calc_calories():

E. 04 def calc_calories(miles, burn_rate):

F. 04 def calc_calories(miles, calories_per_mile):

Show Answer

Viewing Page 1 of 3 pages. Download PDF or Software version with 40 questions