Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
sale

Want to Unlock All Questions for this Exam?

Full Exam Access, Discussions, No Robots Checks

Microsoft 98-381 Exam Actual Questions

The questions for 98-381 were last updated on April 20, 2024.
  • Viewing page 1 out of 10 pages.
  • Viewing questions 1-4 out of 43 questions

Topic 1 - Single Topic

Question #1 Topic 1

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 if the format is incorrect.

False -
How should you complete the code? To answer, select the appropriate code segments in the answer area.
Hot Area:

Reveal Solution Hide Solution   Discussion   14

Correct Answer:

Question #2 Topic 1

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:

Reveal Solution Hide Solution   Discussion   12

Correct Answer:
References: https://www.w3resource.com/python/python-if-else-statements.php

Question #3 Topic 1

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

Reveal Solution Hide Solution   Discussion   17

Correct Answer:
References: https://www.w3resource.com/python/python-if-else-statements.php

Question #4 Topic 1

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

Reveal Solution Hide Solution   Discussion   7

Correct Answer:
References: https://www.w3resource.com/python/python-if-else-statements.php

Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...