Edexcel computer science
Input and Output (Revision)
1) State the data input methods to computer systems.
2) How can a program be user friendly? Explain briefly.
3) Explain the importance of validating data.
4)State four types of validation checks.
5) What are types of test data that can be used for validation? Explain each
briefly.
6) Describe the benefit of text files during program development.
7) (i)State the purpose of following statements ( r , w , a ) in python.
(ii) what is “myFile” ?
(iii) What is the name of the text file ?
(iv) What will be the result of above statement?
8)Study the following python program.
password =input (Please enter the Password )
x = len (password)
if x >= 6 , x <= 8
Print (‘valid password’)
else
print (‘Invalid password’)
a) Identify five errors in the above code
b) Explain the function of the coding.
c) State one drawback of the above code.
9) A teacher stores the names of students and their Date of birth in a
two-dimensional array called “ Sdob ” and entered the following values to
it.
Vinuk – 2010
Shehan – 2008
Sayuri - 2009
(i) Write a python code to write the above details to a text file named
“studentDOB”.
(ii) Show how the name and date of birth would be stored in the text file you
created.
10) State the types of validation checks done in computerized systems for
the following situations.
a) Admission process of a patient in a hospital.
b) checking out a book in a library.