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?
2
What does 'efficiency' mean in the context of an algorithm?
Хариулт(B)
An algorithm uses minimal resources (time, memory).
3
What is the primary goal of the 'Design' stage within the program development life cycle?
Хариулт(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?
5
When should validation checks be used in an algorithm?
Хариулт(A)
Before data is processed.
6
What kind of data validation checks could be used when validating a password?
7
What is the purpose of 'testing' an algorithm?
Хариулт(A)
To find and remove errors.
8
In the context of algorithms, what does 'searching' usually involve?
Хариулт(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?
10
Which of the following is the correct order of program development life cycle?
Хариулт(A)
Analysis, Design, Coding, Testing, Maintenance
11
What is the result of the following pseudocode?
`x = 5`
`y = x + 2`
`OUTPUT y`
12
What is the role of a 'loop' in a program?
Хариулт(B)
To execute a set of instructions repeatedly.
13
What is the purpose of testing in the program development cycle?
Хариулт(B)
To check the program with different data and make sure it works properly
14
What does the pseudocode statement OUTPUT represent?
15
Which stage in the program development life cycle involves identifying and fixing errors?
16
What is the purpose of a 'selection' structure in programming?
Хариулт(B)
To choose between different blocks of code based on a condition.
17
Which check validates the input data to have the correct type?
18
In pseudocode, what does '<' symbol stand for in the context of operations?
19
What does 'IF - THEN - ELSE - ENDIF' statement represent?
Хариулт(D)
Decision making based on condition
20
What is the purpose of a WHILE loop?
Хариулт(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?
Хариулт(B)
To define how the program will work.
22
What is the purpose of a 'presence check' in data validation?
Хариулт(B)
To check if data has been entered in a field.
23
Which flowchart symbol represents a process?
24
What is the purpose of using comments in code?
25
What is the function of the 'storage' in a computer system?
Хариулт(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?
27
In a CASE statement, what keyword is used to specify the actions to be taken for all other possible values not explicitly listed?
28
What does the term 'algorithm' represent in computing?
Хариулт(C)
A set of well-defined instructions to solve a specific problem.
29
What is the function of a 'flowchart' in software development?
Хариулт(B)
To visually represent the flow of an algorithm.
30
What are the advantages of using pseudocode for writing algorithms?
31
What does 'LIFO' stand for in the context of data structures?
32
What is meant by the term 'efficiency' in the context of algorithms?
Хариулт(C)
The amount of resources (time, memory) the algorithm uses.
33
Which of the following best describes the concept of 'abstraction' in computer science?
Хариулт(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?
Хариулт(B)
A value passed into a function.
35
Which of the following is an example of a boundary data in algorithm design?
Хариулт(C)
The largest and smallest acceptable values.
36
What does a terminator symbol indicate in a flowchart?
Хариулт(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?
38
What is the function of a flowchart?
Хариулт(C)
To visually represent the steps to be performed.
39
What is the role of an 'IF' statement within an algorithm?
Хариулт(C)
To make decisions based on conditions.
40
What type of diagram is used to show the top-down design in a diagrammatic form?
41
Which of the following is a reason to use the CASE statement?
Хариулт(B)
To provide different action based on one variable's value
42
What is 'Output' in the context of a computer system?
Хариулт(B)
The information displayed to the user.
43
What is the purpose of a 'trace table' in algorithm design?
Хариулт(C)
To track the values of variables as the algorithm executes.
44
Which data validation technique checks the format of the data entered?
45
What is the purpose of 'modularity' in programming?
Хариулт(B)
To break down a program into smaller, manageable parts.
46
Which of these best describes the FOR...TO...NEXT loop?
47
Which of the following is a standard flowchart symbol to indicate the beginning or end of a flowchart?
48
In algorithm design, what is the primary goal of 'sorting'?
Хариулт(B)
To arrange items in a particular order.
49
What does the flowchart symbol 'parallelogram' typically represent?
50
Which validation check would be most appropriate for checking if the entered value is a valid date?