Sep 2, 2010

What are the three basic programming control structures?

" When programmers are required to design the logic of a program, they typically use control structures to describe the tasks a program is to perform. A control structure, is also known as a construct, depicts the logical order of program instructions."

Source: Discovering Computers, Fundamentals 4th edition, Shelly Cashman Series, Thomson Course Technology

Research and  enumerate the three basic control structures in any ways you can such as inserting and adding images or videos, illustrations, definitions and source links. Submit your comments and blogs as soon as possible.

Follow this link to know more:
https://sites.google.com/site/watcharawittayaepcomputer/1st-semester/mathayom-4/student-journal/whatarethethreebasicprogrammingcontrolstructures

34 comments:

I'm New said...

The three basic programming control structures are :

1.Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

2.Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

3.Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

Anonymous said...

"What are the three basic programming control structures?"

Answer. - Conditional structure : If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

- Iteration structure : Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

- Selective structure : Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

Chutinan Chokethanomsab said...

The Three basic programming control structures.

1) Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

2) Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.


3) Jump statements:
These statements include Break, Continue and Goto instructions. These instruction jumps from one portion of the program to another portion of the program. The function calling can also be included in this category.

Source : Abadit Ali (Network Engineer) From www.blurtit.com

Aom4-5 said...

Answer

In programming normally the sequence of instruction is no limited to linear. We need to repeat several statements or we need to jump from one part of the program to another part of the program. For this purpose the control structures are used.

The following are the types of control structures.

Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.


Jump statements:
These statements include Break, Continue and Goto instructions. These instruction jumps from one portion of the program to another portion of the program. The function calling can also be included in this category.

Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.
Great Answer Not Helpful Report

JUMKITTY no.16 said...

What are the three basic programming control structures?

The following are the types of control structures.

Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.


Jump statements:
These statements include Break, Continue and Goto instructions. These instruction jumps from one portion of the program to another portion of the program. The function calling can also be included in this category.

Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

MARKETTOO said...

HOME WORK 100903
WHATARE THE THREE BASIC PROGRAMMING CONTROL STRUCTUSE ?

-Beginners can find Programming very confusing, Just like any other subject, there are a lot of new concepts to understand and lots of new terminology to learn. One of the most basic concepts in programming is control structures. There are three control structures and all programmers must learn what they are and how they can be used.These three basic structures can be used to develop any kind of program and they are explained below.

SEQUENTIAL PROGRAMMING
-The most straightforward control structure is the sequence. A list of what to do, step by step.


Example
1.do the first thing
2.do the next thing
3.do another thing

IN PSEUDOCODE
- Declare a variable called count
- Set count to 1
- Write out the value of count

REPETITION IN PROGRAMMING
-Repetition is also called iteration and is used when something is repeated over and over again, so anything where the program goes round in a loop. Typically programmed using code such as WHILE, REPEAT and FOR statements.


Example
1.Do the first thing
2.While (some condition is TRUE)
3.Do b
4.Do c
5.Do the next thing

IN PSEUDOCODE

- Set count to 0

- WHILE (there are items in a pile)
- Increase count by 1
- Write out the number of items
Another example to write out numbers 1 to 10
- FOR count = 1 to 10
- Write out count
- Write out ‘finished’


NOTE: a FOR loop is used when it is known exactly how many times to go round the loop
-Selection in Programming : Making Decisions
-Selection is used to make a decision to go down one path or another, often programmed using code such as an IF statement, or a CASE statement.


Example: To Pack my bag for work
1.Pack my PC

2.Pack my money
3.If it's raining
4.Pack my coat

IN PSEUDOCODE
- Work out total cost
- If (total cost > £10) THEN
- Write out ‘no delivery charge’
- ELSE
- Write out ‘£5 delivery charge’
- Write out ‘thankyou’

Another example using a CASE
- Write out the day
- CASE (day)
- Monday: write out ‘first working day of the week’
- Friday: write out ‘last working day of the week’
- Saturday: write out ‘the first day of the weekend’
- Sunday: write out ‘the second day of the weekend’

