1

What is the purpose of the elif statement in Python?

2

Which tool helps to run a Python program step by step to find errors?

3

What does the range(5) function generate in a for loop?

4

What is the purpose of the else clause with a for loop in Python?

5

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

6

if-else اسٹیٹمنٹ میں else بلاک کیا کرتا ہے؟

7

What is the output of the following code? for i in range(3): print(i)

8

What does the statement import random do?

9

What does an if statement inside another if statement create?

10

What is the purpose of the else clause in an if-else statement?

11

What does the continue statement do inside a loop?

12

What happens if the condition of a while loop never becomes false?

13

How many times does the inner loop run for each single run of the outer loop in a nested loop?

14

What is the purpose of debugging in programming?

15

What is a loop inside another loop called?

16

What does the following code do?\nimport random\nprint(random.randint(1, 10))

17

Why do we use libraries in Python?

18

What is a nested loop?

19

What is the purpose of the import statement in Python?

20

if-else ڈھانچے میں else بلاک کیا کرتا ہے؟

21

In Python, which part of an if-else statement is executed when the condition is false?

22

What does my_list.append(5) do?

23

What is debugging?

24

What is the main purpose of testing a program?

25

How is a list created in Python?