98-381 Dumps

98-381 Free Practice Test

Microsoft 98-381: Introduction to Programming Using Python

QUESTION 1

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.
98-381 dumps exhibit
Solution:
References: https://www.w3resource.com/python/python-while-loop.php

Does this meet the goal?

Correct Answer: A

QUESTION 2

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.
98-381 dumps exhibit
Solution:
References: https://www.w3resource.com/python/python-data-type.php

Does this meet the goal?

Correct Answer: A

QUESTION 3

HOTSPOT
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
98-381 dumps exhibit
Solution:
References: https://docs.python.org/2.0/ref/try.html

Does this meet the goal?

Correct Answer: A

QUESTION 4

DRAG DROP
Match the data type to the type operations.
To answer, drag the appropriate data type to the correct type operation. Each data type may be used once, more than once, or not at all.
98-381 dumps exhibit
Solution:
References: https://www.w3resource.com/python/python-data-type.php

Does this meet the goal?

Correct Answer: A

QUESTION 5

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.
98-381 dumps exhibit
98-381 dumps exhibit
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.
Solution:
b = (-a)**2

Does this meet the goal?

Correct Answer: A