{"id":10909,"date":"2018-02-23T11:58:35","date_gmt":"2018-02-23T06:28:35","guid":{"rendered":"http:\/\/mycbseguide.com\/blog\/?p=10909"},"modified":"2018-03-17T15:21:08","modified_gmt":"2018-03-17T09:51:08","slug":"programming-c-p-p-class-11-notes-computer-science","status":"publish","type":"post","link":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/","title":{"rendered":"Programming in C P P class 11 Notes Computer Science"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#CBSE_Guide_Programming_in_C_P_P_class_11_Notes_Computer_Science\" >CBSE Guide Programming in C P P class 11 Notes Computer Science<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#11_Computer_Science_notes_Chapter_4_Programming_in_C_P_P\" >11 Computer Science notes Chapter 4 Programming in C P P<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#Download_Revision_Notes_as_PDF\" >Download Revision Notes as PDF<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#Programming_in_C_P_P_class_11_Notes\" >Programming in C P P class 11 Notes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#CBSE_Class-11_Revision_Notes_and_Key_Points\" >CBSE Class-11 Revision Notes and Key Points<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<p>CBSE Programming in C P P class 11 Notes Computer Science in PDF are available for free download in myCBSEguide mobile app. The best app for CBSE students now provides Programming in C P P class 11 Notes Computer Science latest chapter wise notes for quick preparation of CBSE exams and school based annual examinations. Class 11 Computer Science notes on Chapter 4 Programming in C P P class 11 Notes Computer Science are also available for download in CBSE Guide website.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"CBSE_Guide_Programming_in_C_P_P_class_11_Notes_Computer_Science\"><\/span><strong>CBSE Guide Programming in C P P class 11 Notes Computer Science<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>CBSE guide notes are the comprehensive notes which covers the latest syllabus of CBSE and NCERT. It includes all the topics given in NCERT class 11 Computer Science text book. Users can download CBSE guide quick revision notes from myCBSEguide mobile app and my CBSE guide website.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"11_Computer_Science_notes_Chapter_4_Programming_in_C_P_P\"><\/span><strong>11 <\/strong>Computer Science<strong> notes Chapter 4 Programming in C P P<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Download CBSE class 11th revision notes for chapter 4 Programming in C P P in PDF format for free. Download revision notes for Programming in C P P class 11 Notes and score high in exams. These are the Programming in C P P class 11 Notes Computer Science prepared by team of expert teachers. The revision notes help you revise the whole chapter 4 in minutes. Revision notes in exam days is one of the best tips recommended by teachers during exam days.<\/p>\n<h1 style=\"text-align: center\"><span class=\"ez-toc-section\" id=\"Download_Revision_Notes_as_PDF\"><\/span><a href=\"https:\/\/mycbseguide.com\/downloads\/cbse-class-11-computer-science\/1852\/cbse-revision-notes\/7\/\"><strong>Download Revision Notes as PDF<\/strong><\/a><span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p style=\"text-align: center\"><strong>CBSE Class 11 Computer Science<br \/>\nRevision Notes<br \/>\nProgramming in C P P class 11 Notes Computer Science<br \/>\nChapter -4<\/strong><\/p>\n<p><strong>Investigation of Programming Construct in C++.<\/strong><\/p>\n<p>OBJECTIVES:<\/p>\n<p><strong>\u2022 to emphasize the programming construct available in C++<\/strong><\/p>\n<p><strong>\u2022 to investigate each and every programming construct emphasizing the situation where they can be used perfectly.<\/strong><\/p>\n<p><strong>\u2022 to demonstrate few working program in C++ using the constructs.<\/strong><\/p>\n<p><strong>1.1 Why and What of Constructs in C++ programming<\/strong><\/p>\n<p><strong>1.1.1: Flow of logic<\/strong><\/p>\n<p>You have seen in the previous unit that a program is implementation of an algorithm (steps involved in problem solving) using a particular programming language like C, C++, Java etc. In our case we are using C++ as a high level language (HLL) to code our programs.<br \/>\nA programming language like C++ is having a bundle of programming elements like tokens, identifiers, variables, constants, operator symbols, punctuation symbols etc. (please refer to earlier unit if you have not learnt all these terms.). All these programming elements helps a programmer to write simple C++ programs as shown below:<\/p>\n<p>program 1. 1<br \/>\n\/\/ a simple program in C++ to add two integers<br \/>\n#include&lt;iostream. h&gt;<br \/>\nvoid main( )<br \/>\n{<br \/>\nint a = 0, b = 0;<br \/>\ncout&lt;&lt;\u201dlnput two numbers\u201d;<br \/>\ncin&gt;&gt; a&gt;&gt;b;<br \/>\ncout&lt;&lt;\u201dThe sum of numbers are: \u201d &lt;&lt; (a+b);<br \/>\n}<\/p>\n<p>The above program is a very basic program which asks two integer values from user and prints out their sum. In the above program you may observe that various programming elements like:\u00a0# &lt; ( ) { =, a b &lt;&lt; &gt;&gt; int void main &#8220;Input two numbers &#8220;; are being used.<\/p>\n<p><strong>Work out yourself:<\/strong><\/p>\n<p>Identify each of the above programming elements and write its name using a table\u00a0Students the program above is very simple to be thought, written and executed, but in real industrial programming situation we seldom get such programs to write. There are many complex situation in life where we often need to write programs using few advanced programming elements. Let us investigate few of the real life situations:<\/p>\n<p>a) Ram needs to find out whether any number is divisible by both 3 and 5.<\/p>\n<p>b) A shopkeeper wants to give x % discount on a particular purchase only when the net purchase by his customer exceeds Rs. 1000<\/p>\n<p>c) A teacher wants to calculate the average marks for each of his 40 pupils in a class.<\/p>\n<p>d) Suresh wants to continue his program till he is pressing escape button on keyboard.<\/p>\n<p><strong>Can you program the above programming problems using the programming elements of C++ which you have learn till now?<\/strong><\/p>\n<p>Your answer would be probably a NO, because the C++ programming elements which you have studied till now, will only enable you to write simple linear programs, or sequential programs.<\/p>\n<p><strong>1.1.2: Linear Flow<\/strong><\/p>\n<p><strong>A simple linear program is one which has a linear flow of execution of programming logic \/statements. e.g. program 1.1. The logic of program flows (or better they are termed as control flow) from top to bottom out of set of statements.<\/strong><\/p>\n<p>Now let us proof the that program 1.1 follows a sequential flow of logic by the following flow chart diagram:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" id=\"Picture 1\" class=\"alignnone\" src=\"https:\/\/media-mycbseguide.s3.amazonaws.com\/images\/static\/revise\/11\/computer\/ch4a\/image001.jpg\" alt=\"Programming in C P P class 11 Notes Computer Science\" width=\"227\" height=\"312\" \/><\/p>\n<p>So easy isn&#8217;t it? As you observe that the arrows are moving in one direction only from top to bottom, the flow of program is sequential \/ linear.<\/p>\n<p><strong>Work out yourself:<\/strong><br \/>\nIdentify few of the programs which you have written while dealing Unit-3 and find whether they are following sequential flow of program? If yes can you make a flow chart to justify your idea.<br \/>\nSo there exist a big question now that whether C++ programs have other types of flow of program which is totally different from linear flow. Yes, students we also have other types of flow of program.<\/p>\n<p><strong>Conditional Flow<\/strong><br \/>\nLet us investigate the real life problems visited by us earlier in this chapter:<br \/>\na) Ram needs to find out whether a number is divisible by both 3 and 5 We will represent the above problem in flow char t notation:<br \/>\n<img loading=\"lazy\" decoding=\"async\" id=\"Picture 2\" class=\"alignnone\" src=\"https:\/\/media-mycbseguide.s3.amazonaws.com\/images\/static\/revise\/11\/computer\/ch4a\/image002.jpg\" alt=\"Programming in C P P class 11 Notes Computer Science\" width=\"624\" height=\"443\" \/><\/p>\n<p>Observe the above flowchart-2 and compare it with the earlier flowchart &#8211; 1 and then answer the following questions:<\/p>\n<p>i) Are arrows in the flowchart (which represent flow) emerging and proceeding in one direction in both flowcharts? [Yes \/ No].<br \/>\nii) If answer to the first question is No then why not?<br \/>\niii) Let us call the flow of arrows in a particular direction a Path then how many such paths you observe in first flowchart and that in second one?<br \/>\niv) In flowchart &#8211; 2 we have used rhombus. What is its significance in whole flowchart?<\/p>\n<p>So going through the questions above and answering them yourself you find that in the second flowchart is different from the first one in following respect:<\/p>\n<p>1) The direction of arrows in second flowchart is not always linear, sometime the direction of the flow takes turns at the junction of a rhombus. (there are two such such turnings)<\/p>\n<p>2) At each rhombus junction the flow decides which way to proceed after asking a logical\u00a0statement (e.g n is divisible by 3) , thus creating several paths following which the program logic can flow. In our flowchart -1 there is no such branching of paths is observed, but in case of flowchart-2 we may observe two branching where from a program can flow through to reach end and terminate itself.<\/p>\n<p>So we may now emphasize that a program not only have a linear flow but it can also have a branched flow as observed in flowchart- 2. Each of these branches can be interpreted as one execution path of the same program. Hence we can say that in real world, there exist some programming situation which needs branched flow of program instructions, or in simple terms we may say that the program demands several paths of execution.<\/p>\n<p>Thus,\u00a0A program having multiple paths of execution, where each path leads to different type of completion states, are categorized as Conditional Programs. The selection of paths of execution depends upon a logical decision being made (look at the rhombuses)<\/p>\n<p>When we consider our problem then it is seen that a number when it is satisfying both the logical conditions at two rhombuses ends up with a result that it is divisible by both values 3 and 5( execution path -1 ) whereas if it not satisfying either of the two logical conditions placed at two rhombuses then the program ends up with another result showing it is not divisible by both of them together. Satisfying any one of the logical condition would not solve our purpose as we are expecting a logical AND (&amp;&amp;).<\/p>\n<p>Now let us convert the above flowchart -2 in a C++ program. You may not understand all the parts of programs here, so don&#8217;t worry it will be described in the later part of the chapter.<\/p>\n<p><strong>Program &#8211; 1.2<\/strong><\/p>\n<p>\/\/ program to implement the problem described by flowchart-2<br \/>\n#include&lt;iostream.h&gt;<br \/>\nvoid main( )<br \/>\n{<br \/>\nint num = 0; \/\/ declaring a variable num<br \/>\ncout&lt;&lt;\u201dInput the number you want to check\u201d;<br \/>\ncin&gt;&gt;num; \/\/ Inputting value of n<br \/>\nif (n % 3 == 0) \/\/ checking whether n is divisible by 3, consider the first rhombus of the flowchart-2<br \/>\n{<br \/>\nif (n% 5 == 0) \/\/ checking whether n is divisible by 5, consider the second rhombus \/\/ of flowchart-2<br \/>\n{<br \/>\ncout&lt;&lt;\u201dThe number you inputted is divisible by both 3 and 5\u201d ; \/\/ path1<br \/>\n}<br \/>\nelse<br \/>\ncout&lt;&lt;\u201dThe number you inputted is not divisible both by 3 and 5\u201d; \/\/ path2<br \/>\n}<br \/>\nelse<br \/>\ncout&lt;&lt;\u201dThe number you inputted is not divisible both by 3 and 5\u201d; \/\/ path2<br \/>\n}<br \/>\nThe shaded part of the above program shows how a conditional branching is implemented with an if ( )- else construct of C++.<\/p>\n<p><strong>Workout yourself:<\/strong><\/p>\n<p>Draw flowcharts for problem situation b) given earlier in page no. 4, and then find whether the problem follows a linear flow or conditional flow? Check it out with you teacher.<\/p>\n<p><strong>1.1.3: Iterative Flow \/ Cyclic Flow:<\/strong><\/p>\n<p>Now let us solve the problem situation c) given in page 4 with the help of a flowchart. i.e<br \/>\nA teacher wants to calculate the average marks for each of his 40 pupils in a class.<br \/>\nLet us assume that the teacher maintains count of his\/her students in a variable say n.<br \/>\nLet the teacher starts n from 1st student i.e n = 1<br \/>\nLet there are marks in five subjects say s1, s2, s3, s4 and s5 and Avg as Average<br \/>\nWe must remember that this problem demands calculation of average marks of each student, i.e Average marks for each of the individual 40 students would be calculated and displayed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" id=\"Picture 3\" class=\"alignnone\" src=\"https:\/\/media-mycbseguide.s3.amazonaws.com\/images\/static\/revise\/11\/computer\/ch4a\/image003.jpg\" alt=\"Programming in C P P class 11 Notes Computer Science\" width=\"388\" height=\"610\" \/><\/p>\n<p>Observe the above flowchart-3 and compare it with flowchart-2 given earlier. Try to answer the following question:<br \/>\na) Are directions of arrows in both flowchart 2 and 3 are always pointing downwards? [Yes \/ No]\nb) If your answer to the above question a) is in No then what are other directions in which arrows proceeds? [ choose from: Leftwards, Rightwards, Upwards, all of them]\nc) In which flowchart the arrow proceeded upwards and Why?<\/p>\n<p>Verify your answer with your teacher.<br \/>\nSometime according to special problem situation we find that in a program we proceed to a same statement \/ step again, which we have visited earlier during flow of program. Observing flowchart &#8211; 2 we find that we never proceed to a step twice.<br \/>\nIn case of flowchart-3 we observe that steps after the rhombus are repeated if logic in rhombus produces a Yes value (you may see that an arrow moves upwards to the rhombus).<\/p>\n<p><strong>A cycle is formed between the Rhombus and steps after it, based on the Yes value of the logic (n &lt;= 40?) kept in rhombus.<\/strong><br \/>\nThis cyclic path of execution is referred as an Iteration in C++ programming jargon.<\/p>\n<p><strong>Workout yourself:<\/strong><br \/>\ni) How many times the program proceeds in a Cyclic path in the flowchart- 3. Why? When does this cyclic path of execution ends in the flowchart-3.<br \/>\nii) What will happen if the cyclic path of execution never gets ended?<br \/>\nThe cyclic path of execution or Iteration in problem represented by flowchart-3 ends based on the No value of the logic (n &lt;= 40?) kept in rhombus. This No will be generated when n will become anything greater than 40.<br \/>\nNow let us convert the above flowchart -3 in a C++ program. You may not understand all the parts of programs here, so don&#8217;t worry it will be described in the later part of the chapter.<br \/>\nProgram &#8211; 1.3<br \/>\n\/\/ program to implement the problem described by flowchart-2<br \/>\n#include&lt;iostream.h&gt;<br \/>\nvoid main( )<br \/>\n{<br \/>\nint n = 1 ; \/\/ declaring a variable n to keep count of students<br \/>\nint s1 = s2=s3=s4=s5=0; \/\/ declaring subject marks and initializing them with 0<br \/>\nfloat Avg = 0.0; \/\/ declaring variable for keeping Average of student&#8217;s marks<br \/>\ncout&lt;&lt;\u201dInput the number you want to check\u201d;<br \/>\ncin&gt;&gt;num; \/\/ Inputting value of n<br \/>\nwhile ( n &lt;= 40 ) \/\/ Iteration starts here<br \/>\n{<br \/>\ncout&lt;&lt;\u201dInput values for s1 , s2 , s3 , s4 and s5\u201d ; \/\/ path1<br \/>\ncin&gt;&gt;s1&gt;&gt;s2&gt;&gt;s3&gt;&gt;s4&gt;&gt;s5;<br \/>\nAvg = (s1+ s2 + s3 + s4 + s5) \/ 5;<br \/>\ncout&lt;&lt;\u201d\\nThe average marks scored by student no.\u201d &lt;&lt;n &lt;&lt; &#8221; is \u201d&lt;&lt;Avg;<br \/>\nn++; \/\/ Incrementing the value of n by 1<br \/>\n}<br \/>\n\/\/ when cyclic condition is not satisfied the program will flow out here and terminate.<br \/>\n}<br \/>\nThe shaded part of the above program shows how an Iteration is implemented with a while( )\u00a0construct of C++. A while( ) construct instructs the compiler to repeat the set of statement under its\u00a0scope { } if the logical expression (here : n &lt;= 40) attached with it produces a True value. If the\u00a0logical statement fails to produce a True value (i.e. when n becomes 41) then the iteration is ended\u00a0just by terminating the scope of while( ) construct and thereby terminating the program.<\/p>\n<p><strong>The Iterative flow of program is also called as Looping, in above program we have used a while( ) loop construct.<br \/>\nLet us summarize what we have learned till now:<\/strong><br \/>\n1. A program flow is the direction following which steps of program gets executed.<br \/>\n2. A program can have three types of flow of logic:<br \/>\n&#8211; Sequential Flow \/\/ refer to flowchart-1 and program 1.1<br \/>\n&#8211; Conditional Flow \/\/ refer to flowchart-2 and program 1.2<br \/>\n&#8211; Iterative Flow \/\/ refer to flowchart-3 and program 1.3<br \/>\n3. The choice of flow of program is decided by a programmer based on the problem situation. Hence you as a student must analyze the problem very well before before categorizing the problem as sequential, conditional or Iterative program.<br \/>\n4. A programming construct in C++ is just a keyword which governs the flow of logic \/ flow\u00a0of control in a program and decides the various paths which a program may follow during its lifetime till it ends.<br \/>\n5. An if ( )- else construct governs the conditional flow of logic, whereas a while ( ) construct governs the Iterative flow of logic or a loop.<\/p>\n<p><strong>Workout yourself:<\/strong><br \/>\nDraw flowcharts for problem situation d) given earlier in page no. 4, and then find whether the problem follows a linear flow or conditional flow? Check it out with you teacher.<\/p>\n<p><strong>Check your progress:<\/strong><br \/>\nHere are few programming situations given to you find categorize each of them according to the type of flow of control they require, i.e. Sequential, Conditional or Iterative by writing S, C and I before them:<br \/>\n1. Dinesh wants to find simple interest on a given amount at a particular rate of interest for fixed number of years.<br \/>\n2. Adarsh wants to compute compound interest on a given principal, rate and time but without using compound interest formula taught to him in class VIII.<br \/>\n3. Mahalaxmi wants to check whether her weight is an odd number or even.<br \/>\n4. Surekha wants to calculate area of a triangle using Heron&#8217;s formula.<br \/>\n5. Ravi while designing a game program, wants that his game character kicks his motocycle 5 times before the motorcycle gets started.<br \/>\n6. Ayush wants to calculate factorial of a number if the number is even otherwise he wants to find its reciprocal.<br \/>\n7. Mera Bank wants that its customer will be able to draw money from there account only when there is a minimum balance of Rs. 1000 left in their account after the withdrawal.<br \/>\nCheck and discuss your answers with your teacher.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Programming_in_C_P_P_class_11_Notes\"><\/span>Programming in C P P class 11 Notes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>CBSE Revision notes (PDF Download) Free<\/li>\n<li>CBSE Revision notes for Class 11 Computer Science PDF<\/li>\n<li>CBSE Revision notes Class 11 Computer Science \u2013 CBSE<\/li>\n<li>CBSE Revisions notes and Key Points Class 11 Computer Science<\/li>\n<li>Summary of the NCERT books all chapters in Computer Science class 11<\/li>\n<li>Short notes for CBSE class 11th Computer Science<\/li>\n<li>Key notes and chapter summary of Computer Science class 11<\/li>\n<li>Quick revision notes for CBSE exams<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"CBSE_Class-11_Revision_Notes_and_Key_Points\"><\/span><strong>CBSE Class-11 Revision Notes and Key Points<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Programming in C P P class 11 Notes Computer Science. CBSE quick revision note for class-11 Mathematics, Physics, Chemistry, Computer Science and other subject are very helpful to revise the whole syllabus during exam days. The revision notes covers all important formulas and concepts given in the chapter. Even if you wish to have an overview of a chapter, quick revision notes are here to do if for you. These notes will certainly save your time during stressful exam days.<\/p>\n<ul>\n<li><a href=\"http:\/\/mycbseguide.com\/downloads\/cbse-class-11-physics\/1340\/cbse-revision-notes\/7\/\">Revision Notes for class-11 Physics<\/a><\/li>\n<li><a href=\"http:\/\/mycbseguide.com\/downloads\/cbse-class-11-chemistry\/1356\/cbse-revision-notes\/7\/\">Revision Notes for class-11 Chemistry<\/a><\/li>\n<li><a href=\"http:\/\/mycbseguide.com\/downloads\/cbse-class-11-mathematics\/1371\/cbse-revision-notes\/7\/\">Revision Notes for class-11 Mathematics<\/a><\/li>\n<li><a href=\"http:\/\/mycbseguide.com\/downloads\/cbse-class-11-biology\/1388\/cbse-revision-notes\/7\/\">Revision Notes for class-11 Biology<\/a><\/li>\n<li><a href=\"http:\/\/mycbseguide.com\/downloads\/cbse-class-11-accountancy\/1411\/cbse-revision-notes\/7\/\">Revision Notes for class-11 Accountancy<\/a><\/li>\n<li><a href=\"http:\/\/mycbseguide.com\/downloads\/cbse-class-11-economics\/1423\/cbse-revision-notes\/7\/\">Revision Notes for class-11 Economics<\/a><\/li>\n<li><a href=\"http:\/\/mycbseguide.com\/downloads\/cbse-class-11-business-studies\/1740\/cbse-revision-notes\/7\/\">Revision Notes for class-11 Business Studies<\/a><\/li>\n<li><a href=\"http:\/\/mycbseguide.com\/downloads\/cbse-class-11-computer-science\/1852\/cbse-revision-notes\/7\/\">Revision Notes for class-11 Computer Science<\/a><\/li>\n<li><a href=\"http:\/\/mycbseguide.com\/downloads\/cbse-class-11-informatics-practices\/1874\/cbse-revision-notes\/7\/\">Revision Notes for class-11 Informatics Practices<\/a><\/li>\n<li><a href=\"http:\/\/mycbseguide.com\/downloads\/cbse-class-11-geography\/1864\/cbse-revision-notes\/7\/\">Revision Notes for class-11 Geography<\/a><\/li>\n<\/ul>\n<p>To download Programming in C P P class 11 Notes, sample paper for class 11 Chemistry, Physics, Computer Science, History, Political Science, Computer Science, Geography, Computer Science, Home Science, Accountancy, Computer Science and Home Science; do check myCBSEguide app or website. myCBSEguide provides sample papers with solution, test papers for chapter-wise practice, NCERT solutions, NCERT Exemplar solutions, quick revision notes for ready reference, CBSE guess papers and CBSE important question papers. Sample Paper all are made available through\u00a0<a href=\"https:\/\/play.google.com\/store\/apps\/details?id=in.techchefs.MyCBSEGuide&amp;referrer=utm_source%3Dmycbse_bottom%26utm_medium%3Dtext%26utm_campaign%3Dmycbseads\"><strong>the best app for CBSE students<\/strong><\/a>\u00a0and myCBSEguide website.<\/p>\n<ul>\n<li class=\"entry-title\"><a href=\"https:\/\/mycbseguide.com\/blog\/computer-fundamentals-class-11-notes-computer-science\/\">Computer Fundamentals class 11 Notes Computer Science<\/a><\/li>\n<li class=\"entry-title\"><a href=\"https:\/\/mycbseguide.com\/blog\/introduction-to-cpp-class-11-notes-computer-science\/\">Introduction to CPP class 11 Notes Computer Science<\/a><\/li>\n<li class=\"entry-title\"><a href=\"https:\/\/mycbseguide.com\/blog\/using-c-constructs-class-11-notes-computer-science\/\">Using CPP constructs class 11 Notes Computer Science<\/a><\/li>\n<li class=\"entry-title\"><a href=\"https:\/\/mycbseguide.com\/blog\/functions-cpp-class-11-notes-computer-science\/\">Functions in CPP class 11 Notes Computer Science<\/a><\/li>\n<li class=\"entry-title\"><a href=\"https:\/\/mycbseguide.com\/blog\/arrays-and-structures-class-11-notes-computer-science\/\">Arrays and Structures class 11 Notes Computer Science<\/a><\/li>\n<li class=\"entry-title\"><a href=\"https:\/\/mycbseguide.com\/blog\/programming-methodology-class-11-notes-computer-science-2\/\">Programming Methodology class 11 Notes Computer Science<\/a><\/li>\n<li><a href=\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/\">Programming in C P P class 11 Notes Computer Science<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>CBSE Programming in C P P class 11 Notes Computer Science in PDF are available for free download in myCBSEguide mobile app. The best app for CBSE students now provides Programming in C P P class 11 Notes Computer Science latest chapter wise notes for quick preparation of CBSE exams and school based annual examinations. &#8230; <a title=\"Programming in C P P class 11 Notes Computer Science\" class=\"read-more\" href=\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/\" aria-label=\"More on Programming in C P P class 11 Notes Computer Science\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":10009,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47,456],"tags":[457,150,905,1012,426,240],"class_list":["post-10909","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cbse-class-11","category-revision-notes","tag-cbse-notes","tag-cbse-notes-and-key-points","tag-computer-science-notes","tag-programming-in-c-p-p","tag-quick-revision","tag-quick-revision-notes"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Programming in C P P class 11 Notes Computer Science | myCBSEguide<\/title>\n<meta name=\"description\" content=\"Programming in C P P class 11 Notes Computer Science chapter 4 in PDF format for free download. Latest chapter Wise notes for CBSE exams.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Programming in C P P class 11 Notes Computer Science | myCBSEguide\" \/>\n<meta property=\"og:description\" content=\"Programming in C P P class 11 Notes Computer Science chapter 4 in PDF format for free download. Latest chapter Wise notes for CBSE exams.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/\" \/>\n<meta property=\"og:site_name\" content=\"myCBSEguide\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mycbseguide\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-23T06:28:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-17T09:51:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mycbseguide.com\/blog\/wp-content\/uploads\/2016\/09\/mycbseguide_n.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"599\" \/>\n\t<meta property=\"og:image:height\" content=\"242\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"myCBSEguide\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mycbseguide\" \/>\n<meta name=\"twitter:site\" content=\"@mycbseguide\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"myCBSEguide\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/\"},\"author\":{\"name\":\"myCBSEguide\",\"@id\":\"https:\/\/mycbseguide.com\/blog\/#\/schema\/person\/f67796d5f5c5a468e8c680aaaad21519\"},\"headline\":\"Programming in C P P class 11 Notes Computer Science\",\"datePublished\":\"2018-02-23T06:28:35+00:00\",\"dateModified\":\"2018-03-17T09:51:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/\"},\"wordCount\":2914,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/mycbseguide.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#primaryimage\"},\"thumbnailUrl\":\"\",\"keywords\":[\"CBSE Notes\",\"CBSE Notes and Key Points\",\"Computer Science Notes\",\"Programming in C P P\",\"Quick Revision\",\"Quick Revision Notes\"],\"articleSection\":[\"Class 11\",\"Revision Notes\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/\",\"url\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/\",\"name\":\"Programming in C P P class 11 Notes Computer Science | myCBSEguide\",\"isPartOf\":{\"@id\":\"https:\/\/mycbseguide.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2018-02-23T06:28:35+00:00\",\"dateModified\":\"2018-03-17T09:51:08+00:00\",\"description\":\"Programming in C P P class 11 Notes Computer Science chapter 4 in PDF format for free download. Latest chapter Wise notes for CBSE exams.\",\"breadcrumb\":{\"@id\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\",\"width\":600,\"height\":300,\"caption\":\"Notes for Computer Fundamentals\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mycbseguide.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CBSE\",\"item\":\"https:\/\/mycbseguide.com\/blog\/category\/cbse\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Class 11\",\"item\":\"https:\/\/mycbseguide.com\/blog\/category\/cbse\/cbse-class-11\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Programming in C P P class 11 Notes Computer Science\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mycbseguide.com\/blog\/#website\",\"url\":\"https:\/\/mycbseguide.com\/blog\/\",\"name\":\"myCBSEguide\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/mycbseguide.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mycbseguide.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/mycbseguide.com\/blog\/#organization\",\"name\":\"myCBSEguide\",\"url\":\"https:\/\/mycbseguide.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mycbseguide.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mycbseguide.com\/blog\/wp-content\/uploads\/2016\/04\/books_square.png\",\"contentUrl\":\"https:\/\/mycbseguide.com\/blog\/wp-content\/uploads\/2016\/04\/books_square.png\",\"width\":180,\"height\":180,\"caption\":\"myCBSEguide\"},\"image\":{\"@id\":\"https:\/\/mycbseguide.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/mycbseguide\/\",\"https:\/\/x.com\/mycbseguide\",\"https:\/\/www.linkedin.com\/company\/mycbseguide\/\",\"http:\/\/in.pinterest.com\/mycbseguide\/\",\"https:\/\/www.youtube.com\/channel\/UCxuqSnnygFzwJG0pwogCNEQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/mycbseguide.com\/blog\/#\/schema\/person\/f67796d5f5c5a468e8c680aaaad21519\",\"name\":\"myCBSEguide\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Programming in C P P class 11 Notes Computer Science | myCBSEguide","description":"Programming in C P P class 11 Notes Computer Science chapter 4 in PDF format for free download. Latest chapter Wise notes for CBSE exams.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/","og_locale":"en_US","og_type":"article","og_title":"Programming in C P P class 11 Notes Computer Science | myCBSEguide","og_description":"Programming in C P P class 11 Notes Computer Science chapter 4 in PDF format for free download. Latest chapter Wise notes for CBSE exams.","og_url":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/","og_site_name":"myCBSEguide","article_publisher":"https:\/\/www.facebook.com\/mycbseguide\/","article_published_time":"2018-02-23T06:28:35+00:00","article_modified_time":"2018-03-17T09:51:08+00:00","og_image":[{"width":599,"height":242,"url":"https:\/\/mycbseguide.com\/blog\/wp-content\/uploads\/2016\/09\/mycbseguide_n.jpg","type":"image\/jpeg"}],"author":"myCBSEguide","twitter_card":"summary_large_image","twitter_creator":"@mycbseguide","twitter_site":"@mycbseguide","twitter_misc":{"Written by":"myCBSEguide","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#article","isPartOf":{"@id":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/"},"author":{"name":"myCBSEguide","@id":"https:\/\/mycbseguide.com\/blog\/#\/schema\/person\/f67796d5f5c5a468e8c680aaaad21519"},"headline":"Programming in C P P class 11 Notes Computer Science","datePublished":"2018-02-23T06:28:35+00:00","dateModified":"2018-03-17T09:51:08+00:00","mainEntityOfPage":{"@id":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/"},"wordCount":2914,"commentCount":0,"publisher":{"@id":"https:\/\/mycbseguide.com\/blog\/#organization"},"image":{"@id":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#primaryimage"},"thumbnailUrl":"","keywords":["CBSE Notes","CBSE Notes and Key Points","Computer Science Notes","Programming in C P P","Quick Revision","Quick Revision Notes"],"articleSection":["Class 11","Revision Notes"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/","url":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/","name":"Programming in C P P class 11 Notes Computer Science | myCBSEguide","isPartOf":{"@id":"https:\/\/mycbseguide.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#primaryimage"},"image":{"@id":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#primaryimage"},"thumbnailUrl":"","datePublished":"2018-02-23T06:28:35+00:00","dateModified":"2018-03-17T09:51:08+00:00","description":"Programming in C P P class 11 Notes Computer Science chapter 4 in PDF format for free download. Latest chapter Wise notes for CBSE exams.","breadcrumb":{"@id":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#primaryimage","url":"","contentUrl":"","width":600,"height":300,"caption":"Notes for Computer Fundamentals"},{"@type":"BreadcrumbList","@id":"https:\/\/mycbseguide.com\/blog\/programming-c-p-p-class-11-notes-computer-science\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mycbseguide.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CBSE","item":"https:\/\/mycbseguide.com\/blog\/category\/cbse\/"},{"@type":"ListItem","position":3,"name":"Class 11","item":"https:\/\/mycbseguide.com\/blog\/category\/cbse\/cbse-class-11\/"},{"@type":"ListItem","position":4,"name":"Programming in C P P class 11 Notes Computer Science"}]},{"@type":"WebSite","@id":"https:\/\/mycbseguide.com\/blog\/#website","url":"https:\/\/mycbseguide.com\/blog\/","name":"myCBSEguide","description":"","publisher":{"@id":"https:\/\/mycbseguide.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mycbseguide.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mycbseguide.com\/blog\/#organization","name":"myCBSEguide","url":"https:\/\/mycbseguide.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mycbseguide.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mycbseguide.com\/blog\/wp-content\/uploads\/2016\/04\/books_square.png","contentUrl":"https:\/\/mycbseguide.com\/blog\/wp-content\/uploads\/2016\/04\/books_square.png","width":180,"height":180,"caption":"myCBSEguide"},"image":{"@id":"https:\/\/mycbseguide.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/mycbseguide\/","https:\/\/x.com\/mycbseguide","https:\/\/www.linkedin.com\/company\/mycbseguide\/","http:\/\/in.pinterest.com\/mycbseguide\/","https:\/\/www.youtube.com\/channel\/UCxuqSnnygFzwJG0pwogCNEQ"]},{"@type":"Person","@id":"https:\/\/mycbseguide.com\/blog\/#\/schema\/person\/f67796d5f5c5a468e8c680aaaad21519","name":"myCBSEguide"}]}},"_links":{"self":[{"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/posts\/10909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/comments?post=10909"}],"version-history":[{"count":2,"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/posts\/10909\/revisions"}],"predecessor-version":[{"id":11790,"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/posts\/10909\/revisions\/11790"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/media\/10009"}],"wp:attachment":[{"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/media?parent=10909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/categories?post=10909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mycbseguide.com\/blog\/wp-json\/wp\/v2\/tags?post=10909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}