Preview

Prg 211

Satisfactory Essays
Open Document
Open Document
393 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Prg 211
What is sequential flow of a program?
A sequential slow is a series of consecutive statements which is executed in the order that they instructed. The computer only operates on sequential code, one statement after the next, until it encounters a decision structure, loop structure, or a submodule. After the decision, loop, or instructions are completed, the next statement in sequence will be executed.

What is branching within a program?
Branching is similar to a fork like structure. It basically means a change in the flow of a program where it executes to a different part of the program module. The decision to branch is usually based on the answer of the end user. How is branching controlled?
Branching is controlled by conditional test statements. The statement is executed once the test condition is met. The branch will flow in a certain direction depending on the criteria that was input. Otherwise, sequential flow of statement will be directed to other area of the program. What is the role of an if statement in control structures?
An if statement is basically a single block of instructions where the test condition have been met, then the statements will be executed sequentially. Otherwise, the statements are skipped over if the test condition failed.

To determine which types of selection structures, each groups or blocks of statements must be tested to determine which of these statements can be executed. 1) A single alternative structure contains only a single block of statements. If the test condition is met, the statements are executed. The statements are skipped if the test condition is not met. 2) There are two blocks of statements in a dual alternative structure. If the first block is executed after the test condition is met, then the program skips over the second block. If the first block of statements failed the test condition, it will be skipped and the second block is executed. 3) Containing more than two blocks of

You May Also Find These Documents Helpful

  • Satisfactory Essays

    SD1230 Lab 1

    • 239 Words
    • 2 Pages

    1. What is an instruction? – A sequence of bits understood by the processor to signal a certain action…

    • 239 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The second category of fault changes individual instructions in the text segment. These faults are intended to approximate the assembly-level manifestation of real C-level programming…

    • 285 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Which of the following control structures is a multiple-branch decision mechanism capable of more than three decisions?…

    • 2385 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    Homework Unit 3

    • 354 Words
    • 2 Pages

    1. Statements are execute in order according to the program code. Complex programs can need the help of a decision structure. Statements have to be true to be executed.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Unit 59 Assignment 3

    • 645 Words
    • 3 Pages

    The process of how the subroutine works within an operating environment is as follows. While the main part of the program is running, there will be a call command sent to the CPU to tell it to stop wherever the program is at, store the W, Z and status along with where in the main program the CPU is at in the stack. Then the main program is cleared from memory and the subroutine is loaded for the CPU to start processing the code. Once the subroutine has finished, the subroutine code is deleted from memory and the CPU will load up the main program back on and will retrieve from stack the stored information (W, Z and status) which will allow the CPU know exactly where it needs to start from.…

    • 645 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    unit 7 assignment 1

    • 431 Words
    • 2 Pages

    3. What is a condition-controlled loop? A condition-controlled loop uses a true/false condition to control the number of times it repeats.…

    • 431 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    conditions as compared to using exception handling when performing input or output. And the mystery…

    • 442 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    * Provide a set of test values that will cause each of the branches to be…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    It250

    • 272 Words
    • 2 Pages

    Which of the following control structures is a multiple-branch decision mechanism capable of more than three decisions?…

    • 272 Words
    • 2 Pages
    Good Essays
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    What is a logical design that controls the order in which a set of statements execute?…

    • 738 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    IT 210 appendix d

    • 264 Words
    • 2 Pages

    Match the activity or purpose on the left with the appropriate description on the right by typing in the corresponding letter under the Answer column.…

    • 264 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    IF You Want To Purchase A+ Work Then Click The Link Below , Instant Download…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    branch would check the others to make sure they were following the rules. Document C…

    • 448 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Geog 122

    • 375 Words
    • 2 Pages

    When you have finished watching the video you are to write a single page, single spaced (approx. 500 words) paper about the video. It should not be a summary, but rather a commentary and analysis. Include in your analysis your thoughts about: whether reintroduction was effective, would the Adamson's methods of working with lions be appropriate in 2012, and was making the movie Born Free useful for lion conservation or just a money making venture. Also tell me if you ever heard of the movie Born Free prior to seeing this video.…

    • 375 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Ecn 211

    • 1415 Words
    • 6 Pages

    “Underlying most arguments against the free market is a lack of belief in freedom itself.”…

    • 1415 Words
    • 6 Pages
    Good Essays

Related Topics