1

How do you write a string in Python?

2

How many times does the loop run? for i in range(3):

3

What is the purpose of testing in Python?

4

In an if-elif-else chain, how many elif blocks can be used?

5

In Python, what does the break statement do inside a loop?

6

Which loop is best when the number of repetitions is already known?

7

پائتھن پروگرام میں غلطیاں تلاش کرنے اور انہیں ٹھیک کرنے کے لیے کون سا عمل استعمال ہوتا ہے؟

8

What will the following do? x = 5; if x > 3: print('Big')

9

Why do we use libraries in Python?

10

What happens if the condition of a while loop always remains true?

11

What does the else block do in a for loop when it is used with a loop?

12

Which statement is used to check a condition in Python?

13

What does the input() function return?

14

What is testing in programming?

15

Which of the following is the correct way to start a Python program?

16

Which of the following is used to define a block of code in Python?

17

append() میتھڈ فہرست کے ساتھ کیا کرتا ہے؟

18

What is the purpose of the continue statement in a loop?

19

Which of these is a valid Python comment?

20

What is a syntax error?

21

Which statement about nested loops is true?

22

What is a common cause of an infinite while loop?

23

Which of the following is NOT a valid list operation?

24

What does list slicing list[1:3] return?

25

In Python, variables are created when a value is assigned to them. This means Python is a: