{"id":162,"date":"2020-04-03T09:21:58","date_gmt":"2020-04-03T09:21:58","guid":{"rendered":"https:\/\/temp.ashkerala.com\/?p=162"},"modified":"2020-04-03T09:21:58","modified_gmt":"2020-04-03T09:21:58","slug":"c-mcq-5","status":"publish","type":"post","link":"https:\/\/temp.ashkerala.com\/?p=162","title":{"rendered":"C++ MCQ -5"},"content":{"rendered":"<p>Question 1<\/p>\n<p> Streams are<\/p>\n<p> a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Abstraction to perform input and output operations in sequential media<\/p>\n<p> b.\u00a0\u00a0\u00a0\u00a0\u00a0 Abstraction to perform input and output operations in direct access media<\/p>\n<p> c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Objects\u00a0 where a program can either insert or extract characters to and from it<\/p>\n<p> d.\u00a0\u00a0\u00a0\u00a0\u00a0 Both a and c<\/p>\n<p> \u00a0<br \/> Question 2<\/p>\n<p> Which of the following is known as insertion operator?<\/p>\n<p> a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ^<\/p>\n<p> b.\u00a0\u00a0\u00a0\u00a0\u00a0 v<\/p>\n<p> c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;&lt;<\/p>\n<p> d.\u00a0\u00a0\u00a0\u00a0\u00a0 &gt;&gt;<\/p>\n<p> \u00a0<\/p>\n<p> \u00a0<br \/> Question 3:<\/p>\n<p> Regarding the use of\u00a0 new line character (\/n) and endl manipulator with cout statement<\/p>\n<p> a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Both ways are exactly same<\/p>\n<p> b.\u00a0\u00a0\u00a0\u00a0\u00a0 Both are similar but endl additionally performs flushing of buffer<\/p>\n<p> c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 endl can\u0393\u00c7\u00d6t be used with cout<\/p>\n<p> d.\u00a0\u00a0\u00a0\u00a0\u00a0 \\n can\u0393\u00c7\u00d6t be used with cout<\/p>\n<p> \u00a0<br \/> Question 4:<\/p>\n<p> Which of the following is output statement in C++?<\/p>\n<p> a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print<\/p>\n<p> b.\u00a0\u00a0\u00a0\u00a0\u00a0 write<\/p>\n<p> c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cout<\/p>\n<p> d.\u00a0\u00a0\u00a0\u00a0\u00a0 cin<\/p>\n<p> \u00a0<br \/> Question 5:<\/p>\n<p> Which of the following is input statement in C++?<\/p>\n<p> a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cin<\/p>\n<p> b.\u00a0\u00a0\u00a0\u00a0\u00a0 input<\/p>\n<p> c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 get<\/p>\n<p> d.\u00a0\u00a0\u00a0\u00a0\u00a0 none of above<\/p>\n<p> \u00a0<br \/> Question 6:<\/p>\n<p> By default, the standard output device for C++ programs is<\/p>\n<p> a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Printer<\/p>\n<p> b.\u00a0\u00a0\u00a0\u00a0\u00a0 Monitor<\/p>\n<p> c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Modem<\/p>\n<p> d.\u00a0\u00a0\u00a0\u00a0\u00a0 Disk<\/p>\n<p> \u00a0<br \/> Question 7:<\/p>\n<p> By default, the standard input device for C++ program is<\/p>\n<p> a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Keyboard<\/p>\n<p> b.\u00a0\u00a0\u00a0\u00a0\u00a0 Mouse<\/p>\n<p> c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Scanner<\/p>\n<p> d.\u00a0\u00a0\u00a0\u00a0\u00a0 None of these<\/p>\n<p> \u00a0<br \/> Question 8:<\/p>\n<p> Which of the following statement is true regarding cin statement?<\/p>\n<p> a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cin statement must contain a variable preceded by &gt;&gt; operator<\/p>\n<p> b.\u00a0\u00a0\u00a0\u00a0\u00a0 cin does not process the input until user presses RETURN key<\/p>\n<p> c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 you can use more than one datum input from user by using cin<\/p>\n<p> d.\u00a0\u00a0\u00a0\u00a0\u00a0 all of above<\/p>\n<\/p>\n<p>Question 9:<\/p>\n<p> Which of the following is extraction operator in C++?<\/p>\n<p> a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ^<\/p>\n<p> b.\u00a0\u00a0\u00a0\u00a0\u00a0 v<\/p>\n<p> c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;&lt;<\/p>\n<p> d.\u00a0\u00a0\u00a0\u00a0\u00a0 &gt;&gt;<\/p>\n<p> \u00a0<br \/> Question 10:<\/p>\n<p> When requesting multiple datum, user must separate each by using<\/p>\n<p> a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 a space<\/p>\n<p> b.\u00a0\u00a0\u00a0\u00a0\u00a0 a tab character<\/p>\n<p> c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 a new line character<\/p>\n<p> d.\u00a0\u00a0\u00a0\u00a0\u00a0 all of above<\/p>\n<p> 1.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 d. Both a and c<\/p>\n<p> 2.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 c. &lt;&lt;<\/p>\n<p> 3.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 b. Both are similar but endl additionally performs flushing of buffer<\/p>\n<p> 4.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 c. Cout<\/p>\n<p> 5.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 a. Cin<\/p>\n<p> 6.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 b. Monitor<\/p>\n<p> 7.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 a. Keyboard<\/p>\n<p> 8.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 d. All of above<\/p>\n<p> 9.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 d. &gt;&gt;<\/p>\n<p> 10.\u00a0\u00a0 d. all of above<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question 1 Streams are a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Abstraction to perform input and output operations in sequential media b.\u00a0\u00a0\u00a0\u00a0\u00a0 Abstraction to perform input and output operations in direct access media c.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Objects\u00a0 where a program can either insert or extract characters to and from it d.\u00a0\u00a0\u00a0\u00a0\u00a0 Both a and c \u00a0 Question 2 Which of the following is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-c-and-c-programming-language"],"_links":{"self":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162"}],"version-history":[{"count":0,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions"}],"wp:attachment":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}