🧠
QuizForge
🧠
Quizzes
🃏
Flashcards
📚
Templates
🌐
Explore
💎
Pricing
Log In
Sign Up
🌙
🔗
Shared Quiz
Python Programming Fundamentals
Topic: Python Programming • Shared by team • 5 questions
Question 1
Which keyword defines a function in Python?
A
func
B
def
C
function
D
lambda
💡 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?
A
Tuple
B
Dictionary
C
List
D
Set
💡 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?
A
//
B
#
C
/*
D
--
💡 Explanation
'#' is correct because Python single-line comments begin with the hash symbol.
Question 4
What function outputs text to the console in Python?
A
echo()
B
console.log()
C
print()
D
write()
💡 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?
A
List
B
Tuple
C
Dictionary
D
String
💡 Explanation
Dictionary is correct because it stores data as key-value pairs using curly braces.
Submit Answers
0/0
Questions Correct
Create Your Own Quiz
Sign Up Free