1 / 11

Introduction to Programming Using Python 98-381 Exam Pass with Guarantee

We are providing Microsoft 98-381 real exam questions which helps you to pass your Introduction to Programming Using Python exam in good marks. You can easily prepare your Microsoft 98-381exam with our dumps that are available in both PDF and test engines https://www.troytec.com/exam/98-381-exams

Download Presentation

Introduction to Programming Using Python 98-381 Exam Pass with Guarantee

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 98-381 Introduction to Programming Using Python Exam : 98-381 Demo Edition © 2017- 2018Troy Tec, LTD All Rights Reserved 1 http://www.troytec.com

  2. 98-381 QUESTION: 1 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. 2 http://www.troytec.com

  3. 98-381 Answer: Exhibit Explanation: Exhibit References: https://www.w3resource.com/python/python-data-type.php QUESTION: 2 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: 3 http://www.troytec.com

  4. 98-381 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. 4 http://www.troytec.com

  5. 98-381 Answer: Exhibit 5 http://www.troytec.com

  6. 98-381 Explanation: Exhibit 6 http://www.troytec.com

  7. 98-381 7 http://www.troytec.com

  8. 98-381 References: https://www.w3resource.com/python/python-if-else-statements.php QUESTION: 3 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() Answer: B QUESTION: 4 The ABC company is creating a program that allows customers to log the number of miles biked. The program will send messages based on how many miles the customer logs. You create the following Python code. Line numbers are included for reference only. You need to define the two required functions. Which code segments should you use for line 01 and line 04? Each correct answer presents part of the solution? (Choose two.) 8 http://www.troytec.com

  9. 98-381 A. 01 def get_name(): B. 01 def get_name(biker): C. 01 def get_name(name): D. 04 def calc_calories(): E. 04 def calc_calories(miles, burn_rate): F. 04 def calc_calories(miles, calories_per_mile): Answer: B, E References: https://www.w3resource.com/python/python-user-defined-functions.php QUESTION: 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. 9 http://www.troytec.com

  10. 98-381 Answer: Exhibit Explanation: Exhibit 10 http://www.troytec.com

  11. 98-381 References: https://www.w3resource.com/python/python-while-loop.php 11 http://www.troytec.com

More Related