D522 Python for IT Automation - Set 5 - Part 2

Test your knowledge of technical writing concepts with these practice questions. Each question includes detailed explanations to help you understand the correct answers.

Question 21: What does 'HELLO'.lower() return?

Question 22: What is the output of print(abs(-7))?

Question 23: What does round(3.567, 1) return?

Question 24: What is the output of print(type(5))?

Question 25: What is the result of int('10') + 5?

Question 26: What is the result of str(10) + '5'?

Question 27: What does ' data '.strip() return?

Question 28: What is the output of print(3 > 2 and 5 > 4)?

Question 29: What is the output of print(3 > 5 or 2 < 4)?

Question 30: What is the output of print(not True)?

Question 31: What does 'automation'.startswith('auto') return?

Question 32: What does 'report.txt'.endswith('.txt') return?

Question 33: What is the output of print('abc'.upper())?

Question 34: What does list(range(0, 10, 2)) produce?

Question 35: What is the output of print(len([1, [2, 3], 4]))?

Question 36: What does 'Hello World'.split() return with no argument?

Question 37: What is the output of print(2 ** 5)?

Question 38: What does a Python dictionary's get('x', 0) return if 'x' is not a key?

Question 39: What is the output of print('yes' if 5 > 3 else 'no')?

Question 40: What does the expression [x*x for x in range(4)] produce?


Complete the Captcha to view next question set.


Quick View

Don't Want to Study?

Save Time on Studies, Spend More with Family & Friends! Pay-After-you-Pass!

Get Exam Support