Passed my Microsoft 98-381 exam today. I studied using the pdf file by ValidTorrent. Highly recommend everyone to study from these. It really helps a lot in the exam.

Online Test Engine supports Windows / Mac / Android / iOS, etc., because it is the software based on WEB browser.
Confidence before an exam does not come from promises; it comes from repetition. That is the idea behind the Microsoft Introduction to Programming Using Python materials at ValidTorrent: 42+ Q&As covering the Microsoft Introduction to Programming Using Python objectives, expert-verified answers, and a free demo so you can start building that repetition today, in 2026, without any upfront cost.
| Certification Vendor: | Microsoft |
|---|---|
| Exam Name: | Introduction to Programming Using Python |
| Exam Number: | 98-381 |
| Real Exam Qty: | 40-60 |
| Exam Duration: | 45 minutes |
| Certificate Validity Period: | Valid for lifetime; Exam retired June 30, 2022 |
| Exam Format: | Code analysis, Multiple-choice, Multiple-select, Drag-and-drop |
| Exam Price: | USD 127 (varies by region) |
| Available Languages: | Spanish, Portuguese (Brazil), Chinese (Simplified), Chinese (Traditional), Korean, German, Japanese, French, English |
| Passing Score: | 700 / 1000 (equivalent to 70%) |
| Recommended Training: | Microsoft Official Learning Resources |
| Exam Registration: | Microsoft Official Exam Page Pearson VUE Certiport Registration |
| Sample Questions: | ![]() |
| Exam Way: | Proctored onsite or online via Certiport / Pearson VUE; exam retired June 30, 2022 |
| Pre Condition: | No formal prerequisites; recommended 100+ hours of instruction or hands-on Python experience |
| Official Syllabus URL: | https://learn.microsoft.com/en-us/credentials/certifications/exams/98-381/ |
| Section | Weight | Objectives |
|---|---|---|
| Perform Input and Output Operations | 20-25% | - Handle file paths and file existence checks - Format and display output - Open, read, write, append, and close files - Read input from console and command line |
| Control Flow with Decisions and Loops | 25-30% | - Use control keywords: break, continue, pass - Implement conditional statements: if, elif, else - Construct loops: for, while, nested loops - Apply compound conditions and logical expressions |
| Perform Operations using Data Types and Operators | 20-25% | - Evaluate expressions and operator precedence - Apply arithmetic, comparison, logical, and assignment operators - Recognize and use data types: str, int, float, bool - Perform type conversion and data structure operations |
| Document and Structure Code | 15-20% | - Organize code into logical blocks - Write comments and docstrings - Follow Python naming conventions and style guidelines - Structure code using functions and parameters |
| Perform Operations Using Modules and Tools | 1-5% | - Access module attributes and functions - Solve problems using standard library tools - Import and use built-in modules: math, datetime, random, sys, os |
| Perform Troubleshooting and Error Handling | 5-10% | - Implement try/except/finally blocks - Identify syntax, runtime, and logical errors - Debug and trace code execution - Raise and handle exceptions appropriately |
The 98-381 exam is the required test for earning the Microsoft Introduction to Programming Using Python certification from Microsoft. It assesses your command of the official exam objectives through scenario-based and knowledge questions, and the resulting credential is widely recognized by employers. Its reputation for difficulty is real but manageable — candidates who practice consistently with quality materials routinely walk in well prepared.
The official outline for the 98-381 exam highlights these domains:
Seeing the topics laid out this way often shrinks the exam's intimidation factor — each domain is a finite, learnable block, and the Microsoft Introduction to Programming Using Python practice questions at ValidTorrent follow the same structure.
No formal prerequisites; recommended 100+ hours of instruction or hands-on Python experience
The 98-381 exam is demanding, but its difficulty is specific, not mysterious: unfamiliar question formats, time pressure, and a few heavily weighted domains. All three respond to the same remedy — repeated, timed exposure to exam-style questions. That is what the Microsoft Introduction to Programming Using Python practice materials at ValidTorrent provide, and the free demo lets you measure the real difficulty yourself before committing, which is usually the moment the fear starts shrinking.
The 98-381 exam consists of 40-60 questions with a time allowance of 45 minutes minutes. Practicing full sets under a similar time cap is the most direct way to make sure pacing never costs you points on exam day.
Microsoft offers these training resources for candidates:
Official courses explain the material; practice questions teach you how the exam asks about it. Most successful candidates use both.
Because seeing beats guessing. The free demo of the 98-381 exam materials at ValidTorrent contains genuine samples from the full Microsoft Introduction to Programming Using Python question set — same format, same expert-verified answers — and downloading it costs nothing. If you are unsure whether the materials match your level or your study style, the demo answers that question with evidence rather than marketing, and every demo on the site is free of charge.
The passing score is 700 / 1000 (equivalent to 70%) and the exam fee is USD 127 (varies by region). Knowing both numbers early helps you plan: aim to be consistently above the passing mark in timed practice sessions before you spend the fee on a booking.
Registration is available through the following official channels:
Many candidates find that booking a date early converts vague anxiety into a focused countdown — a useful psychological trick while working through the Microsoft Introduction to Programming Using Python practice questions.
DRAG DROP
You are creating a Python script to evaluate input and check for upper and lower case.
Which four code segments should you use to develop the solution? To answer, move the appropriate code segment from the list of code segments to the answer area and arrange them in the correct order.
Correct Answer:

