Pearson Edexcel GCSE (9-1) · Computer Science (1CP2)

Input/output: Practice Questions

5 multiple-choice questions marked as you go, and 4 written questions with worked solutions. All on Input/output.

9 questions20 marksFree, no account
Question 1
1 mark

In programming, which command is typically used to display data on the screen for the user to see?

Question 2
1 mark

Which type of validation check would be most effective to ensure a user enters a password that is at least 8 characters long?

Question 3
1 mark

A program reads data from a CSV file. Which of the following best describes the structure of a CSV file?

Question 4
1 mark

Which programming command is used to display information to the user on the screen?

Question 5
1 mark

Which of the following describes the process of checking if a user has entered a value into a required field?

Question 6
2 marks

State the name of the programming technique that allows a program to accept data from a user via a keyboard.

Write your answer out first, then check it against the worked solution.

Question 7
3 marks

A program reads a list of names from a file. Describe one benefit of using a comma-separated value (CSV) format for this file.

Write your answer out first, then check it against the worked solution.

Question 8
5 marks

A developer is creating a login system. Explain why authentication is required after the user provides their ID and password.

Write your answer out first, then check it against the worked solution.

Question 9
5 marks

A software module reads data from a text file named log.csv.

(a) Describe the purpose of using validation when reading data from an external file.
(b) Provide two examples of validation checks that could be applied to a "UserAge" field read from the file.
(c) Write a code snippet to show how a program would open a file and read its contents.

Write your answer out first, then check it against the worked solution.

* The content provided by thinka is generated by AI and may not always be accurate or up-to-date. Please use it as a supplementary resource and verify with official materials.

You've seen the model answer. Now get yours marked.

This page can show you how a good answer looks. It cannot tell you what your answer was missing. thinka marks your written work against the real mark scheme in about 15 seconds.

Want more questions like these? Get a fresh set on this topic, graded as you go.

Practice More