Final exam Flashcards
(12 cards)
What are functional requirements (ddd)
The processes that the system has to perform and details of the data that the database will store
What are functional requirements (sdd)
Inputs, processes and outputs of
What would normal test data be for between 1-60
54, 32
What would extreme test data be for between 1-60
1, 60
What would exceptional test data be for between 1-60
-45, three
What are syntax errors
Syntax errors are errors in code such as mis-spelled keywords or incorrect use of the programming language rules And will cause the program to crash
What are execution errors
Execution errors (also called run-time errors) will cause the program to crash unexpectedly due to unexpected data, or incorrect data
What are logic errors
A logic error does not cause the program to crash, but it will produce unexpected results.
How to do a running total within a loop
Total = 0
for I in range(5):
print(“Enter a
number”)
number = int(input())
total += number
print(total)
Assignment
Number = 3
Text = “hi”
How to do an input validation
print(“Enter a number between 1 and 10”)
number = int(input())
while number < 1 or number > 10:
print(“Invalid - enter a number between 1 and 10”)
number = int(input())
How is a program fit for purpose