98-381 Exam Details

  • Exam Code
    :98-381
  • Exam Name
    :Introduction to Programming Using Python
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :40 Q&As
  • Last Updated
    :Jul 15, 2026

Microsoft 98-381 Online Questions & Answers

  • Question 11:

    HOTSPOT

    You develop a Python application for your company.

    You have the following code. Line numbers are included for reference only.

    Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code segment.

    Hot Area:

  • Question 12:

    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.

    Select and Place:

  • Question 13:

    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.

    Select and Place:

  • Question 14:

    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:

  • Question 15:

    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.

    Select and Place:

  • Question 16:

    DRAG DROP

    You are writing a Python program that evaluates an arithmetic formula.

    The formula is described as b equals a multiplied by negative one, then raised to the second power, where a is the value that will be input and b is the result.

    You create the following code segment. Line numbers are included for reference only.

    You need to ensure that the result is correct.

    How should you complete the code on line 02? To answer, drag the appropriate code segment 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:

  • Question 17:

    HOTSPOT

    For each of the following statements, select Yes if the statement is true. Otherwise, select No.

    Hot Area:

  • Question 18:

    You develop a Python application for your company.

    You want to add notes to your code so other team members will understand it.

    What should you do?

    A. Place the notes after the # sign on any line
    B. Place the notes after the last line of code separated by a blank line
    C. Place the notes before the first line of code separated by a blank line
    D. Place the notes inside of parentheses on any time

  • Question 19:

    HOTSPOT

    You create the following program to locate a conference room and display the room name. Line numbers are included for reference only.

    Colleagues report that the program sometimes produces incorrect results.

    You need to troubleshoot the program. Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code segment.

    Hot Area:

  • Question 20:

    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?"))

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 98-381 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.