1) What is an algorithm? a) a) A specific type of variable b) b) A set of loops that runs forever c) c) A step-by-step set of instructions to solve a problem or complete a task d) d) A visual object used in a program 2) What is the purpose of initialisation in an algorithm? a) a) To debug a program b) b) To execute a sub-routine c) c) To set up variables or conditions at the start d) d) To run a loop indefinitely 3) What is a count-controlled loop? a) a) A loop that runs until the program stops b) b) A loop that runs a specified number of times c) c) A loop that is executed once d) d) A loop with no defined end 4) What is a forever loop? a) a) A loop that runs a specific number of times b) b) A loop that only runs once c) c) A loop that runs indefinitely until stopped by an external condition d) d) A loop that calls a sub-routine 5) What does decomposition involve? a) a) Combining multiple tasks into one large task b) b) Running a loop indefinitely c) c) Breaking down a complex task into simpler, smaller parts d) d) Initializing variables 6) What is a sub-routine? a) a) A command to start a loop b) b) A section of code that runs indefinitely c) c) A reusable section of code that performs a specific task within a program d) d) A type of variable used in initialization 7) What is the definition of a sequence in programming? a) a) A type of loop that runs a specific number of times b) b) A step-by-step set of instructions to solve a problem c) c) The order in which instructions in a program are executed d) d) A sub-routine that is executed multiple times 8) What does it mean to call a sub-routine? a) a) To debug a program b) b) To create a new sub-routine c) c) To execute a pre-defined section of code d) d) To run a loop until an external condition is met

Tabela rankingowa

Motyw

Opcje

Zmień szablon

Przywrócić automatycznie zapisane ćwiczenie: ?