ENDCASE

- Sometimes there is confusion between the Repetition and Selection statements, as both use a condition. A condition is a test, resulting in true or false. One way of describing the difference is that when making a selection, the condition is only ever tested once. When used in repetition, the condition is tested a number of times, every time the program decides whether to loop.


- Beginners who take the time to learn the basic building blocks of programming will find coding in new languages easier and developing computer programs requires an understanding of the three basic control structures outlined above.

MARKETTOO said...

I'm New said...
The three basic programming control structures are :

1.Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

2.Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

3.Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

NS_NAN_14 said...

"What are the three basic programming control structures?"

A program is usually not limited to a linear sequence of instructions. During its process it may bifurcate, repeat code or take decisions. For that purpose, C++ provides control structures that serve to specify what has to be done by our program, when and under which circumstances.

Conditional structure

In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language which perform different computations or actions depending on whether a programmer-specified "condition" evaluates to true or false (see boolean datatype). Apart from the case of branch predication, this is always achieved by selectively altering the control flow based on some condition.

Iteration structures (loops)

An iteration structure, or loop, is used when you want a block of code to run more than once. For instance, let's say we want the ball from the previous examples to bounce up and down exactly ten times.



Jump Statements

Jump statements can be used to modify the behavior of conditional and iterative statements. Jump statements allow you to exit a loop, start the next iteration of a loop, or explicitly transfer program control to a specified location in your program.

Ice_fanclubaff_(G) said...

What are the three basic programming control structures?

The following are the types of control structures.


-Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

-Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

-Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

IceM.4/5No.1 said...

What are the three basic programming control structures?

Answer:

1.Conditional structure.
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check.

2.Iteration structure.
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

3.Selective structure.
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

WR IT no.30 said...

What are the three basic programming control structures?
1.Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

2.Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

3.Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

WR IT no.31 said...

The three basic programming control structures ?

1.Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

2.Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

3.Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

WR IT no.31 said...

The three basic programming control structures?

1.Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

2.Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

3.Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

WR IT no.30 said...

"What are the three basic programming control structures?"


Answer. - Conditional structure : If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

- Iteration structure : Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

- Selective structure : Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice

WR IT YOD said...

the three basic programming control structures
1) Conditional structure:

If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.



2) Iteration structure:

Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.





3) Jump statements:

These statements include Break, Continue and Goto instructions. These instruction jumps from one portion of the program to another portion of the program. The function calling can also be included in this category.
http://sites.google.com/site/watcharawittayaepcomputer/1st-semester/mathayom-4/student-journal

Beam4/5no.2 said...

The three basic programming control structures are

-Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

-Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

-Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

Crazii3 said...

The three basic programming control structures are :

1.Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

2.Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

3.Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

'Prazer said...

What are the three basic programming control structures?
Answer:
1) Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.


2) Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.


3) Jump statements:
These statements include Break, Continue and Goto instructions. These instruction jumps from one portion of the program to another portion of the program. The function calling can also be included in this category.
http://sites.google.com/site/watcharawittayaepcomputer/1st-semester/mathayom-4/student-journal

ENG said...

What are the three basic programming control structures?

ANS.The program is structured or structured programming is to define the steps that the computer works with three basic principles of control structures such as Sequence Decision and Repeation or Loop.

1. Sequence is written to run from top to bottom. Write a command line. And line by line from top line down to the bottom line. Assume that the process is run 3 is calculated and printed to read a written work plan (Flowchart) respectively in the picture.
2. Decision was to write a program to bring value to select the action. There is usually an event to a second process is the condition is true the process is done one And a false one will do the process again. If more complex. Conditions will require multiple layers. Such as grading students, etc. Examples of this work plan. Displays a simple selection. To carry out the process just the same process.
3.Repeation or Loop is one of several processes. The conditions of control Means repeating the principles that are difficult to understand than the first two formats, because each programming language. Do not show a clear picture as flowchart (Flowchart) the programmer must imagine The form and function. And self-control commands. Sample work plan presented this show, repeat the command (do while), which means repeating as fact. And stop repeating when the condition is false

