{"id":125702,"date":"2020-12-07T10:24:36","date_gmt":"2020-12-07T04:54:36","guid":{"rendered":"https:\/\/www.aplustopper.com\/?p=125702"},"modified":"2020-12-08T11:06:18","modified_gmt":"2020-12-08T05:36:18","slug":"plus-two-computer-application-chapter-wise-previous-questions-chapter-1","status":"publish","type":"post","link":"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/","title":{"rendered":"Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming"},"content":{"rendered":"

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming<\/h2>\n

Plus Two Computer Application\u00a0Review of C++ Programming 1 Mark Important Questions<\/h3>\n

Question 1.
\n_______ is an exit control loop. (MAY-2016)<\/span>
\na) for loop
\nb) while loop
\nc) do-while loop
\nd) break
\nAnswer:
\ndo-while loop<\/p>\n

Question 2.
\nWhich among the following is an Insertion Operator? (MARCH-2016)<\/span>
\na) <<
\nb) >>
\nc) <
\nd) >
\nAnswer:
\na) <<<\/p>\n

Question 3.
\nWhich among the following is equivalent to the statement series b=a, a = a +1 ? (MARCH-2017)<\/span>
\na) b + = a
\nb) b = a++
\nc) b = ++a
\nd) b + = a + b
\nAnswer:
\nb) b = a++<\/p>\n

Question 4.
\nA ______ statement in a loop force the termination of that loop. (MARCH-2017)<\/span>
\nAnswer:
\nbreak<\/p>\n

Question 5.
\n_______ operator is the arithmetic assignment operator. (MAY-2017)<\/span>
\na) >>
\nb) ==
\nc) +=
\nd) =
\nAnswer:
\nc) +=<\/p>\n

Plus Two Computer Application\u00a0Review of C++ Programming 2 Marks Important Questions<\/h3>\n

Question 1.
\nHow does a \u2018goto\u2019 statement work? (MAY-2016)<\/span>
\nAnswer:
\nThe execution of a program is sequential but we can change this sequential manner by using jump statements. The jump statements are
\n1) goto statement By using goto we can transfer the control anywhere in the program without any condition. The syntax is goto label;
\nEg.
\n# include<iostream>
\nusing namespace std;
\nint main()
\n{
\nfloat a,b;
\ncout<<“Enter 2 numbers”;
\ncin>>a>>b;
\nif(b==0)
\ngoto end;
\ncout<<“The quotient is “<< a\/b;
\nreturn 0;
\nend:
\ncout<<“Division by zero error”;
\n}<\/p>\n

Question 2.
\nWhat are the main components of a looping statement ? (MARCH-2016)<\/span>
\nAnswer:
\nThe main components are initialization expression, test expression, update expression and looping body
\neg: for (i=1; i<=10; i++)
\ncout << i;<\/p>\n

Question 3.
\nIdentify the following C++ tokens. (MAY-2017)<\/span>
\na) “welcome”
\nb) int
\nc) >=
\nd) ++
\nAnswer:
\na) \u201cwelcome\u201d String Literal
\nb) int-Keyword
\nc) >= Operator
\nd) ++-: Operator<\/p>\n

Plus Two Computer Application\u00a0Review of C++ Programming 3 Marks Important Questions<\/h3>\n

