Last Updated: Sep 17, 2026
No. of Questions: 42 Questions & Answers with Testing Engine
Download Limit: Unlimited
Our Actual4Cert 98-381 actual exam cert can provide you with the comprehnsive study points about the acutal test, with which you can have a clear direction during the perparation.The validity and reliability of the 98-381 actual torrent has helped lots of people get good redsult.Choose our 98-381 training cert, you will get 100% pass.
Actual4Cert has an unprecedented 99.6% first time pass rate among our customers.
We're so confident of our products that we provide no hassle product exchange.
Not ready to commit? Download the free 98-381 PDF demo from Actual4Cert and inspect the quality of the 42 practice questions for Microsoft Introduction to Programming Using Python before you spend anything.
| Certification Vendor: | Microsoft |
|---|---|
| Exam Name: | Introduction to Programming Using Python |
| Exam Number: | 98-381 |
| Exam Price: | Approximately USD 127 |
| Exam Duration: | 45 minutes |
| Available Languages: | Korean, French, German, Chinese (Simplified), Spanish, Japanese, Portuguese (Brazil), Chinese (Traditional), English |
| Certificate Validity Period: | Retired (no longer offered after June 30, 2022) |
| Related Certifications: | Microsoft 98-382 Introduction to Programming Using JavaScript Microsoft 98-375 HTML5 App Development Fundamentals |
| Real Exam Qty: | 40-60 |
| Passing Score: | Approximately 700 (70%-scale, official thresholds determined by Microsoft) |
| Exam Format: | Select from drop-down, Multiple response, Multiple choice, Drag-and-drop |
| Sample Questions: | DOWNLOAD DEMO |
| Exam Way: | Exam retired; previously delivered at Pearson VUE or Certiport testing centres |
| Pre Condition: | Foundational programming knowledge recommended; approximately 100+ hours of Python instruction or equivalent experience |
| Official Syllabus URL: | https://learn.microsoft.com/en-us/learn/certifications/mta-introduction-to-programming-using-python |
| Section | Objectives |
|---|---|
| Topic 1: Perform Troubleshooting and Error Handling | - Handle exceptions using try/except/finally - Analyze and fix Python code errors (syntax, logic, runtime) |
| Topic 2: Perform Operations Using Modules and Tools | - Use built-in Python modules (math, datetime, random, os, sys) |
| Topic 3: Control Flow with Decisions and Loops | - Construct and analyze branching statements (if, elif, else) - Construct and analyze loops (for, while, break, continue, nested loops) |
| Topic 4: Perform Input and Output Operations | - Console I/O (read input, print formatted text) - File I/O (open, read, write, append, close, with statement) |
| Topic 5: Perform Operations Using Data Types and Operators | - Perform data and data type operations (type conversion, structures, indexing/slicing) - Identify Python data types (str, int, float, bool) - Determine sequence of execution based on operator precedence |
| Topic 6: Document and Structure Code | - Define and call functions with parameters and return values - Use comments and documentation strings |
The Microsoft Introduction to Programming Using Python exam (exam code 98-381) is the official Microsoft exam that leads to the Microsoft Python certification, sitting at the Associate (Entry-Level) level of the Microsoft certification track. It is also connected with Microsoft 98-375 HTML5 App Development Fundamentals, Microsoft 98-382 Introduction to Programming Using JavaScript. If this is the credential you are working toward, the 42 practice questions at Actual4Cert map directly to its objectives.
The Microsoft Introduction to Programming Using Python exam includes 40-60 questions, and you have 45 minutes to complete them. Divide the time limit by the question count and you get a tight average pace per item, so train yourself to flag time-consuming questions and return to them later instead of getting stuck. Before test day, run at least one full timed session in the Actual4Cert test engine under the same limits — the clock should never surprise you.
The passing score for Microsoft Introduction to Programming Using Python is Approximately 700 (70%-scale, official thresholds determined by Microsoft), and the official registration fee is Approximately USD 127. A failed attempt means paying that fee in full again, so your preparation budget deserves the same attention as your study plan. A practical rule: book your exam date only after you can finish a Actual4Cert practice test comfortably above the passing score more than once.
According to Microsoft, candidates should meet the following before registering: Foundational programming knowledge recommended; approximately 100+ hours of Python instruction or equivalent experience. Requirements can change, so confirm the latest details on the official exam page before you register.
Yes. A free PDF demo of the 98-381 practice questions is available to download, so you can judge the format and quality before paying anything. Every purchase also includes 365 days of free updates, and if your product expires you can extend the update service at a 50% discount.
Your order is covered by a conditional 100% money-back guarantee: if you take the corresponding exam within 60 days of purchase and do not pass, you may apply for a full refund. Exams taken within 3 days of purchase are not eligible, nor are free materials or expired orders, and the candidate name must match the payer name. To claim, submit a scanned enrollment slip and your official Score Report PDF within 2 days of the exam; claims are processed within 7 days. Prefer to keep studying? You can instead exchange your purchase for two free products of equal value while keeping the update service on your original one. Delivery itself is immediate: your product unlocks for instant download right after payment and a copy is emailed to you within a minute — if nothing arrives within 2 hours, contact our support team. There is no limit on the number of computers you can install it on.
The Microsoft Introduction to Programming Using Python blueprint is divided into 6 major domains, starting with Perform Operations Using Data Types and Operators, Perform Troubleshooting and Error Handling, and Document and Structure Code. The full breakdown, including every subdomain and its weighting, is listed in the Exam Topics section above — review it against your own weak areas before scheduling the exam.
You are creating a function that reads a data file and prints each line of the file.
You write the following code. Line numbers are included for reference only.
The code attempts to read the file even if the file does not exist.
You need to correct the code.
Which three lines have indentation problems? Each correct answer presents part of the solution.
(Choose three.)
Correct Answer: H 🗳️
Explanation: Only visible for Actual4Cert members. You can sign-up / login (it's free).
HOTSPOT
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Correct Answer:

References:
https://docs.python.org/2.0/ref/try.html
You are writing code that generates a random integer with a minimum value of 5 and a maximum value of 11.
Which two functions should you use? Each correct answer presents a complete solution. (Choose two.)
Correct Answer: A,C 🗳️
Explanation: Only visible for Actual4Cert members. You can sign-up / login (it's free).
DRAG DROP
You are writing a function that works with files.
You need to ensure that the function returns None if the file does not exist. If the file does exist, the function must return the first line.
You write the following code:
In which order should you arrange the code segments to complete the function? To answer, move all code segments from the list of code segments to the answer area and arrange them in the correct order.
Correct Answer:

References:
http://effbot.org/zone/python-with-statement.htm
DRAG DROP
Match the data type to the type operations.
To answer, drag the appropriate data type to the correct type operation. Each data type may be used once, more than once, or not at all.
Correct Answer:

References:
https://www.w3resource.com/python/python-data-type.php
Gail
Jodie
Marjorie
Pag
Sibyl
Xenia
Actual4Cert is the world's largest certification preparation company with 99.6% Pass Rate History from 60267+ Satisfied Customers in 148 Countries.
Over 60267+ Satisfied Customers
