Recommended Resources
Data Validation Quiz
When programming a computer system, it is good practice to include a range of validation checks in the code to check if the data being inputted by the end-user follows some basic rules. The aim of validation checks is to … Continue reading
Boarding Pass Validation
You are writing a computer program for an airline company. The program will be used at a check-in desk to generate and print custom boarding passes. The program captures several user inputs before generating the pass. In order to … Continue reading
Yes or No!
When your computer prorgam is asking questions to the end-user, the end-user may not answer these questions the way you expected them to. This may cause your program to not work properly. Ideally a good program should use … Continue reading
Flowchart to Python Code – Star Rating Validation
The aim of this Python challenge is to validate a user input using a range check. In this program, the user will be asked to enter a star rating by entering a number value between 0 and 5. This could … Continue reading
Code Maintainability Q&A
The two Python scripts above were created by an IT manager of a school and are performing exactly the same task: to generate a username based on the student’s firstname, lastname and year group. Compare both of … Continue reading
Find the Logic Error
Check the following pieces of code. The syntax of the code is correct and the programs do run. However, while testing these programs, you will notice that they do not always produce the expected output! This is because each program … Continue reading
Refining Algorithms – Q&A
Somjay has created the following program in his computer science lesson. The aim of this program is to generate and display five random “lucky” numbers every time this program is executed. Here is his Python code … Continue reading
Debugging and refining an algorithm – Q&A
Zara has created the following program in her computer science lesson. The aim of this program is to find out if the user is old enough to vote or not, the voting age being 18 years old. … Continue reading