Home UP BOARD Question Papers NCERT Solutions CBSE Papers CBSE Notes NCERT Books Motivational

notes Ip Class 11 Control Structures Download PDF

Notes Ip Class 11 Chapter 5 Control Structures Download PDF

Chapter 5 : Control Structures

NCERT Notes for Class 11 I.P.

Chapter 5 : Control Structures

block of statements for specific number of time, there we use control flow statements. Control flow statements, however, breakup the flow of execution by decision making, looping, and branching, by execute condition expressions for particular blocks of code.

Control flow structure are of three types :

1. Sequence Control Structure
2. Selection Control Structure
3. Iteration Control Structure (loops)

Sequence Control Structure :

Sequence construct means the statements are being executed sequentially. It is a default flow of statement from top to bottom.

Selection Control Structure:

When the execution of the statement(s) depends upon a condition test then it is called selection flow of control. If a condition evaluates to true, one course of action is followed other wise another course of action is followed.

It is achieved by if……else conditionalstatement and switch …….. case conditional statement.

Selection Control Structure

Nested if else

These control structures are used to test for multiple conditions as against the simple if statement which
can be used to test a single condition.:

Syntax:

Nested if else

(b) switch: This selection statement allows us to test the value of an expression with a series of character or integer values. On finding a matching value the control jumps to the statement pertaining to that value and the statement is executed, till the break statement is encountered or the end of switch is reached.

The syntax of the switch statement is as follows:

switch(Variable/Expression)
{
case Value1 :
statements Block 1 ;
break ;
case Value2 :
statements Block 2
break ;
default:
statements Block 3
}

LOOPING (ITERATION) :

These statements are used to perform a set of instructions repeatedly while the condition is true.

for ……. Loop Statement :

It is basically used to repaeat block of statement { } for specific number of times.

Syntax

for( initialization; test expression; increment/decrement expression)
{
statements;
}

while loop statement:

The while loop is an entry-controlled loop. It means that the loop condition is tested before executing the loop body. If the loop condition is initially false, for the first iteration, then loop may not execute even once.

The syntax of the while loop is as follows:

Syntax

while(test expression)
{ loop body
}

do…..while loop statement :

Do..While loop is an exit-controlled loop. In the do..while loop, the test occurs at the end of the loop. This ensures that the do..while loop executes the statements included in the loop body at least once.

The syntax of the loop is as follows:

Syntax :
do
{
loop body
}while (test expression);

JUMP STATEMENTS

JUMP STATEMENTS:

(i) break : The break is used to break from an enclosing do, while ,for or switch statement.
(ii) continue: The continue statement stops the execution of the current iteration and causes control to begin with next iteration.
(iii) return : Return is used to return value from the method

Notes Control Structures Download PDF


Please send your queries to ncerthelp@gmail.com you can aslo visit our facebook page to get quick help. Link of our facebook page is given in sidebar


Class and Subject List

Ncert Solution for class 6 to 12 download in pdf

CBSE Model test papars Download in pdf

NCERT Books Free Pdf Download for Class 5, 6, 7, 8, 9, 10 , 11, 12 Hindi and English Medium

Mathematics Biology Psychology
Chemistry English Economics
Sociology Hindi Business Studies
Geography Science Political Science
Statistics Physics Accountancy

CBSE Syllabus Class 6 to 9, 10, 11, 12 Maths, Science, Hindi, English ...

Last year CBSE Question paper for Class 6 to 9, 10, 11, 12 Maths, Science, Hindi, English ...

Important Links

Follow Us On

Face book page ncerthelp twitter page youtube page linkdin page

NCERT CBSE News

NCERT CBSE News

Please Share this webpage on facebook, whatsapp, linkdin and twitter.

Facebook Twitter whatsapp Linkdin

Copyright @ ncerthelp.com A free educational website for CBSE, ICSE and UP board.