Exam
98-381

Microsoft logo

  • Published:
    August 23, 2017
  • Languages:
    English, Japanese, Chinese (Traditional), Chinese (Simplified), Spanish, Portuguese (Brazil), French, German, Korean
  • Audiences:
    IT professionals, Developers, Information workers
  • Technology:
    Python (version 3.6 or later)
  • Credit toward certification:
    MTA

Introduction to Programming Using Python

Microsoft Certified Professional exams are provided by third-party vendors.

  • Are you attending school, or are you an instructor? Register for your exam with Certiport.

    Schedule with Certiport

  • No longer in school but still interested in technology? Register with Pearson VUE.

    Schedule with Pearson VUE

* Pricing does not reflect any promotional offers or reduced pricing for Microsoft Imagine Academy program members, Microsoft Certified Trainers, and Microsoft Partner Network program members. Pricing is subject to change without notice. Pricing does not include applicable taxes. Please confirm exact pricing with the exam provider before registering to take an exam.

Effective May 1, 2017, the existing cancellation policy will be replaced in its entirety with the following policy: Cancelling or rescheduling your exam within 5 business days of your registered exam time is subject to a fee. Failing to show up for your exam appointment or not rescheduling or cancelling your appointment at least 24 hours prior to your scheduled appointment forfeits your entire exam fee.

Skills measured

This exam measures your ability to accomplish the technical tasks listed below. View video tutorials about the variety of question types on Microsoft exams.

Please note that the questions may test on, but will not be limited to, the topics described in the bulleted text.

Do you have feedback about the relevance of the skills measured on this exam? Please send Microsoft your comments. All feedback will be reviewed and incorporated as appropriate while still maintaining the validity and reliability of the certification process. Note that Microsoft will not respond directly to your feedback. We appreciate your input in ensuring the quality of the Microsoft Certification program.

If you have concerns about specific questions on this exam, please submit an exam challenge.

If you have other questions or feedback about Microsoft Certification exams or about the certification program, registration, or promotions, please contact your Regional Service Center.

Perform Operations using Data Types and Operators (20-25%)
  • Evaluate an expression to identify the data type Python will assign to each variable
    • Identify str, int, float, and bool data types
  • Perform data and data type operations
    • Convert from one data type to another type; construct data structures; perform indexing and slicing operations
  • Determine the sequence of execution based on operator precedence
    • Assignment; Comparison; Logical; Arithmetic; Identity (is); Containment (in)
  • Select the appropriate operator to achieve the intended result
    • Assignment; Comparison; Logical; Arithmetic; Identity (is); Containment (in)
Control Flow with Decisions and Loops (25-30%)
  • Construct and analyze code segments that use branching statements
    • if; elif; else; nested and compound conditional expressions
  • Construct and analyze code segments that perform iteration
    • while; for; break; continue; pass; nested loops and loops that include compound conditional expressions
Perform Input and Output Operations (20-25%)
  • Construct and analyze code segments that perform file input and output operations
    • Open; close; read; write; append; check existence; delete; with statement
  • Construct and analyze code segments that perform console input and output operations
    • Read input from console; print formatted text; use of command line arguments
Document and Structure Code (15-20%)
  • Document code segments using comments and documentation strings
    • Use indentation, white space, comments, and documentation strings; generate documentation by using pydoc
  • Construct and analyze code segments that include function definitions
    • Call signatures; default values; return; def; pass
Perform Troubleshooting and Error Handling (5-10%)
  • Analyze, detect, and fix code segments that have errors
    • Syntax errors; logic errors; runtime errors
  • Analyze and construct code segments that handle exceptions
    • Try; except; else; finally; raise
Perform Operations Using Modules and Tools (1-5%)
  • Perform basic operations using built-in modules
    • Math; datetime; io; sys; os; os.path; random
  • Solve complex computing problems by using built-in modules
    • Math; datetime; random

Preparation options

From the community

Follow @MSLearning

Who should take this exam?

Candidates for this exam should be able to recognize and write syntactically correct Python code, recognize data types supported by Python, and be able to recognize and write Python code that will logically solve a given problem.

Candidates are expected to have had, at a minimum, instruction and/or hands-on experience of approximately 100 hours with the Python programming language, be familiar with its features and capabilities, and understand how to write, debug, and maintain well-formed, well documented Python code.

More information about exams

Preparing for an exam

We recommend that you review this exam preparation guide in its entirety and familiarize yourself with the resources on this website before you schedule your exam. See the Microsoft Certification exam overview for information about registration, videos of typical exam question formats, and other preparation resources. For information on exam policies and scoring, see the Microsoft Certification exam policies and FAQs.

Note

This preparation guide is subject to change at any time without prior notice and at the sole discretion of Microsoft. Microsoft exams might include adaptive testing technology and simulation items. Microsoft does not identify the format in which exams are presented. Please use this preparation guide to prepare for the exam, regardless of its format. To help you prepare for this exam, Microsoft recommends that you have hands-on experience with the product and that you use the specified training resources. These training resources do not necessarily cover all topics listed in the "Skills measured" section.