Python – input() Lab Assessment
Individual practical assessment · 40 minutes · 10 marks
Instructions
- Select one question only.
- Read the selected task and its marking scheme carefully.
- Write and execute your Python program in IDLE.
- Use appropriate variables, data types,
input()andprint(). - Your selection cannot be changed during this browser session.
Select your question
Choose only one question. The other choices will no longer be available after your selection.
QUESTION 1
My Personal Profile
Write a Python program that asks the user to enter the following details:
- Name of the student (String)
- Age of the student (Integer)
- Height of the student (Float)
Store each input in an appropriate variable and display all the details with suitable labels.
Marking Scheme
| Criteria | Marks |
|---|---|
Accepts the student's name using input() | 1 |
Accepts age using int() conversion | 2 |
Accepts height using float() conversion | 2 |
| Uses appropriate variable names and assignments | 2 |
Displays all details using print() | 2 |
| Program executes successfully | 1 |
| Total | 10 |
QUESTION 2
School Sports Day Registration
Write a Python program to register a student for the School Sports Day. Ask the user to enter:
- Full name of the student (String)
- Class number (Integer)
- Running time in seconds (Float)
- House name (String)
Store the details in appropriate variables and display them clearly with suitable labels.
Marking Scheme
| Criteria | Marks |
|---|---|
| Accepts the student's full name | 1 |
Accepts class number using int() conversion | 2 |
Accepts running time using float() conversion | 2 |
| Accepts the house name | 1 |
| Uses appropriate variable names and assignments | 1 |
| Displays all details with suitable labels | 2 |
| Program executes successfully | 1 |
| Total | 10 |
QUESTION 3
UAE Sustainability Campaign
Write a Python program to collect information about a student's participation in a UAE sustainability campaign. Ask the user to enter:
- Student name (String)
- Class number (Integer)
- Number of reusable bottles collected (Integer)
- Quantity of water saved in litres (Float)
- Campaign name (String)
Store the details in appropriate variables and display the information clearly with suitable labels.
Marking Scheme
| Criteria | Marks |
|---|---|
| Accepts the student's name | 1 |
Accepts class number using int() conversion | 1 |
Accepts number of reusable bottles using int() conversion | 2 |
Accepts water saved using float() conversion | 2 |
| Accepts the campaign name | 1 |
| Uses appropriate variable names and assignments | 1 |
| Displays the information clearly with suitable labels | 1 |
| Program executes successfully | 1 |
| Total | 10 |