0% found this document useful (0 votes)
7 views10 pages

Master Python in 100 Questions

The document contains a comprehensive list of 100 programming questions categorized into three levels: Easy, Medium, and Hard. Each category includes various topics such as basic Python programming, object-oriented programming, data structures, algorithms, and real-world applications. The questions range from simple tasks like printing 'Hello, World!' to complex challenges like implementing a REST API and solving algorithmic problems.

Uploaded by

anchalk7480
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)
7 views10 pages

Master Python in 100 Questions

The document contains a comprehensive list of 100 programming questions categorized into three levels: Easy, Medium, and Hard. Each category includes various topics such as basic Python programming, object-oriented programming, data structures, algorithms, and real-world applications. The questions range from simple tasks like printing 'Hello, World!' to complex challenges like implementing a REST API and solving algorithmic problems.

Uploaded by

anchalk7480
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

Job ready questions

100 questions from easy to advance

Easy (basic 30 Q)
​ 1. Write a Python program to print "Hello, World!".

​ 2. Take user input and print it in reverse order.

​ 3. Find the largest of 3 numbers without using built-in max().

​ 4. Swap two variables without using a third variable.

​ 5. Check if a number is prime.

​ 6. Print Fibonacci series up to n terms.


2

​ 7. Count vowels and consonants in a string.

​ 8. Find factorial of a number (loop + recursion).

​ 9. Reverse a string without using slicing.

​ 10. Check if a string is a palindrome.

​ 11. Print multiplication table of a number.

​ 12. Sum of digits of a number.

​ 13. Find GCD and LCM of two numbers.

​ 14. Find the second largest number in a list.

​ 15. Remove duplicates from a list.

​ 16. Sort a list without using sort().

​ 17. Merge two sorted lists into one sorted list.


3

​ 18. Find common elements in two lists.

​ 19. Write a program to check Armstrong number.

​ 20. Print first n prime numbers.

​ 21. Convert decimal to binary without using bin().

​ 22. Count frequency of elements in a list.

​ 23. Find missing number in an array [1…n].

​ 24. Find sum of even and odd numbers separately.

​ 25. Write a program to check if two strings are anagrams.

​ 26. Remove all punctuations from a string.

​ 27. Write a program to generate random numbers.

​ 28. Convert Celsius to Fahrenheit and vice versa.


4

​ 29. Calculate simple and compound interest.

​ 30. Write a calculator using functions

🔹 Medium (35 Qs – OOP, DS, Libraries, Errors)


​ .31. Implement a stack using list.

​ 32. Implement a queue using list.

​ 33. Implement a linked list.

​ 34. Implement a binary search tree with insert + inorder traversal.

​ 35. Implement binary search on a sorted list.

​ 36. Implement linear search.

​ 37. Count words in a file.


5

​ 38. Read a CSV file and print contents.

​ 39. Write a Python class for a Bank account (deposit, withdraw, balance).

​ 40. Write a class for a Student with attributes + methods.

​ 41. Create a class that implements inheritance.

​ 42. Demonstrate polymorphism in Python.

​ 43. Create a simple decorator function.

​ 44. Write a generator function for Fibonacci numbers.

​ 45. Write a program using map(), reduce(), filter().

​ 46. Handle divide by zero exception gracefully.

​ 47. Write a context manager using with.

​ 48. Demonstrate list comprehension + dict comprehension with examples.


6

​ 49. Flatten a nested list.

​ 50. Count the frequency of words in a sentence using dictionary.

​ 51. Implement a phonebook using dictionary.

​ 52. Merge two dictionaries.

​ 53. Write a program to convert JSON string to Python dict and vice versa.

​ 54. Sort dictionary by values.

​ 55. Use lambda to sort a list of tuples.

​ 56. Write a program to scrape data from a webpage using requests +


BeautifulSoup.

​ 57. Automate sending emails using smtplib.

​ 58. Write a program to read/write Excel using openpyxl.

​ 59. Write a program to plot a graph using matplotlib.


7

​ 60. Use numpy to perform matrix multiplication.

​ 61. Use pandas to read a dataset and calculate mean, median, mode.

​ 62. Write a program to create a SQLite database and insert data.

​ 63. Fetch data from an API using requests.

​ 64. Implement logging in Python.

​ 65. Write a unit test for a function using unittest.

🔹 Hard (35 Qs – Job-level, Algorithms, Real-world)


​ 66. Implement quicksort.

​ 67. Implement mergesort.

​ 68. Implement heap sort.

​ 69. Find shortest path in a graph (Dijkstra’s algorithm).

​ 70. Implement BFS and DFS.


8

​ 71. Detect cycle in a graph.

​ 72. Find the longest common subsequence between two strings.

​ 73. Implement a trie (prefix tree).

​ 74. Solve the N-Queens problem.

​ 75. Find all permutations of a string.

​ 76. Find all subsets of a list (power set).

​ 77. Implement a simple caching system with dictionary (LRU cache).

​ 78. Multithreading: print numbers 1–10 using 2 threads.

​ 79. Multiprocessing: calculate factorials of a list of numbers.

​ 80. AsyncIO: make concurrent API requests.

​ 81. Implement a REST API using Flask/FastAPI.


9

​ 82. Build a simple CRUD application with SQLite + Flask.

​ 83. Parse logs and extract useful information (error frequency, timestamps).

​ 84. Build a command-line calculator with argparse.

​ 85. Simulate a basic ATM machine using OOP.

​ 86. Implement a to-do list app with file storage.

​ 87. Create a small weather app that fetches real-time API data.

​ 88. Write a program that compresses and decompresses files.

​ 89. Implement image processing using OpenCV (convert image to grayscale).

​ 90. Build a password generator.

​ 91. Check password strength (length, numbers, symbols).

​ 92. Implement a chatbot using Python basics (rule-based).


10

​ 93. Web scraping + store data in CSV.

​ 94. Create a URL shortener.

​ 95. Implement JWT-based authentication with Flask/FastAPI.

​ 96. Simulate producer-consumer problem using threads.

​ 97. Solve the knapsack problem (DP).

​ 98. Solve coin change problem (DP).

​ 99. Write a Python script to backup files automatically.


​ 100. Build a mini project: Notes App / Blog / Portfolio backend with Flask.

Done

You might also like