0% found this document useful (0 votes)
11 views

Question Sorted According to Hardness!

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Question Sorted According to Hardness!

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Question Sorted According to Hardness!

Basic Level (2-3 Marks Each)


1. Type Conversion in Python
Explain type conversion in Python.
What is type casting? Provide an example.
2. Loops in Python
Define and explain different types of loops in Python.
Provide examples for each loop type.
3. Indentation and Loops
What is indentation in Python? Why is it important?
Differentiate between for loop and while loop. Provide examples.
4. Conditional Statements in Python
Define conditional statements in Python with syntax and an example.
5. Operators in Python
Explain the difference between the == operator and the is operator.
What is a ternary operator in Python?
Is Python function pass-by-reference or pass-by-value?
6. Variable Scope
Differentiate between global and local variables in Python.
Write a program to find the LCM of two numbers.
7. Function Definition and Calling
Define a function in Python. How do you call a function in Python?
Provide an example.
Explain how to pass strings and lists as parameters to a function.
8. Boolean Expressions
Define Boolean expressions and Boolean operators in Python. Explain
with examples.
9. Recursion and Iteration
Define recursion. How is recursion different from iteration? Explain with
examples.
10. Slicing and Indexing
Explain how slicing and indexing work in Python with examples.
Intermediate Level (3-5 Marks Each)
11. Simple Calculator Program
Write a Python program to create a simple calculator.
12. Find LCM
Write a program to find the Least Common Multiple (LCM) of two
numbers.
13. Palindrome Check
Write a program to check whether a given string is a palindrome.
14. Factorial Calculation
Write a program to calculate the factorial of a number using recursion.
15. Find Maximum of Three Numbers
Write a Python program to find the maximum of three numbers.
16. Append Elements to a List
Write a program to append elements in a list.
17. Count Occurrences in a List
Write a program to count the occurrences of a word in a given
sentence.
18. String Operations
Write a Python program to demonstrate the usage of the find() and
index() functions in strings.
19. List Operations
Write a Python program to perform slicing on a list. Also, demonstrate
list operations like pop() , insert() , and extend() .
20. Recursion for Fibonacci
Write a program using recursion to calculate the Fibonacci series up to
n terms.
21. Method Overloading and Overriding
Explain the difference between method overloading and method
overriding in Python with examples.
22. Class Methods and Static Methods
Define class methods and static methods. What is the difference
between them? Provide an example.
23. Garbage Collection
What is garbage collection in Python? How does it work? Give an
example.
24. Access Specifiers in Python
Define access specifiers in Python. Explain public, protected, and
private members with examples.
25. Data Abstraction and Data Hiding
Define data abstraction and data hiding in Python. Discuss their
advantages.
26. Exception Handling
Define an exception in Python. How do you handle exceptions using
try , except , and finally blocks? Provide an example.
27. Positional and Keyword Arguments
What are positional and keyword arguments in Python? Provide
examples.
28. Function Arguments
How do function arguments work in Python? Explain with a suitable
example.
29. Mutable vs Immutable Datatypes
Differentiate between mutable and immutable datatypes in Python.
Provide examples.
30. Indexing and Traversing Lists
Write a program to create a list, count its length, and traverse through
it.

Advanced Level (5-10 Marks Each)


31. Object-Oriented Programming (OOP) Concepts
Write about the key features of Object-Oriented Programming in
Python.
What is inheritance? Explain with an example between a parent and
child class.
32. Method Overloading and Overriding
Explain the difference between method overloading and method
overriding in Python with examples.
33. Super() Function
What is the use of super() in Python? Explain with an example.
34. Modulus Operator
Define modulus operator in Python. Explain its use with an example.
35. Recursion Example: Sum of List
Write a Python program using recursion to calculate the sum of a list of
numbers.
36. Tuple vs List
Explain the difference between a tuple and a list in Python. Provide
examples.
37. Module and Package in Python
Explain the difference between a module and a package in Python.
38. Lambda Functions
Explain the use of lambda functions in Python. Provide an example.
39. Inheritance in Python
Define inheritance. What are the types of inheritance in Python?
Demonstrate the inheritance between a child and parent class.
40. Data Abstraction and Data Hiding
Define data abstraction and data hiding in Python. Discuss their
advantages.
41. Static Method and Class Method
Define static methods and class methods in Python. What is the
difference between them? Provide examples.
42. Instance Methods and Garbage Collection
Define instance methods in Python and explain garbage collection with
examples.
43. Access Specifiers in Python
Define access specifiers in Python. Explain public, protected, and
private members with examples.
44. Exception Handling
Define an exception in Python. How do you handle exceptions using
try , except , and finally blocks? Provide an example.
45. Object-Oriented Programming
Discuss the features of OOP in Python with an example.
46. Multiple Values Assignment
Write a Python program to assign multiple values to multiple variables.
47. Recursion for Factorial and Fibonacci
Write a recursive program to find the factorial of a number and
generate the Fibonacci sequence.
48. Call by Value vs Call by Reference
Define call by value and call by reference. Explain how function
arguments work in Python.
49. Data Structures
Define string, list, tuple, and dictionary. Explain slicing operations in
these data structures.
50. Recursion vs Iteration
Write the difference between recursion and iteration. Discuss the
advantages and disadvantages of recursion.

You might also like