Question 1.
\nExplain switch statement with an example (MAY-2016)<\/span>
\nAnswer:
\ncin >> pcode;
\nswitch (pcode)
\n{
\ncase \u2018C\u2019:
\ncout <<\u201cComputer”;
\nbreak;
\ncase \u2018M\u2019:
\ncout << \u201cMobile Phone\u201d;
\nbreak;
\ncase \u2019L\u2019:
\ncout << \u201cLaptop\u201d;
\nbreak;
\ndefault:
\ncout << \u201clnvalid code\u201d;<\/p>\n

Question 2.
\nRewrite the following C++ code using \u2018switch\u2019 statement (MARCH-2017)<\/span>
\ncin >> pcode;
\nif (pcode == \u2018C\u2019)
\ncout << \u201cComputer\u201d;
\nelse if (pcode == \u2018M\u2019)
\ncout<<\u201cMobile Phone\u201d;
\nelse if(pcode == \u2018L\u2019)
\ncout<<\u201cLaptop
\nelse
\ncout<<\u201clnvalid code\u201d;
\nAnswer:
\ncin >> pcode;
\nswitch(pcode)
\n{
\ncase \u2018C\u2019:
\ncout << \u201cComputer\u201d;
\nbreak;
\ncase \u2018M\u2019:
\ncout << \u201cMobile Phone\u201d;
\nbreak;
\ncase \u2019L\u2019:
\ncout << \u201cLaptop\u201d;
\nbreak;
\ndefault:
\ncout << \u201clnvalid code”;<\/p>\n

Question 3.
\nHow do continue and break statement differ in a loop? Explain with an example. (MARCH-2016)<\/span>
\nAnswer:
\nBreak is used to terminate a loop. But continue is used for skipping (by passing) a part of the code, eg: for (i=1, i<10; i++)
\n{
\nif (i%2==0) continue; cout<<i << \u201c, \u201c;
\n}
\nHere the output is 1,3, 5, 7, 9
\neg: for (i=1; i<10; i++)
\n{
\nif (i% 2==0) break;
\ncout<<i<<\u201c,\u201d;
\n}
\nHere the output is 1, that is the loop is quit when i=2.<\/p>\n

Question 4.
\nExplain break and continue statements with example. (MAY-2017)<\/span>
\nAnswer:
\nbreak statement:-<\/strong> It is used to skip over a part of the code i.e. we can premature exit from a loop such as while, do-while, for or switch, continue statement:- It bypasses one iteration of the loop.
\nbreak statement:-<\/strong> It is used to skip over a part of the code i.e. we can premature exit from a loop such as while, do-while, for or switch.
\nSyntax :<\/strong>
\nwhile (expression)
\nif (condition) break;
\n}
\nEg.
\n#include<iostream>
\nusing namespace std;
\nint main()
\n{
\nint i=1;
\nwhile(i<10)
\n{
\ncout<<i<<endl;
\nif(i==5)
\nbreak;
\ni++;
\n}
\n}
\nThe output is<\/strong>
\n1
\n2
\n3
\n4
\n5
\ncontinue statement:-<\/strong> It bypasses one iteration of the loop.
\nSyntax:
\nwhile (expression)
\n{
\nif (condition) break;
\n}
\nEg.
\n#include<iostream>
\nusing namespace std;
\nint main()
\n{
\nint i=0;
\nwhile(i<10)
\n{
\ni++;
\nif(i==5) continue;
\ncout<<i<<endl;
\n}
\n}
\nThe output is<\/strong>
\n1
\n2
\n3
\n4
\n5
\n6
\n7
\n8
\n9
\n10<\/p>\n

Plus Two Computer Application Chapter Wise Previous Questions and Answers<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming Plus Two Computer Application\u00a0Review of C++ Programming 1 Mark Important Questions Question 1. _______ is an exit control loop. (MAY-2016) a) for loop b) while loop c) do-while loop d) break Answer: do-while loop Question 2. Which among the following […]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[42728],"tags":[],"yoast_head":"\nPlus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming - A Plus Topper<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming\" \/>\n<meta property=\"og:description\" content=\"Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming Plus Two Computer Application\u00a0Review of C++ Programming 1 Mark Important Questions Question 1. _______ is an exit control loop. (MAY-2016) a) for loop b) while loop c) do-while loop d) break Answer: do-while loop Question 2. Which among the following […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/\" \/>\n<meta property=\"og:site_name\" content=\"A Plus Topper\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/aplustopper\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-07T04:54:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-08T05:36:18+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasanna\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.aplustopper.com\/#organization\",\"name\":\"Aplus Topper\",\"url\":\"https:\/\/www.aplustopper.com\/\",\"sameAs\":[\"https:\/\/www.facebook.com\/aplustopper\/\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.aplustopper.com\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.aplustopper.com\/wp-content\/uploads\/2018\/12\/Aplus_380x90-logo.jpg\",\"contentUrl\":\"https:\/\/www.aplustopper.com\/wp-content\/uploads\/2018\/12\/Aplus_380x90-logo.jpg\",\"width\":1585,\"height\":375,\"caption\":\"Aplus Topper\"},\"image\":{\"@id\":\"https:\/\/www.aplustopper.com\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.aplustopper.com\/#website\",\"url\":\"https:\/\/www.aplustopper.com\/\",\"name\":\"A Plus Topper\",\"description\":\"Improve your Grades\",\"publisher\":{\"@id\":\"https:\/\/www.aplustopper.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.aplustopper.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#webpage\",\"url\":\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/\",\"name\":\"Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming - A Plus Topper\",\"isPartOf\":{\"@id\":\"https:\/\/www.aplustopper.com\/#website\"},\"datePublished\":\"2020-12-07T04:54:36+00:00\",\"dateModified\":\"2020-12-08T05:36:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.aplustopper.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.aplustopper.com\/#\/schema\/person\/2533e4338ba14fc0e4001efcca2f8794\"},\"headline\":\"Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming\",\"datePublished\":\"2020-12-07T04:54:36+00:00\",\"dateModified\":\"2020-12-08T05:36:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#webpage\"},\"wordCount\":707,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.aplustopper.com\/#organization\"},\"articleSection\":[\"HSSLiVE\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.aplustopper.com\/#\/schema\/person\/2533e4338ba14fc0e4001efcca2f8794\",\"name\":\"Prasanna\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.aplustopper.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/174540ad43736c7d1a4c4f83c775e74d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/174540ad43736c7d1a4c4f83c775e74d?s=96&d=mm&r=g\",\"caption\":\"Prasanna\"},\"url\":\"https:\/\/www.aplustopper.com\/author\/prasanna\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming - A Plus Topper","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:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/","og_locale":"en_US","og_type":"article","og_title":"Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming","og_description":"Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming Plus Two Computer Application\u00a0Review of C++ Programming 1 Mark Important Questions Question 1. _______ is an exit control loop. (MAY-2016) a) for loop b) while loop c) do-while loop d) break Answer: do-while loop Question 2. Which among the following […]","og_url":"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/","og_site_name":"A Plus Topper","article_publisher":"https:\/\/www.facebook.com\/aplustopper\/","article_published_time":"2020-12-07T04:54:36+00:00","article_modified_time":"2020-12-08T05:36:18+00:00","twitter_card":"summary","twitter_misc":{"Written by":"Prasanna","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.aplustopper.com\/#organization","name":"Aplus Topper","url":"https:\/\/www.aplustopper.com\/","sameAs":["https:\/\/www.facebook.com\/aplustopper\/"],"logo":{"@type":"ImageObject","@id":"https:\/\/www.aplustopper.com\/#logo","inLanguage":"en-US","url":"https:\/\/www.aplustopper.com\/wp-content\/uploads\/2018\/12\/Aplus_380x90-logo.jpg","contentUrl":"https:\/\/www.aplustopper.com\/wp-content\/uploads\/2018\/12\/Aplus_380x90-logo.jpg","width":1585,"height":375,"caption":"Aplus Topper"},"image":{"@id":"https:\/\/www.aplustopper.com\/#logo"}},{"@type":"WebSite","@id":"https:\/\/www.aplustopper.com\/#website","url":"https:\/\/www.aplustopper.com\/","name":"A Plus Topper","description":"Improve your Grades","publisher":{"@id":"https:\/\/www.aplustopper.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.aplustopper.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#webpage","url":"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/","name":"Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming - A Plus Topper","isPartOf":{"@id":"https:\/\/www.aplustopper.com\/#website"},"datePublished":"2020-12-07T04:54:36+00:00","dateModified":"2020-12-08T05:36:18+00:00","breadcrumb":{"@id":"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.aplustopper.com\/"},{"@type":"ListItem","position":2,"name":"Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming"}]},{"@type":"Article","@id":"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#article","isPartOf":{"@id":"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#webpage"},"author":{"@id":"https:\/\/www.aplustopper.com\/#\/schema\/person\/2533e4338ba14fc0e4001efcca2f8794"},"headline":"Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming","datePublished":"2020-12-07T04:54:36+00:00","dateModified":"2020-12-08T05:36:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#webpage"},"wordCount":707,"commentCount":0,"publisher":{"@id":"https:\/\/www.aplustopper.com\/#organization"},"articleSection":["HSSLiVE"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.aplustopper.com\/plus-two-computer-application-chapter-wise-previous-questions-chapter-1\/#respond"]}]},{"@type":"Person","@id":"https:\/\/www.aplustopper.com\/#\/schema\/person\/2533e4338ba14fc0e4001efcca2f8794","name":"Prasanna","image":{"@type":"ImageObject","@id":"https:\/\/www.aplustopper.com\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/174540ad43736c7d1a4c4f83c775e74d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/174540ad43736c7d1a4c4f83c775e74d?s=96&d=mm&r=g","caption":"Prasanna"},"url":"https:\/\/www.aplustopper.com\/author\/prasanna\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.aplustopper.com\/wp-json\/wp\/v2\/posts\/125702"}],"collection":[{"href":"https:\/\/www.aplustopper.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aplustopper.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aplustopper.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aplustopper.com\/wp-json\/wp\/v2\/comments?post=125702"}],"version-history":[{"count":0,"href":"https:\/\/www.aplustopper.com\/wp-json\/wp\/v2\/posts\/125702\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aplustopper.com\/wp-json\/wp\/v2\/media?parent=125702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aplustopper.com\/wp-json\/wp\/v2\/categories?post=125702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aplustopper.com\/wp-json\/wp\/v2\/tags?post=125702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}