Home UP BOARD Question Papers NCERT Solutions Sample Papers CBSE Notes NCERT Books CBSE Syllabus

Control Structures Class 11 Notes For Informatics Practices Chapter 5

notes ip class 11 control structures download pdf, control structures 11 notes, class 11 informatics practices notes, control structures class 11, control structures class 11 notes, class 11 control structures, note informatics practices, informatics practices notes, control structures, class 11 cinformatics practices chapter 5 notes, 11th standard informatics practices notes, 11th std informatics practices notes, class 11 informatics practices notes chapter 5, control structures chapter class 11 notes

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

Important Links

NCERT CBSE Notes Class 6 - 12 Download pdf

Ncert Solution for class 6 to 12 download in pdf

CBSE Model test papars Download in pdf

NCERT Books for Class 1- 12 Hindi & English Medium

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

CBSE Syllabus Class 9 to 12 Year 2021-22

Last year CBSE Question paper

Important Links

Follow Us On

Face book page ncerthelp twitter page youtube page linkdin page

Solved Last Year Question Paper

If You have any problem/query related to above page please send us your Query to ncerthelp@gmail.com with code Serial No1726/1096. Thanks

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.