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 1:

    HOTSPOT

    You are developing a Python application for your company.

    You write the following code:

    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 2:

    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.

    Hot Area:

  • Question 3:

    HOTSPOT

    You create a function to calculate the power of a number by using Python.

    You need to ensure that the function is documented with comments.

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

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

    Hot Area:

  • Question 4:

    You are creating a Python program that shows a congratulation message to employees on their service anniversary.

    You need to calculate the number of years of service and print a congratulatory message.

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

    You need to complete the program.

    Which code should you use at line 03?

    A. print("Congratulations on" + (int(end)-int(start)) + "years of service!")
    B. print("Congratulations on" + str(int(end)-int(start)) + "years of service!")
    C. print("Congratulations on" + int(end - start) + "years of service!")
    D. print("Congratulations on" + str(end - start)) + "years of service!")

  • Question 5:

    HOTSPOT

    During school holidays, you volunteer to explain some basic programming concepts to younger siblings. You want to introduce the concept of data types in Python. You create the following three code segments:

    You need to evaluate the code segments.

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

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 6:

    DRAG DROP

    You are writing a Python program to perform arithmetic operations.

    You create the following code:

    What is the result of each arithmetic expression? To answer, drag the appropriate expression from the column on the left to its result on the right. Each expression may be used once, more than once, or not at all.

    Select and Place:

  • Question 7:

    HOTSPOT

    You are writing a Python program to validate employee numbers.

    The employee number must have the format ddd-dd-dddd and consist only of numbers and dashes. The program must print True if the format is correct and print False if the format is incorrect.

    How should you complete the code? To answer, select the appropriate code segments in the answer area.

    Hot Area:

  • Question 8:

    HOTSPOT

    You are coding a math utility by using Python.

    You are writing a function to compute roots.

    The function must meet the following requirements:

    How should you complete the code? To answer, select the appropriate code segments in the answer area.

    Hot Area:

  • Question 9:

    You develop a Python application for your company.

    You need to accept input from the user and print that information to the user screen.

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

    Which code should you write at line 02?

    A. name = input
    B. input("name")
    C. input(name)
    D. name = input()

  • Question 10:

    Evaluate the following Python arithmetic expression:

    What is the result?

    A. 3
    B. 13
    C. 15
    D. 69

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.