Categories

Programming Languages Questions - Python

Download PDF (5 Sample Questions)
Write a Python function to find the factorial of a number using recursion.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
How do you reverse a string in Python? Show 3 different methods.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
Write a Python program to check if a string is a palindrome.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
Explain the difference between `is` and `==` with examples.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
How do you handle multiple exceptions in Python? Provide an example.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
Write a Python function to find the second largest number in a list.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
Explain Python's `*args` and `**kwargs` with a practical example.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
Write a Python decorator that measures execution time of a function.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
How do you create and use a generator function? Provide an example.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
Explain list comprehension vs generator expression with examples.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
Write a Python function to count word frequency in a text.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
What is the difference between shallow copy and deep copy? Show with code.
Programming Languages Python Subjective
Posted: Sep 30, 2025 View Details
Showing 1 to 15 of 221 results
Feedback