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

Python Questions Bank

The document consists of a series of questions categorized into 2 marks, 5 marks, and 10 marks sections, covering various aspects of Python programming. Topics include Python's features, applications, data types, operators, functions, and programming concepts like classes and exceptions. It aims to assess knowledge and understanding of Python through both theoretical and practical questions.

Uploaded by

mrcomputer4232
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)
4 views2 pages

Python Questions Bank

The document consists of a series of questions categorized into 2 marks, 5 marks, and 10 marks sections, covering various aspects of Python programming. Topics include Python's features, applications, data types, operators, functions, and programming concepts like classes and exceptions. It aims to assess knowledge and understanding of Python through both theoretical and practical questions.

Uploaded by

mrcomputer4232
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

2 Marks Questions

1. What is Python?
2. List any two features of Python.
3. Who developed Python, and in which year?
4. What are the applications of Python?
5. Mention any two advantages of using Python.
6. What is the difference between a compiler and an interpreter?
7. What are identifiers in Python? Give examples.
8. What are keywords? Give any two examples.
9. Define variable. How is it declared in Python?
10. List any two data types in Python.
11. What is indentation in Python? Why is it important?
12. What is the use of comments in Python? How are they written?
13. What is the difference between interactive mode and script mode in Python?
14. What is the purpose of the print() function?
15. Write the syntax of the input() function with an example.
16. What are operators in Python?
17. Write any two arithmetic operators in Python with examples.
18. What is operator precedence?
19. What is type conversion? Give an example.
20. What is a Python library?
21. What is the use of the import statement in Python?
23. Write the output of:print(type(5.0))
24. Write a Python statement to swap two variables using a third variable.
25. Write a Python program to print “Welcome to Python”.
26. What is class?
27. What is meant by dynamic typing?
28. What is meant by high-level language?
29. What is exception ?
30. Write any two built-in functions in Python.
31. Write any two rules for naming identifiers in Python.
32. What is list
33. What is tuple
34. What is dictionary
35. What is set
36. What is sqlite
37. What is inheritance?

5 marks questions

1. Explain the important features of Python in detail.


2. Write short notes on the applications of Python.
3. Describe the different modes of executing Python programs with suitable examples.
4. Explain identifiers, keywords, and variables in Python with examples.
5. Explain different data types supported by Python with examples.
6. Discuss the various operators in Python with examples.
7. Explain operator precedence and associativity in Python.
8. Write short notes on indentation and comments in Python.
9. Explain the input() and print() functions with examples.
10. What are type conversions in Python? Explain implicit and explicit conversions with examples.
11. Explain Python libraries and the use of the import statement with examples.
12. Write a Python program to read two numbers and perform all arithmetic operations.
13. Write a Python program to swap two numbers without using a third variable.
14. Discuss the structure of a Python program with a neat example.
15. Differentiate between list and tuple
16. Difference between dictionary and set.
17. What recursive function
18. What is function call
19. Explain console input and output operations in Python with examples.
20. Write a note on while loop.
21. Explain the steps to write and execute a simple Python program.
22. Explain different file opening modes
23. Explain class object with example
24. Write a Python program to find the area and circumference of a circle.
25. Write a short note on the importance of indentation in Python.
10 marks questions

1. Explain the features, applications, and versions of Python in detail.


2. Describe in detail the structure of a Python program with examples for each part.
3. Discuss identifiers, keywords, statements, expressions, and variables in Python with suitable examples.
4. Explain Python data types and operators with examples for each category.
5. Explain the different types of operators in Python (arithmetic, relational, logical, assignment, bitwise, membership, identity) with
examples.
6. Explain the concept of input and output in Python. Discuss input() and print() functions with formatting examples.
7. Discuss oop explain class and object
8. Explain the concept of Python libraries and importing modules with examples.
9. Describe Python’s execution modes — interactive mode and script mode — and compare them with examples.
10. What is tuple explain its associated fuctions
11. What is file ? Explain different file opening modes
12. Write short notes on the following:
a) Built-in functions in Python
b) Operator precedence and associativity
c) slicing
14. Explain the steps to install Python and write a Python program.
15. Explain why Python is called a high-level, interpreted, and dynamically typed language.
16. Discuss the importance of indentation in Python programming. Give suitable examples.
17. Write detailed notes on Python IDEs and discuss advantages of using an IDE over the command-line interpreter.
18. Describe chatrts with example
19. What is Tkinter explain
20. What are widgets explains with examples.

You might also like