98-381 Dumps PDF New [2021] Ultimate Study Guide
98-381 Exam Dumps PDF Updated Dump from BraindumpQuiz Guaranteed Success
Career Opportunities
This exam paves the path to becoming a skilled Python programming specialist. After earning the respective certification, IT pros can aim at pivotal developers job roles like software programmer and web application developers. Also, due to high-end inherited skills, these individuals can expect to gain decent pay. For instance, the median salary of a software developer is about $72k per annum, according to PayScale, and this is an average sum. When it comes to web app developers, their remuneration can go up to $95 annually.
The Microsoft 98-381 is an industry-standard certification exam that provides you an opportunity to demonstrate your knowledge of Python. If you are looking forward to pursuing your career in programming languages, you should pass this exam. It will lead you to achieve a prestigious certification known as the MTA: Introduction to Programming Using Python.
NEW QUESTION 25
DRAG DROP
You are writing a function that works with files.
You need to ensure that the function returns None if the file does not exist. If the file does exist, the function must return the first line.
You write the following code:
In which order should you arrange the code segments to complete the function? To answer, move all code segments from the list of code segments to the answer area and arrange them in the correct order.
Answer:
Explanation:
References:
http://effbot.org/zone/python-with-statement.htm
NEW QUESTION 26
The ABC company has hired you as an intern on the coding team that creates e-commerce applications.
You must write a script that asks the user for a value. The value must be used as a whole number in a calculation, even if the user enters a decimal value.
You need to write the code to meet the requirements.
Which code segment should you use?
- A. totalItems = int(input("How many items would you like?"))
- B. totalItems = input("How many items would you like?")
- C. totalItems = float(input("How many items would you like?"))
- D. totalItems = str(input("How many items would you like?"))
Answer: C
Explanation:
Explanation/Reference:
References: http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/io.html
NEW QUESTION 27
This question requires that you evaluate the underlined text to determine if it is correct.
You write the following code:
The out.txt file does not exist. You run the code. The code will execute without error.
Review the underlined text. If it makes the statement correct, select "No change is needed".
If the statement is incorrect, select the answer choice that makes the statement correct.
- A. The code will generate a syntax error
- B. The code will generate a runtime error
- C. No change is needed
- D. The code runs, but generates a logic error
Answer: A
Explanation:
References: https://docs.python.org/2/library/exceptions.html
NEW QUESTION 28
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.
How should you complete the code? To answer, select the appropriate code segments in the answer area.
Hot Area:
Answer:
Explanation:
Explanation/Reference:
References: https://www.w3resource.com/python/python-if-else-statements.php
NEW QUESTION 29
You develop a Python application for your company.
A list named employees contains 200 employee names, the last five being company management. You need to slice the list to display all employees excluding management.
Which two code segments should you use? Each correct answer presents a complete solution. (Choose two.)
- A. employees [0:-5]
- B. employees [1:-5]
- C. employees [:-5]
- D. employees [0:-4]
- E. employees [1:-4]
Answer: A
Explanation:
References:
https://www.w3resource.com/python/python-list.php#slice
NEW QUESTION 30
HOTSPOT
The ABC Video company needs a way to determine the cost that a customer will pay for renting a DVD.
The cost is dependent on the time of day the DVD is returned. However, there are also special rates on Thursdays and Sundays. The fee structure is shown in the following list:
The cost is $1.59 per night.
If the DVD is returned after 8 PM, the customer will be charged an extra day.
If the video is rented on a Sunday, the customer gets 30% off for as long as they keep the video.
If the video is rented on a Thursday, the customer gets 50% off for as long as they keep the video.
You need to write code to meet the requirements.
How should you complete the code? To answer, select the appropriate code segments in the answer area.
Answer:
Explanation:
References:
https://www.w3resource.com/python/python-operators.php
https://www.w3resource.com/python/python-if-else-statements.php
NEW QUESTION 31
HOTSPOT
You are developing a Python application for your company.
You write the following code:
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:
Answer:
Explanation:
Section: (none)
Explanation/Reference:
References: https://www.w3resource.com/python/python-list.php
NEW QUESTION 32
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.
Select and Place:
Answer:
Explanation:
Section: (none)
Explanation/Reference:
References: https://www.w3resource.com/python/python-operators.php
NEW QUESTION 33
You develop a Python application for your company.
You need to accept input from the user and print that information to the user screen.
You have started with the following code. Line numbers are included for reference only.
Which code should you write at line 02?
- A. name = input()
- B. name = input
- C. input(name)
- D. input("name")
Answer: D
NEW QUESTION 34
DRAG DROP
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.
Answer:
Explanation:
Explanation:
References: https://www.w3resource.com/python/python-while-loop.php
NEW QUESTION 35
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.
Answer:
Explanation:
NEW QUESTION 36
You are writing a Python program to automate inventory. Your first task is to read a file of inventory
transactions. The file contains sales from the previous day, including the item id, price, and quantity.
The following shows a sample of data from the file:
The code must meet the following requirements:
* Each line of the file must be read and printed
* If a blank line is encountered, it must be ignored
* When all lines have been read, the file must be closed
You create the following code. Line numbers are included for reference only.
Which code should you write for line 05 and line 06?
- A.

