One package, every platform. The online test engine includes all the functions of the PC software and runs on Windows, Mac, Android, and iOS, so the 42 practice questions for the 98-381 exam at PassCollection follow you from desk to phone to tablet. In 2026, study tools should fit your devices — not the other way around.
Microsoft 98-381 Exam Overview:
| Certification Vendor: | Microsoft |
|---|---|
| Exam Name: | Introduction to Programming Using Python |
| Exam Number: | 98-381 |
| Exam Price: | USD 127 (varies by region) |
| Passing Score: | 700 / 1000 (equivalent to 70%) |
| Exam Format: | Multiple-choice, Multiple-select, Code analysis, Drag-and-drop |
| Exam Duration: | 45 minutes |
| Certificate Validity Period: | Valid for lifetime; Exam retired June 30, 2022 |
| Real Exam Qty: | 40-60 |
| Available Languages: | Korean, Japanese, Spanish, French, German, Portuguese (Brazil), Chinese (Simplified), English, Chinese (Traditional) |
| Recommended Training: | Microsoft Official Learning Resources |
| Exam Registration: | Certiport Registration Microsoft Official Exam Page Pearson VUE |
| 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/ |
Microsoft 98-381 Exam Syllabus Topics:
| Section | Weight | Objectives |
|---|---|---|
| Topic 1: Perform Operations Using Modules and Tools | 1-5% | - Import and use built-in modules: math, datetime, random, sys, os - Access module attributes and functions - Solve problems using standard library tools |
| Topic 2: Perform Input and Output Operations | 20-25% | - Read input from console and command line - Format and display output - Handle file paths and file existence checks - Open, read, write, append, and close files |
| Topic 3: Perform Operations using Data Types and Operators | 20-25% | - Perform type conversion and data structure operations - Recognize and use data types: str, int, float, bool - Apply arithmetic, comparison, logical, and assignment operators - Evaluate expressions and operator precedence |
| Topic 4: Control Flow with Decisions and Loops | 25-30% | - Implement conditional statements: if, elif, else - Use control keywords: break, continue, pass - Apply compound conditions and logical expressions - Construct loops: for, while, nested loops |
| Topic 5: Document and Structure Code | 15-20% | - Write comments and docstrings - Structure code using functions and parameters - Organize code into logical blocks - Follow Python naming conventions and style guidelines |
| Topic 6: Perform Troubleshooting and Error Handling | 5-10% | - Identify syntax, runtime, and logical errors - Debug and trace code execution - Implement try/except/finally blocks - Raise and handle exceptions appropriately |
The Microsoft Introduction to Programming Using Python Exam: Answers Before You Buy
Whichever matches your habits — all three are built around the same Microsoft Introduction to Programming Using Python content. The PDF version suits paper readers: print it out, mark it up, and share pages with a study partner. The PC test engine suits computer-based learners: it simulates the real exam scene, lets you set a time limit like the live 98-381 exam, flags your mistakes, and reminds you to re-practice them daily. The online APP includes every software function and runs on Windows, Mac, Android, and iOS. Choose the one you will actually use every day.
The 98-381 exam contains 40-60 questions to be completed in 45 minutes minutes. That pace is exactly what the PC test engine's timed mode trains — set the same limit in practice, and the real clock stops being a surprise.
Microsoft recommends these training options for candidates:
Official courses build understanding; a daily practice routine with expert-verified answers builds exam-day readiness. The strongest preparation uses both.
To pass the 98-381 exam you need 700 / 1000 (equivalent to 70%), and registration costs USD 127 (varies by region). Set against that fee, thorough preparation is the smaller expense by far — and the one most likely to protect the larger one.
The official outline divides the 98-381 exam into weighted domains, including:
- Perform Input and Output Operations (20-25%)
- Perform Operations using Data Types and Operators (20-25%)
- Control Flow with Decisions and Loops (25-30%)
The Microsoft Introduction to Programming Using Python practice questions at PassCollection follow these same objectives, whichever of the three study formats you use.
Yes. We understand that many candidates prefer not to advertise how they prepare. PassCollection runs a strict information protection system: your personal details and your 98-381 exam purchase are kept secret and safe, and never disclosed to any third party. You can order the Microsoft Introduction to Programming Using Python materials with complete peace of mind.
No formal prerequisites; recommended 100+ hours of instruction or hands-on Python experience
The 98-381 exam is the official assessment behind the Microsoft Introduction to Programming Using Python certification from Microsoft. Many IT professionals pursue it as a step toward leadership roles, because the credential verifies practical command of the published objectives. Solid preparation — not luck — is what carries candidates through it.
You can register for the 98-381 exam through these official channels:
Book your seat only when your timed practice scores say you are ready — the registration fee is better paid once than twice.
Microsoft Introduction to Programming Using Python Sample Questions:
You develop a Python application for your company.
A list named employees contains 200 employee names, the last five being company management. You need to slice the list to display all employees excluding management.
Which two code segments should you use? Each correct answer presents a complete solution. (Choose two.)
- A. employees [:-5]
- B. employees [1:-5]
- C. employees [1:-4]
- D. employees [0:-4]
- E. employees [0:-5]
Correct Answer: E 🗳️
Explanation: Only visible for PassCollection members. You can sign-up / login (it's free).
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.
Correct Answer:

References:
https://docs.python.org/3.1/tutorial/inputoutput.html
https://stackoverflow.com/questions/11619942/print-series-of-prime-numbers-in-python
https://www.programiz.com/python-programming/examples/prime-number-intervals
HOTSPOT
The ABC company needs a way to find the count of particular letters in their publications to ensure that there is a good balance. It seems that there have been complaints about overuse of the letter e. You need to create a function to meet the requirements.
How should you complete this code? To answer, select the appropriate code segments in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

References:
https://www.w3resource.com/python/python-for-loop.php
Evaluate the following Python arithmetic expression:
What is the result?
- A. 3
- B. 69
- C. 13
- D. 15
Correct Answer: D 🗳️
Explanation: Only visible for PassCollection members. You can sign-up / login (it's free).
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






