0% found this document useful (0 votes)
5 views2 pages

Imp Questions Python

The document contains a list of important questions related to fundamental concepts and problem-solving using Python for B.Tech CSE students. It covers various topics including Python features, data types, control structures, functions, and error handling, along with programming tasks. The questions aim to assess understanding and application of Python programming concepts.

Uploaded by

nikhiljha8468
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)
5 views2 pages

Imp Questions Python

The document contains a list of important questions related to fundamental concepts and problem-solving using Python for B.Tech CSE students. It covers various topics including Python features, data types, control structures, functions, and error handling, along with programming tasks. The questions aim to assess understanding and application of Python programming concepts.

Uploaded by

nikhiljha8468
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

Important Questions

Fundamental Concepts and Problem Solving Using Python

[Link] CSE – Section B

Important Questions
1. Explain the major features of Python and why it is widely used.

2. Write a Python program to check whether a number is a palindrome.

3. What is indentation in Python? Explain its significance.

4. Differentiate between a compiler and an interpreter.

5. Write a program to generate the Fibonacci series.

6. Explain the functionality of break, continue, and pass.

7. What are Python data types? Explain with examples.

8. Write a Python program to check whether a number is prime.

9. Explain how the range() function works with step values.

10. What are operators in Python? Describe their types with examples.

11. Write a program to reverse a string.

12. Explain global and local variables with examples.

13. What is a function in Python? How is it defined and called?

14. Write a program to find the factorial of a number using recursion.

15. Explain the use of len() and type() functions with examples.

16. Differentiate between for loop and while loop.

17. Write a program to print a multiplication table using user input.

18. What are lists in Python? Explain common operations.

19. Differentiate between list and tuple.

20. Explain string slicing with examples.

21. Write a Python program using a lambda function to find cube of a number.

22. What is type casting? Explain with examples.

1
23. Explain the concept of modules and packages in Python.

24. What is the role of pip in Python?

25. Write a program to count vowels in a string.

26. Explain recursion with an example.

27. What are dictionaries in Python? Explain with examples.

28. Write a program to find the largest element in a list.

29. Explain the purpose of input() function.

30. What are Python keywords? Give examples.

31. Explain error handling using try-except in Python.

32. What is the difference between mutable and immutable data types?

33. Describe the history and evolution of Python programming language.

You might also like