Algorithms and Pseudocode
Questions with Accurate Answers
array correct answer a collection of items stored at contiguous memory
locations; each item can be accessed using an index
binary search correct answer a search algorithm that finds the position
of a target value within a sorted array by repeatedly dividing the search
interval in half
block correct answer a group of statements that are executed together,
typically enclosed in curly braces or defined by indentation
bubble sort correct answer a simple sorting algorithm that repeatedly
steps through a list, compares adjacent elements, and swaps them if
they are in the wrong order
concrete step correct answer a detailed action in an algorithm that
specifies exactly how to perform a task
count-controlled loop correct answer a loop that repeats a specific
number of times; controlled by a counter variable (e.g., "for" loop)
, desk checking correct answer a manual method of reviewing the logic
of a program or algorithm using a pencil and paper instead of a
computer
dual-alternative if correct answer an if statement that provides two
paths: one for when the condition is true and another for when it is
false (also known as if-else)
end-structure statement correct answer a statement that marks the
end of a block of code, such as the end of a loop or an if statement
event-controlled loop correct answer a loop that continues to execute
until a specific condition or event occurs, such as user input or a sensor
reading
explicit conversion correct answer a type of conversion where the
programmer manually changes a data type to another, often using a
specific function or syntax
floating-point number correct answer a number that can have a
fractional part represented with decimal points
flowchart correct answer a visual diagram that represents the steps in a
process or algorithm using symbols and arrows to show the flow of
control