Introduction-to-Programming-Using-Python-(98-381) - Microsoft 98-381 Introduction to Programming Using Python http\/\/exam-detail\/98-381

Introduction-to-Programming-Using-Python-(98-381) -...

This preview shows page 1 - 4 out of 9 pages.

98-381 Microsoft Introduction to Programming Using Python
QUESTION: 37 You are creating a Python program that shows a congratulation message to employees on their service anniversary. You need to calculate the number of years of service and print a congratulatory message. You have written the following code. Line numbers are included for reference only. You need to complete the program. Which code should you use at line 03? A. print(“Congratulations on” + (int(end)-int(start)) + “years of service!” B. print(“Congratulations on” + str(int(end)-int(start)) + “years of service!” C. print(“Congratulations on” + int(end - start) + “years of service!” D. print(“Congratulations on” + str(end - start)) + “years of service!” Answer: A QUESTION: 38 Evaluate the following Python arithmetic expression: What is the result? C