Career upgrade: Learn practical AI skills for better jobs and higher pay.
Level up
All Practice Exams

100+ Free Google IT Automation with Python Practice Questions

Pass your Google IT Automation with Python Professional Certificate exam on the first try — instant access, no signup required.

✓ No registration✓ No credit card✓ No hidden fees✓ Start practicing immediately
N/A Pass Rate
100+ Questions
100% Free
1 / 100
Question 1
Score: 0/0

Which of the following is a valid way to declare a variable in Python?

A
B
C
D
to track
2026 Statistics

Key Facts: Google IT Automation with Python Exam

6 courses

Program Structure

Google/Coursera

~6 months

Completion Time

Google estimate (10 hrs/week)

$49/mo

Coursera Fee

Coursera (subscription)

Python 3

Language Version

Coursera curriculum

$103,000

Median Python Dev Salary

BLS 2024 (software developers)

150+ employers

Employer Consortium

Google Career Certificates

The Google IT Automation with Python Professional Certificate consists of 6 courses on Coursera: Crash Course on Python; Using Python to Interact with the Operating System; Introduction to Git and GitHub; Troubleshooting and Debugging Techniques; Configuration Management and the Cloud; and Automating Real-World Tasks with Python. It does not have a traditional proctored final exam — learners complete graded quizzes, hands-on Qwiklabs, and a capstone project. The certificate is positioned as the advanced follow-up to the Google IT Support Certificate and prepares learners for junior DevOps, SRE, and IT automation roles.

Sample Google IT Automation with Python Practice Questions

Try these sample questions to test your Google IT Automation with Python exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.

1Which of the following is a valid way to declare a variable in Python?
A.var name = "Alice"
B.name := "Alice"
C.name = "Alice"
D.let name = "Alice"
Explanation: Python uses simple assignment with the = operator and does not require keywords like var, let, or :=. The variable type is inferred from the value, so name = "Alice" creates a string variable. The walrus operator := exists in Python 3.8+ but is for assignment expressions inside larger expressions, not standalone variable declarations.
2What is the output of: print(type([1, 2, 3]))?
A.<class 'tuple'>
B.<class 'list'>
C.<class 'array'>
D.<class 'set'>
Explanation: Square brackets [] in Python create a list. The type() function returns the class of an object — in this case <class 'list'>. Tuples use parentheses (1, 2, 3), sets use curly braces {1, 2, 3}, and Python has no built-in 'array' type (the array module exists but is rarely used; numpy.array is third-party).
3Which Python data type is immutable?
A.list
B.dict
C.tuple
D.set
Explanation: Tuples are immutable — once created, their elements cannot be changed, added, or removed. Lists, dictionaries, and sets are all mutable. Immutability matters because immutable types can be used as dictionary keys and are hashable, while mutable types cannot. Other immutable types include str, int, float, bool, and frozenset.
4What does the following code print? for i in range(3): print(i)
A.1 2 3
B.0 1 2 3
C.0 1 2
D.1 2
Explanation: range(3) generates the sequence 0, 1, 2 — it starts at 0 by default and stops BEFORE the stop value (3 is exclusive). So the loop prints 0, 1, 2 on separate lines. range(start, stop) or range(start, stop, step) gives more control. This off-by-one behavior is a common source of bugs.
5How do you correctly define a function named greet in Python?
A.function greet():
B.def greet():
C.func greet():
D.define greet():
Explanation: Python uses the def keyword to define functions, followed by the function name, parentheses for parameters, and a colon. The function body is indented. JavaScript uses 'function', Rust uses 'fn', and some pseudocode uses 'define', but Python's syntax is strictly 'def name(params):'.
6What is the result of: "hello"[1:4]?
A."hell"
B."hello"
C."ell"
D."ello"
Explanation: Python string slicing uses [start:stop] where start is inclusive and stop is exclusive. "hello"[1:4] returns characters at indices 1, 2, 3 — which are 'e', 'l', 'l' → "ell". Index 0 is 'h', index 4 is 'o' (not included). Negative indices count from the end; "hello"[-2:] would give "lo".
7Which method adds an item to the end of a Python list?
A.push()
B.add()
C.append()
D.insert()
Explanation: list.append(x) adds x to the end of the list — this is the standard Python idiom. push() is a JavaScript array method, add() is for sets, and insert(i, x) inserts at a specific index i (which is slower for large lists). Use append for the common 'add to end' case.
8What is the correct way to check if a key exists in a Python dictionary?
A.if key.exists(dict):
B.if key in dict:
C.if dict.has_key(key):
D.if dict.contains(key):
Explanation: The pythonic way is 'if key in dict:' — the 'in' operator checks dictionary keys (not values) in O(1) time. dict.has_key() existed in Python 2 but was removed in Python 3. There is no .exists() or .contains() method on dicts. To check values, use 'if value in dict.values():'.
9What is the output of: print(2 ** 3)?
A.6
B.8
C.9
D.5
Explanation: The ** operator in Python is exponentiation, so 2 ** 3 means 2 to the power of 3 = 8. Do not confuse with * (multiplication, would give 6) or ^ which is bitwise XOR in Python (not exponentiation as in some other languages). For square root, use 0.5 as the exponent: 16 ** 0.5 == 4.0.
10Which keyword is used to handle exceptions in Python?
A.catch
B.except
C.handle
D.rescue
Explanation: Python uses try/except/finally for exception handling. The 'except' keyword catches exceptions raised in the corresponding try block. Java and C# use 'catch', Ruby uses 'rescue', but Python's syntax is 'try: ... except SomeError as e: ...'. You can catch multiple exceptions, use bare 'except:' (discouraged), or re-raise with 'raise'.

