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

Problem Solving_Python Test1

The document consists of a fill-in-the-blank exercise focused on Python programming concepts. It covers various topics such as functions, loops, data types, and operators. The exercise aims to test knowledge and understanding of fundamental Python programming elements.

Uploaded by

Sooraj Rajmohan
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

Problem Solving_Python Test1

The document consists of a fill-in-the-blank exercise focused on Python programming concepts. It covers various topics such as functions, loops, data types, and operators. The exercise aims to test knowledge and understanding of fundamental Python programming elements.

Uploaded by

Sooraj Rajmohan
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/ 2

Problem Solving – Python Programming

Part A: Fill in the Blanks (30 Questions)

1. The ________ keyword is used to define a function in Python.

2. A ________ loop is used to iterate over a sequence.

3. In Python, a ________ is used to store multiple values in a single variable.

4. The keyword ________ is used to exit a function and return a value.

5. ________ is the data type used for text in Python.

6. A ________ statement is used to choose between multiple paths.

7. The ________ keyword is used to check if a condition is true in an if block.

8. A ________ is a collection of ordered, changeable items.

9. The ________ function displays output on the screen.

10. The ________ data type stores whole numbers.

11. The ________ keyword is used to loop a known number of times.

12. The ________ statement ends the current iteration of a loop and jumps to the next one.

13. A function is defined using def followed by the function ________.

14. Python is a ________ typed language.

15. ________ and elif are keywords used in conditional branching.

16. The ________ keyword is used to define a variable for the first time.

17. The ________ operator checks if two values are equal.

18. Python lists are ________, meaning they can be changed after creation.
19. Strings are enclosed in ________ or ________ quotes.

20. The ________ operator is used for exponentiation in Python.

21. The keyword ________ is used to define a loop with a condition.

22. ________ is used to add a new item to the end of a list.

23. ________ is the index of the first element in a list.

24. A ________ is a reusable block of code.

25. The keyword ________ is used to define a block that will execute repeatedly.

26. ________ statements are used to test specific conditions in code.

27. ________ returns the number of items in a list.

28. The ________ function is used to get input from the user.

29. Functions help in breaking a program into smaller, manageable ________.

30. The ________ function converts a string to an integer.

You might also like