- B.

- C.

- D.

Answer: A
Explanation:
Explanation/Reference:
https://www.dotnetperls.com/readline-python
NEW QUESTION 37
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.
Answer:
Explanation:
References:
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
NEW QUESTION 38
HOTSPOT
You are developing a Python application for your company.
You write the following code:
Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code segment.
Answer:
Explanation:
Explanation:
References: https://www.w3resource.com/python/python-list.php
NEW QUESTION 39
You are writing a Python program to automate inventory. Your first task is to read a file of inventory transactions. The file contains sales from the previous day, including the item id, price, and quantity.
The following shows a sample of data from the file:
The code must meet the following requirements:
Each line of the file must be read and printed
If a blank line is encountered, it must be ignored
When all lines have been read, the file must be closed
You create the following code. Line numbers are included for reference only.
Which code should you write for line 05 and line 06?
- A. Option B
- B. Option A
- C. Option C
- D. Option D
Answer: A
NEW QUESTION 40
You are writing an application that uses the sqrtfunction. The program must reference the function using the name squareRoot.
You need to import the function.
Which code segment should you use?
- A. from math import sqrt as squareRoot
- B. import math.sqrt as squareRoot
- C. import sqrt from math as squareRoot
- D. from math.sqrt as squareRoot
Answer: A
Explanation:
Section: (none)
Explanation/Reference:
References: https://infohost.nmt.edu/tcc/help/pubs/python/web/import-statement.html
NEW QUESTION 41
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:
Answer:
Explanation:
Explanation/Reference:
References: https://www.w3resource.com/python/python-if-else-statements.php
NEW QUESTION 42
This question requires that you evaluate the underlined text to determine if it is correct.
You write the following code:
The out.txt file does not exist. You run the code. The code will execute without error.
Review the underlined text. If it makes the statement correct, select "No change is needed". If the statement is incorrect, select the answer choice that makes the statement correct.
- A. No change is needed
- B. The code will generate a syntax error
- C. The code will generate a runtime error
- D. The code runs, but generates a logic error
Answer: A
Explanation:
Explanation/Reference:
References: https://docs.python.org/2/library/exceptions.html
NEW QUESTION 43
You are creating a function that reads a data file and prints each line of the file.
You write the following code. Line numbers are included for reference only.
The code attempts to read the file even if the file does not exist.
You need to correct the code.
Which three lines have indentation problems? Each correct answer presents part of the solution. (Choose three.)
- A. Line 02
- B. Line 01
- C. Line 08
- D. Line 03
- E. Line 06
- F. Line 04
- G. Line 07
- H. Line 05
Answer: E
NEW QUESTION 44
You develop a Python application for your company.
You need to accept input from the user and print that information to the user screen.
You have started with the following code. Line numbers are included for reference only.
Which code should you write at line 02?
- A. name = input()
- B. name = input
- C. input(name)
- D. input("name")
Answer: D
NEW QUESTION 45
......
What are the prerequisite for the Microsoft 98-381 exam?
The Microsoft 98-381 exam can be taken by an individual who wants to learn the foundational of Python as well as the advanced concepts for intermediates, or by the absolute beginners who are striving to gain their skills to rise above the horizon. This test is also ideal for those who are seeking to become a recognized Python Developer.
The potential candidates for this certification test should already have hands-on experience of about 100 hours or more within the Python programming language. They need to have the ability to perform operations using data types and operators as well as output and input operations. It is also important to know how to document and structure code, perform operations using tools and modules, perform troubleshooting and error handling, and control flow with decisions and loops.
Pass Your Microsoft Exam with 98-381 Exam Dumps: https://www.braindumpquiz.com/98-381-exam-material.html