About the Google IT Automation with Python Exam

The Google IT Automation with Python Professional Certificate is an advanced-tier Career Certificate offered through Coursera, developed by Google. It builds on the Google IT Support Certificate by teaching practical Python scripting, version control with Git and GitHub, configuration management with Puppet, troubleshooting techniques, and cloud automation. The program spans 6 courses and typically takes ~6 months at 10 hours per week.

Questions

100 scored questions

Time Limit

120 minutes

Passing Score

80% recommended

Exam Fee

~$49/mo Coursera subscription (Free with financial aid) (Google / Coursera)

Google IT Automation with Python Exam Content Outline

17%

Crash Course on Python

Python syntax basics — variables, data types (strings, lists, tuples, dictionaries), conditionals, for/while loops, functions, classes and OOP fundamentals, error handling with try/except, and recursion

17%

Python for OS Interaction

Regular expressions (re module patterns, groups, quantifiers), file I/O, CSV parsing, managing files and directories with os/shutil/pathlib, subprocess for shell commands, and bash scripting basics

17%

Git and GitHub

Git basics (init, add, commit, status, log, diff), branching and merging, remotes (push, pull, fetch), resolving conflicts, .gitignore, GitHub workflow (fork, clone, PR), and collaboration patterns

16%

Troubleshooting and Debugging

Debugging methodology, distinguishing slowness vs crashes vs incorrect behavior, profiling with cProfile, memory profilers, log analysis, race conditions, and debugging hardware/network/software issues

17%

Configuration Management and the Cloud

Puppet (manifests, classes, modules, templates, idempotence, Hiera), automation at scale, cloud platforms (GCP/AWS/Azure), Compute Engine, load balancing, image management, monitoring, and logging

16%

Real-World Python Automation

Capstone — image processing with Pillow, HTTP requests with the requests library, REST API consumption, sending emails with smtplib, generating PDFs with ReportLab, and processing CSV data

How to Pass the Google IT Automation with Python Exam

What You Need to Know

  • Passing score: 80% recommended
  • Exam length: 100 questions
  • Time limit: 120 minutes
  • Exam fee: ~$49/mo Coursera subscription (Free with financial aid)

Keys to Passing

  • Complete 500+ practice questions
  • Score 80%+ consistently before scheduling
  • Focus on highest-weighted sections
  • Use our AI tutor for tough concepts

Google IT Automation with Python Study Tips from Top Performers

1Type every code example by hand — Python syntax sticks when you type it; do not just copy-paste from videos or notebooks
2Master regular expressions early — the re module appears across Course 2 quizzes, capstone projects, and real automation work; practice with regex101.com
3Use Git for every project, even solo ones — the muscle memory of git add, commit, push, and branching only develops through daily use
4Build a personal automation script after each course — a file organizer, log parser, or backup script reinforces concepts and gives you portfolio material
5Learn the difference between mutable (list, dict, set) and immutable (str, tuple, int) types — many bugs and quiz traps hinge on this distinction

Frequently Asked Questions

Does the Google IT Automation with Python Certificate have a final exam?

No. The Google IT Automation with Python Professional Certificate does not have a single proctored final exam. Instead, each of the 6 courses on Coursera has graded quizzes, hands-on Qwiklabs virtual labs, and a capstone project in Course 6. Learners must score at least 80% on graded items to pass each course and earn the certificate. The program is self-paced and project-based.

How long does it take to complete the Google IT Automation with Python certificate?

Google estimates the program takes approximately 6 months at 10 hours per week (about 220–260 hours total) for learners new to programming. Learners with prior Python or scripting experience often complete it in 2–3 months. The program is self-paced on Coursera, so you can move faster or slower based on your schedule and prior knowledge.

Do I need the Google IT Support Certificate before starting IT Automation with Python?

No, it is not strictly required, but it is recommended. The IT Automation program assumes familiarity with operating systems, basic networking, and command-line work — all covered by the Google IT Support Certificate. Learners with equivalent IT fundamentals (CompTIA A+ level knowledge) can jump directly into IT Automation. No prior programming experience is required — Course 1 teaches Python from scratch.

Is the Google IT Automation with Python Certificate worth it?

Yes — especially for IT support professionals looking to move into DevOps, SRE, or automation engineering. The certificate teaches practical Python scripting, Git/GitHub, Puppet configuration management, and cloud basics. Python developer median salary is around $103,000 (BLS 2024 for software developers). The certificate is recognized by Google's employer consortium and prepares learners for roles like junior DevOps engineer, SRE, IT automation specialist, and Python developer with IT focus.

What Python libraries does the Google IT Automation Certificate teach?

The program covers standard library modules including re (regular expressions), os, shutil, pathlib, subprocess, csv, smtplib, datetime, and json. It also teaches popular third-party libraries: Pillow (PIL) for image processing, requests for HTTP and REST API consumption, and ReportLab for PDF generation. Puppet is taught for configuration management. Git and GitHub are taught for version control and collaboration.