0% found this document useful (0 votes)
24 views3 pages

Python BCA5thSem QA 2025

The document is a question and answer guide for Python programming, covering various topics such as introduction to Python, data types, control structures, functions, object-oriented programming, file handling, and miscellaneous concepts. It provides definitions, syntax, and examples for key Python features and functionalities. This resource is intended for BCA 5th semester students in 2025.

Uploaded by

mhakalbaghel74
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)
24 views3 pages

Python BCA5thSem QA 2025

The document is a question and answer guide for Python programming, covering various topics such as introduction to Python, data types, control structures, functions, object-oriented programming, file handling, and miscellaneous concepts. It provides definitions, syntax, and examples for key Python features and functionalities. This resource is intended for BCA 5th semester students in 2025.

Uploaded by

mhakalbaghel74
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/ 3

Python Programming - Question and Answer (BCA 5th Sem 2025)

Unit 1: Introduction to Python

Q1. Python kya hai?

Ans: Python ek high-level, interpreted, object-oriented programming language hai jo Guido van Rossum

dwara 1991 mein banayi gayi thi.

Q2. Python ke features kya hain?

Ans: Easy syntax, interpreted language, dynamic typing, large standard library, cross-platform support,

object-oriented.

Unit 2: Data Types and Operators

Q3. Python mein basic data types kya hain?

Ans: int, float, str, list, tuple, dict, set, bool.

Q4. List aur Tuple mein kya antar hai?

Ans: List mutable hoti hai, tuple immutable hoti hai.

Q5. Python ke operators kya hote hain?

Ans: Arithmetic (+, -, *, /), Comparison (==, !=), Logical (and, or, not), Assignment (=, +=), Membership (in,

not in).

Unit 3: Control Structures

Q6. if-elif-else ka use kya hai?

Ans: Ye decision making ke liye use hota hai.

Q7. Python mein loops ke prakar?

Ans: for loop, while loop.


Python Programming - Question and Answer (BCA 5th Sem 2025)

Q8. break aur continue ka use?

Ans: break loop ko rokta hai, continue current iteration skip karta hai.

Unit 4: Functions and Modules

Q9. Function kya hai?

Ans: Function ek block of code hai jo specific task karta hai.

Q10. Function banane ka syntax:

def greet(name):

return "Hello " + name

Q11. Module kya hai?

Ans: Ek .py file jisme functions aur classes hoti hain.

Q12. Built-in functions ke example?

Ans: len(), type(), input(), int(), str(), range().

Unit 5: Object Oriented Programming

Q13. Class kya hoti hai?

Ans: Class ek blueprint hoti hai objects ke liye.

Q14. Object kya hota hai?

Ans: Object class ka instance hota hai.

Q15. Inheritance kya hai?

Ans: Jab ek class dusri class ke properties leta hai.


Python Programming - Question and Answer (BCA 5th Sem 2025)

Q16. Encapsulation aur Polymorphism kya hote hain?

Ans: Encapsulation data ko hide karta hai, Polymorphism ek hi method ka different behavior allow karta hai.

Unit 6: File Handling and Exceptions

Q17. File open karne ka syntax?

Ans: open("filename", "mode")

Q18. Exception Handling kya hai?

Ans: try-except block ka use karke error handle karna.

Q19. Read aur Write ka difference?

Ans: read() file se data leta hai, write() file me data likhta hai.

Unit 7: Miscellaneous

Q20. Python mein lambda function kya hai?

Ans: Ek anonymous function jo single expression return karta hai.

Syntax: lambda x: x + 10

Q21. List comprehension kya hai?

Ans: Ek concise tarika list banane ka.

Example: [x for x in range(5)]

Q22. Python mein 'with' statement ka use?

Ans: File handle karne ke liye use hota hai, jo automatically file close kar deta hai.

You might also like