Microsoft Python Certification Exam 98-281 & PCEP Preparation Guide
Introduction To Programming Using Python
PCEP Certified Entry Level Python Programmer
Raman Publications
R. Raman
Dhyanashri Raman
Archith Raman
Copyright 2021 Raman Publications
All rights reserved.
ISBN : 9798589463590
Table of Contents
1 Introduction Microsoft & PCEP Certification Guide
- This exam guide prepares a student to get a Microsoft certification Exam-98-281 Introduction to programming using Python.
- This exam guide also prepares the student to get a PCEP Certified entry level Python Programmer, awarded by the Python institute.
- This guide assumes certain level of programming knowledge. It is not a beginner text book.
Pre-Requisites:
- Basic programming language skills using Python with hands on experience
Microsoft Certification Exam Details:
- Total Questions: 40
- Total Duration: 45 minutes
- Python certification: 98-381 Introduction to programming using python
- Minimum Pass score: 70%
Useful Links:
- Link to details : https://www.microsoft.com/en-us/learning/exam-98-381.aspx
- Syllabus Link : https://www.microsoft.com/en-us/learning/course.aspx?cid=55264
About this Exam Guide
This guide has four individual modules & practice tests and two full final practice tests. The 6 modules are as follows:
- Module 1: Perform Operations Using Data Types and Operators (20 25%)
- Module 2: Control Flow with Decisions & Loops (25-30%)
- Module 3: Perform input/output operations using console & Files Code (20-25%)
- Module 4: Document & Structure Code, Error/Exceptions, Module/Tools (20-25%)
- Module 5: Python Certification Microsoft 98-381 Full Practice Test #1
- Module 6: Python Certification Microsoft 98-381 Full Practice Test #2
Thank you for your Purchase: Here is our additional little gift:
If you need to access an online version of this same exact guide in the test format with timer and scoring enabled. for an 70% discount on Udemy please contact us at : . We will be able to send you a link to the discounted Udemy course for you to practice real time. Now lets get to the course
GOOD LUCK TO GET CERTIFIED
2 Module 1: Perform operations using data types & operators
Module 1: Perform Operations Using Data Types and Operators (20 25%) - Test #1
In this module the following concepts will be tested: . This is the first module in the syllabus.
Assign data types to variables.
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
Perform Arithmetic, Comparison and Logical Operations
Determine the sequence of execution based on operator precedence
Select the appropriate operator to achieve the intended result
Module 1- Practice Test 1 Total Time: 45 Minutes; Minimum Pass score is: 70%
Answers Module 1, Practice Test 1
Module Questions | Answer & Explanation |
M1Q1 | Answer: 2. Output Value of a is : False Value of b is : 1 First 2 lines assign values to variables a and b using the assignment operator. Line 3: There are 2 operators used, Lne4:First one is python comparison operator ==. It compares values of a and b and returns a boolean result. In this case a == b evaluates to be False. Hence value of False is assigned to a. So the output of this program is : Value of a is : False Value of b is : 1 |
M1Q2 | Answer: 5. m will get the value of 5. Since there is a conversion of the float to int explicitly for m, m = int(i/2) = int(5.5) = 5. For others, j,k,l all will be evaluated as float and will get a value of 5.5 |
M1Q3 | Answer: 1, 3. Statement 3 & Statement 4 will give errors. Arithmetic operators like multiplication, division is not allowed when using strings. However, Statement 1, Statement 2 are correct. the output for those will be : s1=ab and s2 = ac Since string addition is an allowed operation. |
M1Q4 | Answer: 3. 6 Length of the string without spaces is 5. len(s1.rstrip() ) length = 8 means length of the string with spaces on left is 8. ( Right spaces are trimmed here ) Hence number of spaces on the left is 8-5 = 3. Now len(s1.lstrip() ) = 8 which means all the left spaces are trimmed and length of the string including the right spaces is 8. Hence the number of spaces on the right is 8-5 = 3. So the total number of spaces is : Spaces on left + spaces on right = 3+ 3 = 6 |
M1Q5 | Answer: 3,4 v is true since it has one array element in it and the value of the element is false. So count of v is non zero hence v is true Same with x, x has one element and hence of count is non zero and x is true z has a space element in it. count of z is also one making z as true as well y on the other hand is an empty string so bool of an empty string will result in false. So y is false. |
M1Q6 | Answer: 4 First two lines assign values to variables a and b using the assignment operator. Line 3: There are 2 operators used, First one is python comparison operator == . It compares values of a and b and returns a boolean result. In this case a == b evaluates to be False . Hence value of False is assigned to a. So the output of this program is : Value of a is : False Value of b is : 1 |
M1Q7 | Answer: 1,2,3,4 print (s1[1:2] ) In this statement the string from index 1 is picked which is the second position of the string. S1[1] = e print ( s1[1:-3] ) In this statement, the index is counted from the right most and the character next to the character 3 positions from right is picked which is e print ( s1[1] ) character at position 1 is picked which is again e print ( s1[-4]). In this, the 4th character from the right is picked which is also e |
M1Q8 | Answer: 1, 2 k-= q = 6 + 2j - 6 - 2j = 0.0 + 0.0j. Both real and imaginary parts are zero. k = k - (-q) = 6 +2j - ( 6 + 2j ) = 0.0 + 0.0j both real and imaginary parts are zero. For the other 2 equations the value of K is non zero for both real and imaginary parts. k = 12 + 4j ( for k -=q ) k = 24 + 8j ( for k = k - q - q ) |
M1Q8 | Answer: 4 S1[:n} when n=5 wil assign all characters from the 5th position to the left of the string So a = Hello b will be all characters from 5th position to the right of the string. So b = Welcome Good bye When you add a and b both will give the original string. |