D522 Python for IT Automation - Set 5 - Part 1
Test your knowledge of technical writing concepts with these practice questions. Each question includes detailed explanations to help you understand the correct answers.
Question 1: What is the output of print(2 + 3 * 4)?
Question 2: What is the output of print(10 // 3)?
Question 3: What is the output of print(10 % 3)?
Question 4: What is the output of print(len('automation'))?
Question 5: What is the output of print('ab' * 3)?
Question 6: What does 'Hello'[1] return?
Question 7: What does 'Python'[-1] return?
Question 8: What is the output of print(bool(0))?
Question 9: What is the output of print(bool('hello'))?
Question 10: What does list('abc') produce?
Question 11: What is the output of print(list(range(2, 5)))?
Question 12: What does 'a,b,c'.split(',') return?
Question 13: What does ' '.join(['a', 'b', 'c']) return?
Question 14: What is the result of 'Hello'.replace('l', 'L')?
Question 15: What does {1, 2, 2, 3} evaluate to as a set?
Question 16: What does dict(a=1, b=2) create?
Question 17: What is the output of print(sum([1, 2, 3, 4]))?
Question 18: What is the output of print(max([3, 7, 2, 9, 5]))?
Question 19: What is the output of print(min([3, 7, 2, 9, 5]))?
Question 20: What is the output of print(sorted([3, 1, 2]))?
Need Guaranteed Results?
Our exam support service guarantees you'll pass your OA on the first attempt. Pay only after you pass!
Get Exam Support