answersLogoWhite

0


Best Answer

control structures are which is used to do some operations with conditions some of them are if,if else,switch,goto,continue..........and loops like for ,while,do while and even break used to break the process on some conditions

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

SEQUENCE STRUCTURE: an action, or event, leads to the next ordered action in a predetermined order. The sequence can contain any number of actions, but no actions can be skipped in the sequence. The program, when run, must perform each action in order with no possibility of skipping an action or branching off to another action.

The Decision / Selection Structure: In a selection structure, a question is asked, and depending on the answer, the program takes one of two courses of action, after which the program moves on to the next event.

The Loop: While a condition is true. The Loop has two parts: (1) a condition that is tested for true or false value, and (2) a statement or set of statements that is repeated as long as the condition is true.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Depends on the definition of "Control Structures" and the computer language, there may be additional statements available.

NOTE: the terms used below are NOT standard in any way. But I will explain a little to allow you to absorb in your own terms.

The main statements for control the program flow:

Logical branching

If- and if-else , switch or case, catching/handling exceptions

Jump

GO TO, return, yield, break, exit, continue, throwing exceptions

some would consider calling functions or subroutines is a form of jump, I would not.

Iteration

repeat, while, do-while, for, iterate, loop, recursive calls, forever,

There are more control structures, not just 3 kinds,varied from language to language. But I'll throw in another one that may be "hidden" or over-look, and should be available to most of the computer languages:

Evaluation order

left to right or right to left, (), {}, begin-end, operator precedence, short-circuit logical evaluation or not

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

All programming languages support some form of a conditional control structure, an "if-then" and "if-else-then" style of construct.

All programming languages require a construct to select a code path based on a logic expression, such as a test for equality of two items.

All programming languages also support at least one conditional loop construct for repeated execution of a set of instructions subject to a loop-terminating condition. Common loop control structures are loops which test the condition prior to execution (e.g. "while" and "repeat" loops), and those which test the condition after having executed the loop's instructions at least once (e.g. "do-while" and "repeat-until" loops).

Strictly speaking, only one of these loop forms is required, but different forms loops allow expressing a given solution more elegantly.

Most programming languages also support enumerative constructs or loop forms typically used with enumerations (the "for" or "for-next" loop construct, and the "foreach" construct often supported by modern languages).

"for" and "foreach" loops are convenient short forms of the general loop controls discussed above. While the more modern "foreach" loops often allow for efficient code generation (through use of iterator or enumerator design patterns), these loop forms are strictly speaking unnecessary.

Constructs to express multiple-choice decisions are also often supported, but offer no semantic improvement over nested or repeated "if-else" clauses. The popular "switch-case" control is an example for a multiple-choice control.

Other control structures include methods to terminate a loop, restart a loop, divide code flow unconditionally or terminate a program, e.g. "break", "continue", "goto" and "exit".

The specifics of all these constructs vary and are subject to the chosen language, and not all will support all the above, and some will support even more.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

there are 3 types....

they are -

1) sequential

2) conditional

3) unconditional

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which are the control structures in programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Keywords in a programming language that allow the programmer to redirect the flow of the program based on a decision are called?

Keywords in a programming language that allow the programmer to redirect the flow of the program based on a decision are called


What is orthogonality in a programming language?

In computer programming, orthogonality in a programming language means that a relatively small set of primitive constructs can be combined in a relatively small number of ways to build the control and data structures of the language. The term is most-frequently used regarding assembly instruction sets, as orthogonal instruction set.


What has the author W B Langdon written?

W. B. Langdon has written: 'Genetic programming and data structures' -- subject(s): Genetic programming (Computer science), Data structures (Computer science)


Why c is call structured programming?

Because you can use programming structures, namely: sequence, selection (if, switch) and repetition (while, for, do-while)


What has the author Robert L Kruse written?

Robert L. Kruse has written: 'Programming with data structures' -- subject(s): Computer programming, Data structures (Computer science), Pascal (Computer program language)


What are the 3 primitive logic structures?

The three primitive logic structures in programming are selection, loop and sequence. Any algorithm can be written using just these three structures.


Examples on structures of C programming?

'struct tm' (time.h) and 'FILE' (stdio.h)


How is control flow used to solve problems using computer programming?

How is control flow used to solve problems using computer programming


What is repetition control structure?

Repetitive control structures are loops like the do while loop and the for loops. They repeat and execute the same set of instruction until the condition stated in the while or for loop ceases to be true. After which it will exit the loop and continue down the program.


What are the limitations of structures?

By itself, structured programming does not support the notion of a function call. This is achieved through an extension of structured programming known as procedural programming. Object-oriented programming extends procedural programming such that data and the functions that operate upon the data can be encapsulated within an object.


What has the author Mark Elson written?

Mark Elson has written: 'Data structures' -- subject(s): Computer programming, Data structures (Computer science)


What has the author Gregory L Heileman written?

Gregory L. Heileman has written: 'Data structures, algorithms, and object-oriented programming' -- subject(s): Computer algorithms, Data structures (Computer science), Object-oriented programming (Computer science)