0% found this document useful (0 votes)
2 views1 page

Assignment Python

Uploaded by

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

Assignment Python

Uploaded by

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

Assignment

Bca 5 sem

Python

1. Write any three features of Python.


2. Define identifiers.
3. What are keywords in Python? Give five examples.
4. What are the standard data types in Python?
5. What are internal types in Python? Give examples.
6. What are arithmetic operators in Python? Give examples.
7. What are assignment operators?
8. What are built-in functions in Python? Name any five commonly used functions.
9. What is a string in Python?
10. Explain string slicing with examples.
11. Explain mutable and immutable data types with examples.
12. What is the difference between break, continue, and pass statements?
13. Define a class and object in Python. Give an example.
14. Explain inheritance in Python with an example program.
15. Explain the principles of object-oriented programming (OOP) in Python.
16. Explain the use of if, elif, and else statements with syntax.
17. Write a Python program to find whether a number is even or odd using input from the user.
18. Write a program to check whether a number is prime or not.
19. Write a program to print the multiplication table of a number using a loop.
20. Write a program to swap two variables using a temporary variable and without using one.

You might also like