D522 Python for IT Automation - Set 1 - 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: Which Python function outputs text to the console?

Question 2: How do you write a single-line comment in Python?

Question 3: Which data type would Python assign to the value 42?

Question 4: Which data type represents text in Python?

Question 5: What are the two Boolean values in Python?

Question 6: How do you create a variable named count with the value 5?

Question 7: Which function converts a string to an integer?

Question 8: Which function returns the length of a list or string?

Question 9: How do you access the first element of a list named items?

Question 10: Which symbol is used for the modulo (remainder) operation in Python?

Question 11: What does the ** operator do in Python?

Question 12: What does the // operator do in Python?

Question 13: How do you define a function in Python?

Question 14: What keyword sends a value back from a function?

Question 15: Which structure defines a block of code in Python?

Question 16: How do you start a for loop that iterates over a list named data?

Question 17: Which function generates a sequence of numbers for looping?

Question 18: What does range(3) produce?

Question 19: What is a while loop used for?

Question 20: Which statement immediately exits a loop?


Complete the Captcha to view next question set.


Quick View

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