Computing Science Questions and Answers
Slides in this set (3)
-
- Example Questions (All with the same answers)
- 1.What could improve the readability of code?
- 2. Here is some code written by James. What could he have done to make the code more readable.
- KEY WORDS: Readability of code, readable
- Answers
- Use meaningful variable names
- Include comment lines to explain code
- Use indentation and white-spacing to identify code blocks
-
- Example Question(s)
- 1. What is the most suitable type of Data Structure to store a list of names?
- 2. A program is being written that will record pupil names and marks. State the most suitable data structure to store the pupils names and marks.
- 3. State the most suitable data type and structure for storing the names of car manufacturers.
- KEY WORDS: Data Structure
- Answer(s)
- An array. (Whenever you are asked about a data structure the answer will be an array).
- If asked about a data type as well (Q3), give the "type" for the data that will be stored.
- An array of type string.
-
- Questions
- A program is written to store
- KEY WORDS: Normal, Exceptional, Extreme
Information
- Description
- Sample National 5 Exam type questions and answers
- Created by
- nrc
- Views
- 5
- Rating