Popular..z said...

"What are the three basic programming control structures?"

Answer
- Conditional structure : If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

- Iteration structure : Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

- Selective structure : Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

Popular..z said...

What are the three basic programming control structures?

Answer
- Conditional structure : If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

- Iteration structure : Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

- Selective structure : Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

ENG said...

What are the three basic programming control structures?

ANS. Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

Iteration structure:Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.


Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

P.A.NOOK said...

What are the three basic programming control structures?

the three basic programming control structures are
1.Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

2.Iteration structure:Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

3.Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

Popular..z said...

What are the three basic programming control structures?
the three basic programming control structures are

1.Conditional structure

If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.



2.Iteration structure

Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.



3.Selective structure:

Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

BlackLight said...

The three basic programming control structures are :

1.Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.

2.Iteration structure:
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

3.Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

C 4.5 N 5 said...

What are the three basic programming control structures?
1) Conditional structure:

If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.



2) Iteration structure:

Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.

3) Jump statements:

These statements include Break, Continue and Goto instructions. These instruction jumps from one portion of the program to another portion of the program. The function calling can also be included in this category.

-//-Mayliza N0:38 said...

What are the 3 basics programming control structures ???????


Answer:


1.Conditional structure.
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check.


2.Iteration structure.
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.




3.Selective structure.
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

-//-Mayliza N0:38 said...

What are the 3 basics programming control structures ???????


Answer:


1.Conditional structure.
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check.


2.Iteration structure.
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.




3.Selective structure.
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

-//-Mayliza N0:38 said...

What are the 3 basics programming control structures ???????


Answer:


1.Conditional structure.
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check.


2.Iteration structure.
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.




3.Selective structure.
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

WR IT Unn said...

What are the 3 basics programming control structures???????

Answer:
1. Conditional structure.
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check.


2. Iteration structure.
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop.


3. Selective structure.
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

WR IT Unn said...

What are the 3 basics programming control structures???????

Answer:
1. Conditional structure.
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check.


2. Iteration structure.
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop.


3. Selective structure.
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

WR IT Unn said...

What are the 3 basics programming control structures???????

Answer:
1. Conditional structure.
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check.


2. Iteration structure.
Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop.


3. Selective structure.
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.

PePo_Nice said...

In any programming language there are some control structures that are used to change the flow of control as required. Two most commonly used control structure are as:

1. iterative structures
2. conditional structures

Conditional structures consist of some condition statements (like if-else statement in C++). These statements check a condition, and perform an action (e.g., execute some statements or call a function etc.) in the case of true condition an in the case of false statement they perform something else as specified by the programmer.

Iterative structures are used to iterate one or more statements either for a specified number of times or until a specified condition if fulfilled.

the most commonly used iterative structures in C++ are for loop , while loop and do while loop. these may be semantically different in different languages but generally these are same in semantics.

for loop is normally called counter loop because it is used to iterate the control for a specified number of times and while loop is called conditional loop.
The third control structures are 'got' statement which neither checks a condition nor iterates statements.

The Goto statement when encounters, just transfer the control to the specified location.
This type of structures are not commonly used today because they don't provide some sense of programming.

PePo_Nice said...

In any programming language there are some control structures that are used to change the flow of control as required. Two most commonly used control structure are as:
1. iterative structures
2. conditional structures
Conditional structures consist of some condition statements (like if-else statement in C++). These statements check a condition, and perform an action (e.g., execute some statements or call a function etc.) in the case of true condition an in the case of false statement they perform something else as specified by the programmer.
Iterative structures are used to iterate one or more statements either for a specified number of times or until a specified condition if fulfilled.
the lost commonly used iterative structures in C++ are for loop , while loop and do while loop. these may be semantically different in different languages but generally these are same in semantics.
for loop is normally called counter loop because it is used to iterate the control for a specified number of times and while loop is called conditional loop.
The third control structures are 'got' statement which neither checks a condition nor iterates statements.
The Goto statement when encounters, just transfer the control to the specified location.
This type of structures are not commonly used today because they don't provide some sense of programming.