COMPUTER SCIENCE AND ENGINEERING
ALGORITHMS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Sequence
|
|
Selection
|
|
Iteration/Looping
|
|
None of the above
|
Detailed explanation-1: -Iteration is when we use loops to repeat code in a program. Selection is when we use conditionals (if/else) to execute different blocks of code in a program.
Detailed explanation-2: -Sequence is the order in which instructions occur and are processed. Selection determines which path a program takes when it is running. Iteration is the repeated execution of a section of code when a program is running.
Detailed explanation-3: -In programming specifically, iterative refers to a sequence of instructions or code being repeated until a specific end result is achieved.
Detailed explanation-4: -Sequencing is the specific order in which instructions are performed in an algorithm. For example, a very simple algorithm for brushing teeth might consist of these steps: put toothpaste on toothbrush. use toothbrush to clean teeth.