DRx Learning Hub

BP101T – Basics of Python Programming for Pharmaceutical Sciences

Unit 2 Test – Control Structures & Functions

👨‍🎓 Student Information

📝 Test Information

Course: BP101T

Unit: Unit 2 – Control Structures & Functions

Total Questions: 20

Total Marks: 20

Marks per Question: 1

Passing Percentage: 60%

1. Which statement is used to make a decision in Python?

2. Which statement provides an alternative block when an if condition is false?

3. Which statement is used to check multiple conditions?

4. What is a nested condition?

5. Which loop is commonly used to iterate over a sequence in Python?

6. Which loop continues executing while its condition remains true?

7. Which statement terminates the current loop?

8. Which statement skips the current iteration and continues with the next iteration?

9. Which keyword is used to define a function in Python?

10. What is the main purpose of a function?

11. What can be passed into a function when it is called?

12. Which keyword is used to send a value back from a function?

13. A modular program is divided into:

14. Which of the following is a pharmaceutical application mentioned in Unit 2?

15. BMI calculation is included in Unit 2 as an example of:

16. Which combination represents the conditional statements covered in Unit 2?

17. Which pair represents the loops covered in Unit 2?

18. Which feature allows a function to receive input values?

19. Which statement is useful when you want to stop a loop before it completes normally?

20. What is the main purpose of returning a value from a function?

DRx Learning Hub

Certificate of Completion

This certificate is proudly presented to

Student Name

for successfully completing the

BP101T – Basics of Python Programming for Pharmaceutical Sciences

Unit 2 – Control Structures & Functions

Score: / 20
Percentage: %

Date:

This certificate confirms successful completion of the Unit 2 online assessment.

Certificate ID: