🔗 Shared Quiz

Python Programming Fundamentals

Topic: Python Programming • Shared by team • 5 questions

Question 1
Which keyword defines a function in Python?
💡 Explanation
'def' is correct because Python uses the 'def' keyword to define a named function.
Question 2
What data type is the value [1, 2, 3] in Python?
💡 Explanation
List is correct because square brackets denote a mutable, ordered list in Python.
Question 3
Which symbol starts a single-line comment in Python?
💡 Explanation
'#' is correct because Python single-line comments begin with the hash symbol.
Question 4
What function outputs text to the console in Python?
💡 Explanation
print() is correct because it is Python's built-in function for displaying output.
Question 5
Which of these creates a key-value pair structure?
💡 Explanation
Dictionary is correct because it stores data as key-value pairs using curly braces.
0/0
Questions Correct