No products in the cart.

Mention the types of control structure

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Mention the types of control structure
  • 2 answers

Yogita Ingle 4 years, 10 months ago

Flow of control through any given function is implemented with three basic types of control structures:

  • Sequential: default mode. Sequential execution of code statements (one line after another) -- like following a recipe
  • Selection: used for decisions, branching -- choosing between 2 or more alternative paths. In C++, these are the types of selection statements:
    • if
    • if/else
    • switch
  • Repetition: used for looping, i.e. repeating a piece of code multiple times in a row. In C++, there are three types of loops:
    • while
    • do/while
    • for

Manas Bisay 4 years, 10 months ago

Control Structures are just a way to specify flow of control in programs. ... There are three basic types of logic, or flow of control, known as: Sequence logic, or sequential flow. Selection logic, or conditional flow.
http://mycbseguide.com/examin8/

Related Questions

Code for making time table in computer
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App