Pass4itsure > Microsoft > MTA > 98-381 > 98-381 Online Practice Questions and Answers

98-381 Online Practice Questions and Answers

Questions 4

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.

Select and Place:

Buy Now
Questions 5

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.

Select and Place:

Buy Now
Questions 6

DRAG DROP

The ABC company is converting an existing application to Python. You are creating documentation that will be used by several interns who are working on the team.

You need to ensure that arithmetic expressions are coded correctly.

What is the correct order of operations for the six classes of operations ordered from first to last in order of precedence? To answer, move all operations from the list of operations to the answer area and arrange them in the correct order.

Select and Place:

Buy Now
Questions 7

DRAG DROP

You are writing a Python program to perform arithmetic operations.

You create the following code:

What is the result of each arithmetic expression? To answer, drag the appropriate expression from the column on the left to its result on the right. Each expression may be used once, more than once, or not at all.

Select and Place:

Buy Now
Questions 8

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.

Hot Area:

Buy Now
Questions 9

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:

Buy Now
Questions 10

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:

Buy Now
Questions 11

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:

Buy Now
Questions 12

You develop a Python application for your company.

A list named employees contains 200 employee names, the last five being company management. You need to slice the list to display all employees excluding management.

Which two code segments should you use? Each correct answer presents a complete solution. (Choose two.)

A. employees [1:-4]

B. employees [:-5]

C. employees [1:-5]

D. employees [0:-4]

E. employees [0:-5]

Buy Now
Questions 13

You are creating a function that manipulates a number. The function has the following requirements: A float is passed into the function The function must take the absolute value of the float Any decimal points after the integer must be removed

Which two math functions should you use? Each correct answer is part of the solution. (Choose two.)

A. math.fmod(x)

B. math.frexp(x)

C. math.floor(x)

D. math.ceil(x)

E. math.fabs(x)

Buy Now
Exam Code: 98-381
Exam Name: Introduction to Programming Using Python
Last Update: Apr 09, 2024
Questions: 40
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99