D522 Python for IT Automation - Final Assessment
Western Governors University
Python for IT Automation
Python for IT Automation - Final Assessment
Pages Total Marks Section Questions
Section 1 Multiple Choice 20 questions 40 total marks
Section 2 Short Answer 6 questions 30 total marks
Section 3 Long Answer 3 questions 30 total marks
Name Student ID
Date Signature
How to use this exam
1 Set a timer. Practice under real exam conditions! No notes, no AI assistance.
2 When finished, scan the QR code on the last page to submit and see the correct answers
with detailed explanations.
3 Review your mistakes carefully and note down areas that need improvement. Use Studocu
AI to create targeted study materials like quizzes, summaries, and study guides.
D522 Python for IT Automation - Final Assessment
, D522 Python for IT Automation - Final Assessment
Section 40 total marks
Multiple Choice
Select the most appropriate answer for each question. Each question is worth 2 marks.
Question 1 2 marks
An administrator is storing a status message in a variable named status. If the code is status = "System
Online", which Python data type is being used?
A int
B bool
C float
D str
Question 2 2 marks
A script receives a numeric input from a user as a string: value = "10". Which code snippet correctly
converts this to an integer and adds 5 to it?
A result = str(value) + 5
B result = value + 5
C result = float(value) + "5"
D result = int(value) + 5
Question 3 2 marks
You have a list of server names: servers = ["srv1", "srv2"]. Which method should be used to add "srv3" to
the end of the existing list?
A servers.remove("srv3")
B servers.pop("srv3")
C servers.insert(0, "srv3")
D servers.append("srv3")
D522 Python for IT Automation - Final Assessment
Western Governors University
Python for IT Automation
Python for IT Automation - Final Assessment
Pages Total Marks Section Questions
Section 1 Multiple Choice 20 questions 40 total marks
Section 2 Short Answer 6 questions 30 total marks
Section 3 Long Answer 3 questions 30 total marks
Name Student ID
Date Signature
How to use this exam
1 Set a timer. Practice under real exam conditions! No notes, no AI assistance.
2 When finished, scan the QR code on the last page to submit and see the correct answers
with detailed explanations.
3 Review your mistakes carefully and note down areas that need improvement. Use Studocu
AI to create targeted study materials like quizzes, summaries, and study guides.
D522 Python for IT Automation - Final Assessment
, D522 Python for IT Automation - Final Assessment
Section 40 total marks
Multiple Choice
Select the most appropriate answer for each question. Each question is worth 2 marks.
Question 1 2 marks
An administrator is storing a status message in a variable named status. If the code is status = "System
Online", which Python data type is being used?
A int
B bool
C float
D str
Question 2 2 marks
A script receives a numeric input from a user as a string: value = "10". Which code snippet correctly
converts this to an integer and adds 5 to it?
A result = str(value) + 5
B result = value + 5
C result = float(value) + "5"
D result = int(value) + 5
Question 3 2 marks
You have a list of server names: servers = ["srv1", "srv2"]. Which method should be used to add "srv3" to
the end of the existing list?
A servers.remove("srv3")
B servers.pop("srv3")
C servers.insert(0, "srv3")
D servers.append("srv3")
D522 Python for IT Automation - Final Assessment