Question 1: Python Variable Assignment
Which of the following is a valid variable declaration in Python?
Question 2: Python Arithmetic Operator
What will be the output of the following code?
Question 3: Python Integer Casting
What will be the output of the following code?
Question 4: Python While Loop Execution
What will be the output of the following code?
Question 5: Python If-Else Condition
What will be the output of this code?
Question 6: Python Functions - Default Arguments
What will be the output of the following code?
Question 7: Python Lists - Creation
Which of the following is a valid way to create a list?
Question 8: Python Dictionaries - Creation
Which of the following is a valid way to create a dictionary?
Question 9: Python Strings - Creation
Which of the following is a valid way to create a string?
Question 10: Python OOPs - Class Creation
Which of the following correctly defines a class in Python?
Question 11: Python Data Type Identification
What will be the data type of x after execution?
Question 12: Python Exponentiation Operator
Which of the following is the correct operator for exponentiation (power) in Python?
Question 13: Python Float Casting
What will be the output of the following code?
Question 14: Python For Loop with Range
What will this code output?
Question 15: Python If-Elif-Else Ladder
What is the output?
Question 16: Python Functions - Built-in len()
What does len("Python") return?
Question 17: Python Tuples - Immutability
What happens when you execute the following?
Question 18: Python Dictionaries - Accessing Values
What will be the output?
Question 19: Python Strings - Indexing
What will this code print?
Question 20: Python OOPs - Object Instantiation
What is the correct way to create an object of a class Person?