{"id":230,"date":"2020-04-05T08:51:31","date_gmt":"2020-04-05T08:51:31","guid":{"rendered":"https:\/\/temp.ashkerala.com\/?p=230"},"modified":"2020-04-05T08:51:31","modified_gmt":"2020-04-05T08:51:31","slug":"computer-science-mcq-3","status":"publish","type":"post","link":"https:\/\/temp.ashkerala.com\/?p=230","title":{"rendered":"Computer Science MCQ-3"},"content":{"rendered":"<p><strong>Q.31 scanf() can be used for reading<\/strong><br \/> (A) double character (B) single character<br \/> (C) multiple characters (D) no character<br \/> <strong>Ans:C<\/strong><\/p>\n<p> <strong>Q.32 \u0393\u00c7\u00ffC\u0393\u00c7\u00d6 allows a three-way transfer of control with the help of<\/strong><br \/> (A) unary operator (B) relational operator<br \/> (C) ternary operator (D) comparison operator<br \/> <strong>Ans:C<\/strong><\/p>\n<p> <strong>Q.33 The statement that transfers control to the beginning of the loop is called<\/strong><br \/> (A) break statement (B) exit statement<br \/> (C) continue statement (D) goto statement<br \/> <strong>Ans:C<\/strong><\/p>\n<p> <strong>Q.34 A variable which is visible only in the function in which it is defined, is called<\/strong><br \/> (A) static variable (B) auto variable<br \/> (C) external variable (D) local variable<br \/> <strong>Ans:D<\/strong><\/p>\n<p> <strong>Q.35 The number of arguments supplied from the command line, by convention, is known as<\/strong><br \/> (A) arg c (B) arg v<br \/> (C) #define (D) #include<br \/> <strong>Ans:A<\/strong><\/p>\n<p> <strong>Q.36 Output of the program given below is<br \/> int i;<br \/> main()<br \/> {<br \/> printf(\u0393\u00c7\u00a3%d\u0393\u00c7\u00a5, i);<br \/> }<\/strong><br \/> (A) 1 (B) 0<br \/> (C) -1 (D) Null<br \/> <strong>Ans:B<\/strong><\/p>\n<p> <strong>Q.37 What will be the output of the following program?<br \/> main()<br \/> {<br \/> char *p = \u0393\u00c7\u00a3ayqm\u0393\u00c7\u00a5;<br \/> printf (\u0393\u00c7\u00a3%c\u0393\u00c7\u00a5, ++*(p++));}<\/strong><br \/> (A) b (B) z<br \/> (C) q (D) n<br \/> <strong>Ans:A<\/strong><\/p>\n<p> <strong>Q.38 What will be the output of the following program?<br \/> main()<br \/> {<br \/> int i = 5;<br \/> printf(\u0393\u00c7\u00a3%d\u0393\u00c7\u00a5, i=++i==6);<br \/> }<\/strong><br \/> (A) 0 (B) 1<br \/> (C) 7 (D) 6<br \/> <strong>Ans:B<\/strong><\/p>\n<p> <strong>Q.39 Determine which of the following is a valid character constant<\/strong><br \/> (A) \u0393\u00c7\u00ff\\\\\u0393\u00c7\u00d6 (B) \u0393\u00c7\u00ff\\0\u0393\u00c7\u00d6<br \/> (C) \u0393\u00c7\u00ffxyz\u0393\u00c7\u00d6 (D) \u0393\u00c7\u00ff\\052\u0393\u00c7\u00d6<br \/> <strong>Ans:A<\/strong><\/p>\n<p> <strong>Q.40 The maximum value that an integer constant can have is<\/strong><br \/> (A) .32767 (B) 32767<br \/> (C) 1.7014e+38 (D) \u0393\u00c7\u00f41.7014e+38<br \/> <strong>Ans:B<\/strong><\/p>\n<p> <strong>Q.41 The expression X=4+2%-8 evaluates<\/strong><br \/> (A) \u0393\u00c7\u00f46 (B) 6<br \/> (C) 4 (D) None<br \/> <strong>Ans:B<\/strong><\/p>\n<p> <strong>Q.42 What will be the output of following program?<br \/> main()<br \/> {<br \/> int x=15;<br \/> printf(\u0393\u00c7\u00a3\\n%d%d%d\u0393\u00c7\u00a5, x!=15, x=20, x&lt;30);<br \/> }<\/strong><br \/> (A) 0, 20, 1 (B) 15, 20, 30<br \/> (C) 0, 0, 0 (D) Error<br \/> <strong>Ans:A<\/strong><\/p>\n<p> <strong>Q.43 How many times the following program would print (\u0393\u00c7\u00a3abc\u0393\u00c7\u00a5)?<br \/> main()<br \/> {<br \/> printf(\u0393\u00c7\u00a3\\nabc\u0393\u00c7\u00a5);<br \/> main();<br \/> }<\/strong><br \/> (A) Infinite number of times (B) 32767 times<br \/> (C) 65535 times (D) Till the stack does not overflow<br \/> <strong>Ans:A<\/strong><\/p>\n<p> <strong>Q.44 What would be output of the following program?<br \/> # define SQR(X) (X*X)<br \/> main()<br \/> {<br \/> int a, b=3;<br \/> a = SQR(b+2);<br \/> printf(\u0393\u00c7\u00a3\\n%d\u0393\u00c7\u00a5, a);<br \/> }<\/strong><br \/> (A) 25 (B) 11<br \/> (C) Error (D) Garbage value<br \/> <strong>Ans:B<\/strong><\/p>\n<p> <strong>Q.45 What would be output of the following program?<br \/> #include &#8220;stdio.h&#8221;<br \/> main()<br \/> {<br \/> printf(\u0393\u00c7\u00a3%d%d\u0393\u00c7\u00a5, size of (NULL!), size of (\u0393\u00c7\u00a3 \u0393\u00c7\u00a3));<br \/> }<\/strong><br \/> (A) 2 1 (B) 1 2<br \/> (C) 2 2 (D) 1 1<br \/> <strong>Ans:C<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q.31 scanf() can be used for reading (A) double character (B) single character (C) multiple characters (D) no character Ans:C Q.32 \u0393\u00c7\u00ffC\u0393\u00c7\u00d6 allows a three-way transfer of control with the help of (A) unary operator (B) relational operator (C) ternary operator (D) comparison operator Ans:C Q.33 The statement that transfers control to the beginning of&#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":[22],"tags":[],"class_list":["post-230","post","type-post","status-publish","format-standard","hentry","category-computer-science-combined"],"_links":{"self":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts\/230","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=230"}],"version-history":[{"count":0,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts\/230\/revisions"}],"wp:attachment":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}