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
    :Mar 18, 2025

Microsoft Microsoft Certifications 98-381 Questions & Answers

  • Question 31:

    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.

    Hot Area:

  • Question 32:

    HOTSPOT

    The ABC Video company needs a way to determine the cost that a customer will pay for renting a DVD. The cost is dependent on the time of day the DVD is returned. However, there are also special rates on Thursdays and Sundays. The fee

    structure is shown in the following list:

    The cost is $1.59 per night.

    If the DVD is returned after 8 PM, the customer will be charged an extra day.

    If the video is rented on a Sunday, the customer gets 30% off for as long as they keep the video.

    If the video is rented on a Thursday, the customer gets 50% off for as long as they keep the video.

    You need to write code to meet the requirements.

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

    Hot Area:

  • Question 33:

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

    HOTSPOT

    You are an intern for ABC electric cars company. You must create a function that calculates the average velocity of their vehicles on a 1320 foot (1/4 mile) track. The output must be as precise as possible.

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

    Hot Area:

  • Question 35:

    HOTSPOT

    The ABC organics company needs a simple program that their call center will use to enter survey data for a new coffee variety.

    The program must accept input and return the average rating based on a five-star scale. The output must be rounded to two decimal places.

    You need to complete the code to meet the requirements.

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

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 36:

    HOTSPOT

    The ABC company is building a basketball court for its employees to improve company morale.

    You are creating a Python program that employees can use to keep track of their average score.

    The program must allow users to enter their name and current scores. The program will output the user name and the user's average score. The output must meet the following requirements:

    The user name must be left-aligned.

    If the user name has fewer than 20 characters, additional space must be added to the right.

    The average score must have three places to the left of the decimal point and one place to the right of the decimal (XXX.X).

    How should you complete the code? To answer, select the appropriate code segments in the answer area. NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 37:

    HOTSPOT

    You find errors while evaluating the following code. Line numbers are included for reference only.

    You need to correct the code at line 03 and line 06.

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

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 38:

    HOTSPOT

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

    Hot Area:

  • Question 39:

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

    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:

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.