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?