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

Python Level

The document contains a multiple-choice question (MCQ) test on Python programming, divided into three levels: Basics & Variables, Operators & Conditions, and Loops. Each level includes questions about fundamental concepts, syntax, and operations in Python. An answer key is provided at the end for reference.

Uploaded by

weplayid420
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)
3 views2 pages

Python Level

The document contains a multiple-choice question (MCQ) test on Python programming, divided into three levels: Basics & Variables, Operators & Conditions, and Loops. Each level includes questions about fundamental concepts, syntax, and operations in Python. An answer key is provided at the end for reference.

Uploaded by

weplayid420
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

Python Level 1 to 3 MCQ Test

Basics, Variables, Data Types, Conditions & Loops

Level 1: Basics & Variables

1. Python kisne develop ki thi?


A) Dennis Ritchie B) Guido van Rossum C) Bjarne Stroustrup D) James Gosling

2. Python file ka extension kya hota hai?


A) .python B) .pyt C) .py D) .pt

3. Inme se kaunsa variable name galat hai?


A) my_var B) _var C) 1var D) var1

4. x = 5, y = "5" - kya x aur y ka data type same hai?


A) Haan B) Nahi C) Dono int hain D) Dono string hain

5. Python mein comment likhne ke liye kaunsa symbol use hota hai?
A) // B) /* C) # D) --

6. type(10.5) ka output kya hoga?


A) int B) float C) double D) string

7. User se input lene ke liye kaunsa function use hota hai?


A) get() B) scan() C) input() D) read()

8. String ko " " ke alawa aur kis mein likha ja sakta hai?
A) ' ' B) [ ] C) { } D) < >

9. Print function mein multiple items ko separate karne ke liye kya use hota hai?
A) Dot . B) Comma , C) Plus + D) Colon :

10. Case-sensitivity ke baare mein kya sahi hai?


A) Python case-insensitive hai B) Python case-sensitive hai C) Sirf variable names insensitive hain D) None

Level 2: Operators & Conditions

11. 10 % 3 ka result kya hoga?


A) 3 B) 1 C) 0 D) 3.33

12. exponentiation (power) ke liye kaunsa operator use hota hai?**


A) ^ B) * C) ** D) //

13. 'equal to' check karne ke liye kaunsa operator use hota hai?
A) = B) == C) === D) is

14. 'if' statement ke baad kaunsa symbol lagana zaroori hai?


A) ; B) . C) : D) !

15. Python mein 'else if' ko kaise likha jata hai?


A) elseif B) else if C) elif D) if else
16. logical AND ke liye Python mein kya likhte hain?
A) && B) and C) & D) AND

17. if (5 > 2) or (2 > 5): ka result kya hoga?


A) True B) False C) Error D) None

18. Indentation ka galat hona kya kehlata hai?


A) Syntax Error B) IndentationError C) Logic Error D) Run-time Error

19. Inme se kaunsa comparison operator nahi hai?


A) != B) <= C) >= D) =

20. nested if ka kya matlab hota hai?


A) If ke bahar if B) If ke andar if C) Bina condition ka if D) None

Level 3: Loops (For & While)

21. range(3) kaunse numbers generate karega?


A) 1, 2, 3 B) 0, 1, 2 C) 0, 1, 2, 3 D) 1, 2

22. Loop ko turant khatam karne ke liye kya use hota hai?
A) stop B) exit C) break D) skip

23. Current iteration skip karke agli iteration par jaane ke liye kya use hota hai?
A) break B) continue C) pass D) next

24. 'while' loop kab tak chalta hai?


A) Fixed number of times B) Jab tak condition True hai C) Hamesha D) Sirf ek baar

25. range(1, 10, 2) mein 2 kya hai?


A) Start B) Stop C) Step D) Index

26. Infinite loop se bachne ke liye kya zaroori hai?


A) Condition ko False karna B) Variable update karna C) Break use karna D) All of above

27. List ke har item par iterate karne ke liye kaunsa loop best hai?
A) while B) for C) do-while D) if

28. range(5, 0, -1) ka pehla number kya hoga?


A) 0 B) 4 C) 5 D) -1

29. loop ke saath 'else' block kab chalta hai?


A) Jab break hit ho B) Jab loop normal khatam ho C) Kabhi nahi D) Jab error aaye

30. range(10) mein aakhri number kya include hoga?


A) 10 B) 9 C) 0 D) 11

Answer Key

1-B 2-C 3-C 4-B 5-C 6-B

7-C 8-A 9-B 10-B 11-B 12-C

13-B 14-C 15-C 16-B 17-A 18-B

19-D 20-B 21-B 22-C 23-B 24-B

25-C 26-D 27-B 28-C 29-B 30-B

You might also like