You are on page 1of 2

Pakistan International School Jeddah - English Section

Y8-Computing
Unit 9.1: Presenting choices: Combining Constructs

Practical Task 3 Total Marks: 25

Name: Student ID: Y8 -____

1. Open the IDLE python from your computer.

2. Switch to script mode and print the command “welcome to this Type of errors:

Logic error: error that


support chatbot” allows a program to run but
not output what is
3. Print the following statements expected.

Select from one of the following options. Syntax error: error in


program code that stops the
 1 for products program from running

Runtime error: error that


 2 for store location occurs while a program is
running; the instructions
 3 for special offers cannot be completed.

4. Take input for variable selection.

5. Write a program that shows a range of options in a store using elif.

6. The program will display any one of the following outputs:

 If selection is equal to 1 display an output “welcome to store products”

 If selection is equal to 2 display an output “The store locations are UK and USA”

 for any other number display an output “welcome to the special offers”

7. Save the program in python folder with name task p3a.py

Evidence 1: Take the screenshot of python shell & script mode both and paste it in your
evidence file.

Y8-Computing 2023-24 Practical 3 Page 1 of 2


AND: The *AND operator indicates that both operands (on either side of the operator) have to be
true to produce a true result.
OR: The *OR operator indicates that one or the other of its operands must be true to produce a
true result.

8. Open a new file in script mode and take input for variable score.

9. Write a program that will display any one of the following outputs using elif

 If score is greater than or equal to 90 display an output "you are working at distinction level"

 If score is between 51 and 89 inclusive display an output “you are working at MERIT level”

 If score is between 20 and 50 inclusive display an output “you are working at PASS level”

otherwise display an output “you are not pass”

10. Save the program in python folder with name task p3b.py

Evidence 2: Take the screenshot of python shell & script mode both and paste it in your
evidence file.

11. Write pseudocode of the same program to allow student to enter their score and output the level
they are working at, along with the message of encouragement.

Evidence 3: Write pseudocode under evidence 3 in word file with readable font size.

Evidence 4: Use traceable given in evidence file to complete the above task.

12. Save your Evidence file and print your document.

--------------------------------------------

Y8-Computing 2023-24 Practical 3 Page 2 of 2

You might also like