시험덤프
매달, 우리는 1000명 이상의 사람들이 시험 준비를 잘하고 시험을 잘 통과할 수 있도록 도와줍니다.
  / 98-381 덤프  / 98-381 문제 연습

Microsoft 98-381 시험

Introduction to Programming Using Python 온라인 연습

최종 업데이트 시간: 2024년04월22일,40문제.

당신은 온라인 연습 문제를 통해 Microsoft 98-381 시험지식에 대해 자신이 어떻게 알고 있는지 파악한 후 시험 참가 신청 여부를 결정할 수 있다.

시험을 100% 합격하고 시험 준비 시간을 35% 절약하기를 바라며 98-381 덤프 (최신 실제 시험 문제)를 사용 선택하여 현재 최신 40개의 시험 문제와 답을 포함하십시오.

 / 1

Question No : 1


DRAG DROP
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.



정답:


Explanation:
https://docs.python.org/3.1/tutorial/inputoutput.html
https://stackoverflow.com/questions/11619942/print-series-of-prime-numbers-in-python
https://www.programiz.com/python-programming/examples/prime-number-intervals

Question No : 2


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.



정답:


Explanation: https://www.w3resource.com/python/python-while-loop.php

Question No : 3


HOTSPOT
You are designing a decision structure to convert a student’s numeric grade to a letter grade. The program must assign a letter grade as specified in the following table:



For example, if the user enters a 90, the output should be, “Your letter grade is A”. Likewise, if a user enters an 89, the output should be “Your letter grade is B”.
How should you complete the code? To answer, select the appropriate code segments in the answer area.



정답:


Explanation: https://www.w3resource.com/python/python-if-else-statements.php

Question No : 4


HOTSPOT
You work for a company that distributes media for all ages.
You are writing a function that assigns a rating based on a user’s age. The function must meet the following requirements:
• Anyone 18 years old or older receives a rating of “A”
• Anyone 13 or older, but younger than 18, receives a rating of “T”
• Anyone 12 years old or younger receives a rating of “C”
• If the age is unknown, the rating is set to “C”
You need to complete the code to meet the requirements.



정답:


Explanation: https://www.w3resource.com/python/python-if-else-statements.php

Question No : 5


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.



정답:


Explanation: https://www.w3resource.com/python/python-if-else-statements.php

Question No : 6


HOTSPOT
You are writing a Python program to validate employee numbers.
The employee number must have the format ddd-dd-dddd and consist only of numbers and dashes. The program must print True if the format is correct and print False if the format is incorrect.
How should you complete the code? To answer, select the appropriate code segments in the answer area.



정답:

 / 1