Module 1 challenge :Get Started with Python (Google Advanced Data Analytics Professional Certificate) Answers 2025
Question 1
Benefits of Python (Select all that apply):
-
Python is a low-level language. ❌
-
Python is versatile. ✅
-
Python has a large and supportive user community. ✅
-
Python is based on simple syntax. ✅
Explanation:
Python is high-level, easy to read, supports many tasks, and has thousands of open-source libraries.
Question 2
Fill in the blank:
The open-source web application _____ enables modular code cells and collaboration.
-
Dynamic coding ❌
-
Jupyter Notebook ✅
-
Dot notation ❌
-
Implicit analysis ❌
Explanation:
Jupyter Notebook allows code to be organized into cells and supports collaboration.
Question 3
In Python, a _____ bundles data and functionality together.
-
keyword ❌
-
method ❌
-
float ❌
-
class ✅
Explanation:
A class defines both data and behaviors for objects.
Question 4
Storing a value in a variable is called:
-
Syntax ❌
-
Assignment ✅
-
Conversion ❌
-
Expression ❌
Explanation:
Assignment uses = to store a value in a variable.
Question 5
Reasons a variable name may cause an error (Select all):
-
More than one underscore ❌ (allowed)
-
Reserved keywords ✅
-
More than one number ❌ (allowed)
-
Reserved functions ✅
Explanation:
Python forbids naming variables using keywords (for, class, return) or built-in functions (print, list, etc.).
Question 6
Effective variable names (Select all):
-
fun_with_variables ✅
-
fun_for_variables ✅
-
fun(variables) ❌ (invalid characters)
-
fun variable$ ❌ (spaces and
$not allowed)
Explanation:
Variable names can use letters, numbers, and underscores only.
Question 7
Data type representing numbers with decimals:
-
Float ✅
-
Integer ❌
-
Boolean ❌
-
String ❌
Explanation:
Floats store decimal values.
Question 8
Converting floats into strings using a function is:
-
Implicit conversion ❌
-
Explicit conversion ✅
-
Immutable conversion ❌
-
Mutable conversion ❌
Explanation:
Explicit conversion uses commands like str(3.14).
Question 9
Output of cell 3 after running all cells in order:
Cell 1 → x = 5
Cell 2 → x = 10
Cell 3 → print(x) then x = 20
Output = 10
-
10 ✅
-
20 ❌
-
x ❌
-
5 ❌
Explanation:print(x) executes before x = 20 in the same cell.
Question 10
Which are valid Python statements (no errors)? (Select all)
-
15.56 \ x ❌ (backslash invalid in this context)
-
6 > 3 ✅
-
x == 2 ✅
-
14 % 2 ✅
Explanation:>, ==, and % are valid operators. 15.56 \ x is invalid syntax.
🧾 Summary Table
| Q# | Correct Answer(s) |
|---|---|
| 1 | Versatile, large community, simple syntax |
| 2 | Jupyter Notebook |
| 3 | class |
| 4 | Assignment |
| 5 | Reserved keywords, reserved functions |
| 6 | fun_with_variables, fun_for_variables |
| 7 | Float |
| 8 | Explicit conversion |
| 9 | 10 |
| 10 | 6 > 3, x == 2, 14 % 2 |