References:
https://www.w3resource.com/python/python-while-loop.php
You develop a Python application for your school.
You need to read and write data to a text file. If the file does not exist, it must be created. If the file has content, the content must be removed.
Which code should you use?
Correct Answer: A 🗳️
Explanation: Only visible for ValidTorrent members. You can sign-up / login (it's free).
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.
Correct Answer:

References:
https://www.w3resource.com/python/python-user-defined-functions.php
You are writing an application that uses the sqrt function. The program must reference the function using the name squareRoot.
You need to import the function.
Which code segment should you use?
Correct Answer: A 🗳️
Explanation: Only visible for ValidTorrent members. You can sign-up / login (it's free).
Evaluate the following Python arithmetic expression:
What is the result?
Correct Answer: B 🗳️
Explanation: Only visible for ValidTorrent members. You can sign-up / login (it's free).
Viewing page 1 out of 9 pages.
Viewing questions 1-5 out of 42 questions.
Over 68123+ Satisfied Customers
Passed my Microsoft 98-381 exam today. I studied using the pdf file by ValidTorrent. Highly recommend everyone to study from these. It really helps a lot in the exam.
Thank you so much team ValidTorrent for providing the greatest practise exam software. Made the real exam much easier. Scored 90% marks in the 98-381 certification exam.
Shortest Possible Preparation
Cleared with 92%
Most of the questions were similar to the ones I had done on 98-381 exam practice Q&As.
I passed my 98-381 exam with 85%! ValidTorrent exam study material was so user-friendly that I believed it was specially prepared for me. Great experience!
I took the 98-381 exam and passed with flying colors! ValidTorrent provides first-class 98-381 exam study guide. I will recommend it to anyone that are planning on the 98-381 exam!
I bought the APP online version for i wanted to practice on my phone. These 98-381 exam questions are easy to learn with my phone. I passed the exam after praparation for one week. Great!
Thanks for 98-381 practice dumps. They are accurate and valid.
Pdf files for 98-381 certification exam dumps are highly recommended for all. I passed the exam with 92% marks. Exam testing engine was quite helpful.
I just got a few new Microsoft Python questions.
I studied 98-381 exam materials and prepared for my 98-381 exams.
98-381 exam is important for me. Thanks for 98-381 exam braindumps helped me. Very thanks!
I got around 98% of questions from the 98-381 questions answers dumps from ValidTorrent in the exam. I am so lucky to have them as my mentor.
Studied this dump for only 3 days and passed. Many questions of 98-381 pdf are same to the actual test. 98-381 dump is worth buying.
It is a good 98-381 esting engine to prepare for and pass the exam. You can buy and download it. I have gotten my certification with the help of it.
I tried free demo before buying 98-381 training materials, and they helped me know the mode of the complete version.
So I passed my 98-381 exam very easily.
Thank you so much ValidTorrent guys.
I familiar with the exam dumps but not sure that it really work. I tried 98-381 exam dumps to prepare for my 98-381 exam and the results wree just remarkable. No need to study other materials and waste your valuable time in some useless materials. You can try 98-381 exam dumps.
Really good news for me. Thank you Perfect materials.
All 98-381 exam questions are in goal for passing the exam. Great! I have passe it and i want to share this happiness with you! Hope you can pass as well!
Please, click on the button ‘download now’ shown and you will be directed to the demo of the 98-381 exam questions. The questions are valid and reliable. You can just buy and pass with it.
Thanks! I passed my 98-381 exams yesterday. Your 98-381 dumps is very useful. I will take next exam soon and will come back to buy the dump as well.
We respect customer privacy. We use McAfee's security service to provide you with utmost security for your personal information & peace of mind.
Free update is available within 365 days after your purchase. After 365 days, you will get 50% discounts for updating.
Full refund if you fail the corresponding exam in 60 days after purchasing. And Free get any another product.
After Payment, our system will send you the products you purchase in mailbox in a minute after payment. If not received within 2 hours, please contact us.