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