98-381 Exam Question 1

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.

98-381 Exam Question 2

You are creating a function that manipulates a number. The function has the following requirements:
A floatis 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.)
  • 98-381 Exam Question 3

    You are writing an application that uses the sqrt function. The program must reference the function using the name squareRoot.
    You need to import the function.
    Which code segment should you use?
  • 98-381 Exam 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.)
  • 98-381 Exam Question 5

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