Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 3)

1
Which statement is used to determine the action to be performed when multiple conditions are needed?
Answer
(C)
CASE
2
What does 'efficiency' mean in the context of an algorithm?
Answer
(B)
An algorithm uses minimal resources (time, memory).
3
What is the primary goal of the 'Design' stage within the program development life cycle?
Answer
(B)
Specify how the program will be structured to meet requirements.
4
Which of the following is a suitable validation check for an email address?
Answer
A
D
5
When should validation checks be used in an algorithm?
Answer
(A)
Before data is processed.
6
What kind of data validation checks could be used when validating a password?
Answer
A
C
7
What is the purpose of 'testing' an algorithm?
Answer
(A)
To find and remove errors.
8
In the context of algorithms, what does 'searching' usually involve?
Answer
(C)
Looking for a specific item within a collection of data.
9
Which type of check would be used to ensure a phone number entered contains the correct number of digits?
Answer
(B)
Format check
10
Which of the following is the correct order of program development life cycle?
Answer
(A)
Analysis, Design, Coding, Testing, Maintenance
11
What is the result of the following pseudocode? `x = 5` `y = x + 2` `OUTPUT y`
Answer
(B)
7
12
What is the role of a 'loop' in a program?
Answer
(B)
To execute a set of instructions repeatedly.
13
What is the purpose of testing in the program development cycle?
Answer
(B)
To check the program with different data and make sure it works properly
14
What does the pseudocode statement OUTPUT represent?
Answer
(B)
Displaying information.
15
Which stage in the program development life cycle involves identifying and fixing errors?
Answer
(D)
Testing
16
What is the purpose of a 'selection' structure in programming?
Answer
(B)
To choose between different blocks of code based on a condition.
17
Which check validates the input data to have the correct type?
Answer
(C)
Type check
18
In pseudocode, what does '<' symbol stand for in the context of operations?
Answer
(C)
Less than
19
What does 'IF - THEN - ELSE - ENDIF' statement represent?
Answer
(D)
Decision making based on condition
20
What is the purpose of a WHILE loop?
Answer
(B)
To repeat statements as long as a condition is true.
21
What is the purpose of the 'Design' phase in the program development life cycle?
Answer
(B)
To define how the program will work.
22
What is the purpose of a 'presence check' in data validation?
Answer
(B)
To check if data has been entered in a field.
23
Which flowchart symbol represents a process?
Answer
(C)
Rectangle
24
What is the purpose of using comments in code?
Answer
A
C
D
25
What is the function of the 'storage' in a computer system?
Answer
(A)
To store data for future use.
26
Which of the following components is NOT part of the basic computer system components discussed in the text?
Answer
(D)
Compiler
27
In a CASE statement, what keyword is used to specify the actions to be taken for all other possible values not explicitly listed?
Answer
(D)
OTHERWISE
28
What does the term 'algorithm' represent in computing?
Answer
(C)
A set of well-defined instructions to solve a specific problem.
29
What is the function of a 'flowchart' in software development?
Answer
(B)
To visually represent the flow of an algorithm.
30
What are the advantages of using pseudocode for writing algorithms?
Answer
A
B
C
31
What does 'LIFO' stand for in the context of data structures?
Answer
(B)
Last-In, First-Out
32
What is meant by the term 'efficiency' in the context of algorithms?
Answer
(C)
The amount of resources (time, memory) the algorithm uses.
33
Which of the following best describes the concept of 'abstraction' in computer science?
Answer
(A)
Hiding the complexities of a system and presenting only essential information.
34
What is a 'parameter' or 'argument' in the context of a function?
Answer
(B)
A value passed into a function.
35
Which of the following is an example of a boundary data in algorithm design?
Answer
(C)
The largest and smallest acceptable values.
36
What does a terminator symbol indicate in a flowchart?
Answer
(B)
The start or end of the flowchart
37
Which type of test data would be best to test the algorithm to determine if input can be entered correctly?
Answer
(B)
Boundary data
38
What is the function of a flowchart?
Answer
(C)
To visually represent the steps to be performed.
39
What is the role of an 'IF' statement within an algorithm?
Answer
(C)
To make decisions based on conditions.
40
What type of diagram is used to show the top-down design in a diagrammatic form?
Answer
(B)
Structure diagrams
41
Which of the following is a reason to use the CASE statement?
Answer
(B)
To provide different action based on one variable's value
42
What is 'Output' in the context of a computer system?
Answer
(B)
The information displayed to the user.
43
What is the purpose of a 'trace table' in algorithm design?
Answer
(C)
To track the values of variables as the algorithm executes.
44
Which data validation technique checks the format of the data entered?
Answer
(C)
Format Check
45
What is the purpose of 'modularity' in programming?
Answer
(B)
To break down a program into smaller, manageable parts.
46
Which of these best describes the FOR...TO...NEXT loop?
Answer
(C)
A fixed iteration loop
47
Which of the following is a standard flowchart symbol to indicate the beginning or end of a flowchart?
Answer
(C)
Terminator
48
In algorithm design, what is the primary goal of 'sorting'?
Answer
(B)
To arrange items in a particular order.
49
What does the flowchart symbol 'parallelogram' typically represent?
Answer
(B)
Input/Output
50
Which validation check would be most appropriate for checking if the entered value is a valid date?
Answer
(B)
Format check