How to prepare for Microsoft Python 98-381 exam? Just choose a valid 98-381 exam dumps. https://www.pass4itsure.com/98-381.html Practice the exam before the actual 98-381 exam on our website. Real Microsoft 98-381 dumps is newly released in May 28, 2020.
Microsoft Python 98-381 Exam Questions PDF Dumps
[PDF] Microsoft 98-381 PDF Dumps https://drive.google.com/file/d/1bCdEc8VBcB__bHHDGbCeiXMoSZetGHw2/view?usp=sharing
You may be interested in other microsoft certification!
Microsoft Python Certification Exam (98-381): Practice Tests
QUESTION 1
DRAG DROP
You are writing a Python program. The program collects customer data and stores it in a database.
The program handles a wide variety of data.
You need to ensure that the program handles the data correctly so that it can be stored in the database correctly.
Match the data type to the code segment. To answer, drag the appropriate data type from the column on the left to its
code segment on the right. Each data type may be used once, more than once, or not at all.
Select and Place:
References: https://www.w3resource.com/python/python-data-type.php
QUESTION 2
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.
Hot Area:
Correct Answer:
References: https://www.w3resource.com/python/python-while-loop.php
QUESTION 3
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.
Select and Place:
Correct Answer:
References: https://docs.python.org/3.1/tutorial/inputoutput.html https://stackoverflow.com/questions/11619942/printseries-of-prime-numbers-in-python https://www.programiz.com/python-programming/examples/prime-number-intervals
QUESTION 4
HOTSPOT
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:
References: https://docs.python.org/2.0/ref/try.html
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:
Correct Answer
QUESTION 6
You are creating a function that reads a data file and prints each line of the file. You write the following code. Line
numbers are included for reference only.
The code attempts to read the file even if the file does not exist.
You need to correct the code.
Which three lines have indentation problems? Each correct answer presents part of the solution. (Choose three.)
A. Line 01
B. Line 02
C. Line 03
D. Line 04
E. Line 05
F. Line 06
G. Line 07
H. Line 08
Correct Answer: FGH
QUESTION 7
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()
Correct Answer: B
QUESTION 8
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:
Correct Answer:
References: https://www.python-course.eu/python3_formatted_output.php
QUESTION 9
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 10
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 11
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 12
Evaluate the following Python arithmetic expression:
What is the result?
A. 3
B. 13
C. 15
D. 69
Correct Answer: C
References: http://www.mathcs.emory.edu/~valerie/courses/fall10/155/resources/op_precedence.html
Pass4itsure discount code 2020
Updated and Latest Microsoft Python 98-381 dumps – (Introduction to Programming Using Python )using https://www.pass4itsure.com/98-381.html Practice exam questions that help cover the exam objectives – pass guaranteed!
FREE Microsoft 98-381 PDF Dumps https://drive.google.com/file/d/1bCdEc8VBcB__bHHDGbCeiXMoSZetGHw2/view?usp=sharing