Microsoft 98-381 Introduction to Programming Using Python Online Training

Exam4Training has put its full efforts with a consultation of Our Team Experts to bring the high-quality Microsoft 98-381 Introduction to Programming Using Python Online Training that would produce desirable results in the first attempt. You can also acquire the mega skills of experts with getting the qualification certified Microsoft 98-381 exam Professional. It shows that you would also become an expert in your field with a title of being certified from original MTA 98-381 knowledge.

Page 1 of 2

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



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



3. HOTSPOT

You work for a company that distributes media for all ages.

You are writing a function that assigns a rating based on a user’s age. The function must meet the following requirements:

• Anyone 18 years old or older receives a rating of “A”

• Anyone 13 or older, but younger than 18, receives a rating of “T”

• Anyone 12 years old or younger receives a rating of “C”

• If the age is unknown, the rating is set to “C”

You need to complete the code to meet the requirements.



4. HOTSPOT

You are designing a decision structure to convert a student’s numeric grade to a letter grade. The program must assign a letter grade as specified in the following table:





For example, if the user enters a 90, the output should be, “Your letter grade is A”. Likewise, if a user enters an 89, the output should be “Your letter grade is B”.

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



5. HOTSPOT

You are developing a Python application for an online product distribution company.

You need the program to iterate through a list of products and escape when a target product ID is found.

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.



6. 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.



7. 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.



8. 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.



9. 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?

10. 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.




 

Latest 98-381 Dumps Valid Version with 40 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>