Click here to view complete Q&A of 98-381 exam
Certkingdom Review, Certkingdom PDF Torrents
Best Microsoft MTA 98-381 Certification, MTA 98-382 Training at certkingdom.com
Published: August 23, 2017
Languages: English, Japanese, Chinese (Traditional), Chinese (Simplified), Spanish, Portuguese (Brazil), French, German, Korean
Audiences: IT professionals, Developers, Information workers
Technology: Python (version 3.6 or later)
Credit toward certification: MTA
Skills measured
This exam measures your ability to accomplish the technical tasks listed below. View video tutorials about the variety of question types on Microsoft exams.
Please note that the questions may test on, but will not be limited to, the topics described in the bulleted text.
Do you have feedback about the relevance of the skills measured on this exam? Please send Microsoft your comments. All feedback will be reviewed and incorporated as appropriate while still maintaining the validity and reliability of the certification process. Note that Microsoft will not respond directly to your feedback. We appreciate your input in ensuring the quality of the Microsoft Certification program.
If you have concerns about specific questions on this exam, please submit an exam challenge.
If you have other questions or feedback about Microsoft Certification exams or about the certification program, registration, or promotions, please contact your Regional Service Center.
Perform Operations using Data Types and Operators (20-25%)
Evaluate an expression to identify the data type Python will assign to each variable
Identify str, int, float, and bool data types
Perform data and data type operations
Convert from one data type to another type; construct data structures; perform indexing and slicing operations
Determine the sequence of execution based on operator precedence
Assignment; Comparison; Logical; Arithmetic; Identity (is); Containment (in)
Select the appropriate operator to achieve the intended result
Assignment; Comparison; Logical; Arithmetic; Identity (is); Containment (in)
Control Flow with Decisions and Loops (25-30%)
Construct and analyze code segments that use branching statements
if; elif; else; nested and compound conditional expressions
Construct and analyze code segments that perform iteration
while; for; break; continue; pass; nested loops and loops that include compound conditional expressions
Perform Input and Output Operations (20-25%)
Construct and analyze code segments that perform file input and output operations
Open; close; read; write; append; check existence; delete; with statement
Construct and analyze code segments that perform console input and output operations
Read input from console; print formatted text; use of command line arguments
Document and Structure Code (15-20%)
Document code segments using comments and documentation strings
Use indentation, white space, comments, and documentation strings; generate documentation by using pydoc
Construct and analyze code segments that include function definitions
Call signatures; default values; return; def; pass
Perform Troubleshooting and Error Handling (5-10%)
Analyze, detect, and fix code segments that have errors
Syntax errors; logic errors; runtime errors
Analyze and construct code segments that handle exceptions
Try; except; else; finally; raise
Perform Operations Using Modules and Tools (1-5%)
Perform basic operations using built-in modules
Math; datetime; io; sys; os; os.path; random
Solve complex computing problems by using built-in modules
Math; datetime; random
QUESTION 1
You are writing an application that uses the sqrt function. The program must reference the function using the name squareRoot.
You need to import the function.
Which code segment should you use?
A. import math.sqrt as squareRoot
B. import sqrt from math as squareRoot
C. from math import sqrt as squareRoot
D. from math.sqrt as squareRoot
Answer: C
Explanation:
References: https://infohost.nmt.edu/tcc/help/pubs/python/web/import-statement.html
QUESTION 2
You are creating a function that manipulates a number. The function has the following requirements:
? A float is passed into the function
? The function must take the absolute value of the float
? Any decimal points after the integer must be removed
Which two math functions should you use? Each correct answer is part of the solution? (Choose two.)
A. math.fmod(x)
B. math.frexp(x)
C. math.floor(x)
D. math.ceil(x)
E. math.fabs(x)
Answer: D,E
QUESTION 3
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 = input(“How many items would you like?”)
B. totalItems = float(input(“How many items would you like?”))
C. totalItems = str(input(“How many items would you like?”))
D. totalItems = int(input(“How many items would you like?”))
Answer: A
Explanation:
QUESTION 4
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?
A. open(“local_data”, “r”)
B. open(“local_data”, “r+”)
C. open(“local_data”, “w+”)
D. open(“local_data”, “w”)
Answer: B
Explanation:
Click here to view complete Q&A of 98-381 exam
Certkingdom Review, Certkingdom PDF Torrents
Best Microsoft MTA 98-381 Certification, MTA 98-382 Training at certkingdom.com
No description.Please update your profile.
@ 2016 Certkingdom.com-Developed By Certkingdom.com