98-381 Exam Question 6

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.

98-381 Exam Question 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.

98-381 Exam Question 8

You develop a Python application for your school.
You need to read and write data to a text file. If the file does not exist, it must be created. If the file has content, the content must be removed.
Which code should you use?
  • 98-381 Exam Question 9

    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.
    Hot Area:

    98-381 Exam Question 10

    You are writing code that generates a random integer with a minimum value of 5 and a maximum value of
    11.
    Which two functions should you use? Each correct answer presents a complete solution. (Choose two.)