Python Introduction & Core Fundamentals Quiz
A 40-question quiz covering Python introduction, basic syntax, variables, data types, execution model, indentation rules, and foundational concepts.
Question 1
What type of language is Python considered?
Question 2
Which feature makes Python code highly readable?
Question 3
How is Python commonly executed?
Question 4
Which symbol is used to start a comment in Python?
Question 5
What does Python rely on instead of braces to define code blocks?
Question 6
How are variables created in Python?
Question 7
What typing system does Python use?
Question 8
Which of the following is a valid Python data type?
Question 9
What type is returned by the expression 5 / 2 in Python?
Question 10
What does type() do in Python?
Question 11
Which operator is used for exponentiation in Python?
Question 12
What is the result of 10 // 3?
Question 13
What does the 'in' keyword check?
Question 14
What is the boolean value of an empty list?
Question 15
What keyword is used for logical conjunction?
Question 16
Which function prints output to the screen?
Question 17
What does input() return?
Question 18
Which function gives the number of elements in a list?
Question 19
What does int('7') return?
Question 20
What happens if print() is called with no arguments?
Question 21
What type of error results from incorrect indentation?
Question 22
What happens when Python encounters a runtime error?
Question 23
Which error indicates using a variable before assignment?
Question 24
What error occurs when dividing by zero?
Question 25
Which term refers to detecting problems before running the code?
Question 26
What does this code output?
print("Hello")Question 27
What is the result of this code?
x = 5
x = x + 2
print(x)Question 28
What does this produce?
a = "3"
b = 3
print(a == b)Question 29
What is printed by this snippet?
nums = [1, 2, 3]
print(len(nums))Question 30
Which keyword begins a function definition?
Question 31
Which structure holds key-value pairs?
Question 32
What does Python use for grouping multiple values in order?
Question 33
Which symbol is used for string concatenation?
Question 34
Which value represents 'no value' in Python?
Question 35
Which loop repeats a block while a condition remains true?
Question 36
Which keyword exits a loop immediately?
Question 37
Which keyword skips to the next iteration of a loop?
Question 38
What structure is often used to group reusable code?
Question 39
Which file extension is commonly used for Python scripts?
Question 40
Which phrase best describes Python's philosophy?
