98-381

98-381 practice questions, page 2 of 2, with answer review and explanations.

Question 6

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:

Question 7

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:

Question 8

You develop a Python application for your company. You have the following code. Line numbers are included for reference only. 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: