Python GATE aur BCA/B.Sc ke liye sabse important language hai. Ye easy hai aur interview me bhi bahut poochi jati hai.

1. Python Kya Hai?

Python ek high-level, interpreted aur object-oriented programming language hai. Ise 1991 me Guido van Rossum ne develop kiya tha.

Key Features:

  • Easy Syntax: English jaisi language
  • Free & Open Source
  • Platform Independent: Windows, Linux, Mac sab me chalta hai
  • Badi Library: Data Science, AI, Web sab ke liye ready tools

2. Python Kaise Install Kare?

  1. python.org website pe jao
  2. Latest version download karo
  3. Install karte time Add Python to PATH pe tick lagana
  4. Check karo: cmd me python --version likho

3.Pehla Program

“`python”’
print(“Hello Gatestudy”)

Output: Hello Gatestudy

4.Variables aur Data Types

name = “Amit” # String – text
age = 20 # Integer – number
marks = 85.5 # Float – decimal
is_pass = True # Boolean – True/False

5.User se Input Lena

name = input(“Apna naam likho: “)
print(“Hello”, name)

6.Comments

Ye single line comment hai

“””
Ye multi-line comment hai
“””

20 Important MCQ – Unit 1

Q1. Python kisne banaya?
a) Dennis Ritchie b) Guido van Rossum c) James Gosling d) Brendan Eich
Answer: b) Guido van Rossum

Q2. Python file ka extension kya hota hai?
a) .java b) .py c) .cpp d) .python
Answer: b) .py

Q3. len(“Gatestudy”) ka output kya hoga?
a) 8 b) 9 c) 10 d) Error
Answer: b) 9

Q4. Python me 2**3 ka matlab?
a) 6 b) 8 c) 9 d) 5
Answer: b) 8

Q5. type(10.5) kya return karega?
a) int b) float c) str d) bool
Answer: b) float

Q6. input() function hamesha kya return karta hai?
a) int b) float c) str d) bool
Answer: c) str

Q7. Python dynamically typed hai. True/False?
a) True b) False
Answer: a) True

Q8. print(5//2) ka output?
a) 2.5 b) 2 c) 3 d) Error
Answer: b) 2

Q9. x = 10 ye kya hai?
a) Function b) Variable c) Loop d) Class
Answer: b) Variable

Q10. Python me list kaise banate hain?
a) () b) {} c) [] d) <>
Answer: c) []

Q11. bool(0) ka output kya hoga?
a) True b) False c) 0 d) Error
Answer: b) False

Q12.** str(123) ka data type?
a) int b) float c) str d) bool
Answer: c) str

Q13. Python case sensitive hai?
a) True b) False
Answer: a) True

Q14. print(type([])) ka output?
a) int b) list c) tuple d) dict
Answer: b) list

Q15. Python me multiple statements ek line me kaise likhte hain?
a) , b) ; c) : d) .
Answer: b) ;

Q16.del keyword ka use?
a) Variable delete b) Loop c) Function d) Import
Answer: a) Variable delete

Q17. None ka data type?
a) int b) str c) NoneType d) bool
Answer: c) NoneType

Q18. 2 == 2.0 ka result?
a) True b) False c) Error d) None
Answer: a) True

Q19. Python me tuple immutable hota hai?
a) True b) False
Answer: a) True

Q20. id() function kya batata hai?
a) Value b) Memory address c) Type d) Length
Answer: b) Memory address

📥 Download PDF

Unit 1 ka complete Notes + MCQ PDF yaha se download kare
[Download Unit 1 PDF – Coming Soon]