{"id":541,"date":"2020-04-15T14:01:52","date_gmt":"2020-04-15T14:01:52","guid":{"rendered":"https:\/\/temp.ashkerala.com\/?p=541"},"modified":"2020-04-15T14:01:52","modified_gmt":"2020-04-15T14:01:52","slug":"ugc-net-computer-science-solved-paper-ii-december-2019-part-1","status":"publish","type":"post","link":"https:\/\/temp.ashkerala.com\/?p=541","title":{"rendered":"UGC NET Computer Science Solved Paper II December 2019 &#8211; Part 1"},"content":{"rendered":"<\/p>\n<ol>\n<li>Consider the language <em>L = <\/em>{<em>a<sup>n<\/sup>b<sup>n-3<\/sup> | n&gt;2<\/em>} on \u256c\u00fa = {<em>a, b<\/em>}. Which one of the following grammars generates the language <em>L<\/em>?<\/li>\n<\/ol>\n<p>(1) <em>S \u0393\u00e5\u00c6 aA | a, A \u0393\u00e5\u00c6 aAb | b\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/em>(2) <em>S \u0393\u00e5\u00c6 aaA | \u256c\u2557, A \u0393\u00e5\u00c6 aAb | \u256c\u2557<\/em><\/p>\n<p>(3) <em>S \u0393\u00e5\u00c6 aaaA | a, A \u0393\u00e5\u00c6 aAb | \u256c\u2557\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/em>(4) <em>S \u0393\u00e5\u00c6 aaaA | \u256c\u2557, A \u0393\u00e5\u00c6 aAb | \u256c\u2557<\/em><\/p>\n<p><strong>Answer: 4<\/strong><\/p>\n<ol start=\"2\">\n<li>A computer uses a memory unit of 512 K words of 32 bits each. A binary instruction code is stored in one word of the memory. The instruction has four parts: an addressing mode field to specify one of the two-addressing mode (direct and indirect), an operation code, a register code part to specify one of the 256 registers and an address part. How many bits are there in addressing mode part, opcode part, register code part and the address part?<\/li>\n<\/ol>\n<p>(1) 1, 3, 9, 19\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) 1, 4, 9, 18<\/p>\n<p>(3) 1, 4, 8, 19\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) 1, 3, 8, 20<\/p>\n<p><strong>Answer: 3<\/strong><\/p>\n<ol start=\"3\">\n<li>What is the output of following C program?<\/li>\n<\/ol>\n<p># include&lt;stdio.h&gt;<\/p>\n<p>main( )<\/p>\n<p>{<\/p>\n<p>int i, j, x = 0;<\/p>\n<p>for (i = 0; i &lt; 5; ++i)<\/p>\n<p>for (j = 0; j &lt; i; ++j)<\/p>\n<p>{<\/p>\n<p>x + = (i + j \u0393\u00c7\u00f4 1);<\/p>\n<p>break;<\/p>\n<p>}<\/p>\n<p>printf (\u0393\u00c7\u00a3%d\u0393\u00c7\u00a5,x) ;<\/p>\n<p>}<\/p>\n<p>(1) 6\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) 5\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (3) 4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) 3<\/p>\n<p><strong>Answer: 1<\/strong><\/p>\n<ol start=\"4\">\n<li>Consider the following languages:<\/li>\n<\/ol>\n<p><em>L1<\/em> = {<em>a<sup>n<\/sup>b<sup>n<\/sup>c<sup>m<\/sup><\/em>} \u0393\u00ea\u00ac {<em>a<sup>n<\/sup> b<sup>m<\/sup> c<sup>m<\/sup><\/em>}, <em>n, m \u0393\u00eb\u00d1 0<\/em><\/p>\n<p><em>L2<\/em> = {\u2567\u00eb\u2567\u00eb<sup>R<\/sup> | \u2567\u00eb\u0393\u00ea\u00ea{a, b}*} Where R represents reversible operation.<\/p>\n<p>Which one of the following is (are) inherently ambiguous language(s)?<\/p>\n<p>(1) only <em>L1<\/em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) only <em>L2<\/em><\/p>\n<p>(3) both <em>L1<\/em> and <em>L2<\/em>\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) neither <em>L1<\/em> nor <em>L2<\/em><\/p>\n<p><strong>Answer: 1<\/strong><\/p>\n<ol start=\"5\">\n<li>A fuzzy conjunction operators, t(x,y), and a fuzzy disjunction operator, s(x,y), from a pair if they satisfy:<\/li>\n<\/ol>\n<p>t(x,y) = 1 &#8211; s(1 &#8211; x, 1 &#8211; y).<\/p>\n<p><img decoding=\"async\" src=\"images\/ugc\/UGC NET CS Paper II Dec 2019 Q5.png\" alt=\"\" \/><\/p>\n<p><strong>Answer: 2<\/strong><\/p>\n<ol start=\"6\">\n<li>Which of the following statements are true regarding C++?<\/li>\n<\/ol>\n<p>(a) Overloading gives the capability to an existing operator to operate on other data types.<\/p>\n<p>(b) Inheritance in object oriented programming provides support to reusability.<\/p>\n<p>(c) When object of a derived class is defined, first the constructor of derived class is executed then constructor of a base class is executed.<\/p>\n<p>(d) Overloading is a type of polymorphism.<\/p>\n<p>Choose the correct option from those given below:<\/p>\n<p>(1) (a) and (b) only\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) (a), (b) and (c) only<\/p>\n<p>(3) (a), (b) and (d) only\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) (b), (c) and (d) only<\/p>\n<p><strong>Answer: 3<\/strong><\/p>\n<ol start=\"7\">\n<li>Which of the following class of IP address has the last address as 223.255.255.255?<\/li>\n<\/ol>\n<p>(1) Class A\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) Class B<\/p>\n<p>(3) Class C\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) Class D<\/p>\n<p>Answer: 3<\/p>\n<ol start=\"8\">\n<li>Let A = (001, 0011, 11, 101} and B = (01, 111, 111, 010}. Similarly, let C = {00, 001, 1000} and D = {0, 11, 011}.<\/li>\n<\/ol>\n<p>Which of the following pairs have a post-correspondence solution?<\/p>\n<p>(1) Only pair (A, B)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) Only pair (C, D)<\/p>\n<p>(3) Both (A, B) and (C, D)\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) Neither (A, B) nor (C, D)<\/p>\n<p><strong>Answer: 1<\/strong><\/p>\n<ol start=\"9\">\n<li>The sequence diagram given in Figure 1 for the Weather Information System takes place when an external system requests the summarized data from the weather station.<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"images\/ugc\/UGC NET CS Paper II Dec 2019 Q9.png\" alt=\"\" \/><\/p>\n<p>The increasing order of lifeline for the objects in the system are:<\/p>\n<p>(1) Sat comms \u0393\u00e5\u00c6 Weather station \u0393\u00e5\u00c6 Comms link \u0393\u00e5\u00c6 Weather data<\/p>\n<p>(2) Sat comms \u0393\u00e5\u00c6 Comms link \u0393\u00e5\u00c6 Weather station \u0393\u00e5\u00c6 Weather data<\/p>\n<p>(3) Weather data \u0393\u00e5\u00c6 Comms link \u0393\u00e5\u00c6 Weather station \u0393\u00e5\u00c6 Sat Comms<\/p>\n<p>(4) Weather data \u0393\u00e5\u00c6 Weather station \u0393\u00e5\u00c6 Comms link \u0393\u00e5\u00c6 Sat Comms<\/p>\n<p>Answer: Marks to all<\/p>\n<ol start=\"10\">\n<li>A counting semaphore is initialized to 8. 3 wait() operations and 4 signal() operations are applied. Find the current value of semaphore variable.<\/li>\n<\/ol>\n<p>(1) 9\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) 5\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (3) 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) 4<\/p>\n<p><strong>Answer: 1<\/strong><\/p>\n<ol start=\"11\">\n<li>Consider the following Linear programming problem (LPP):<\/li>\n<\/ol>\n<p>Maximize z = x<sub>1<\/sub> + x<sub>2<\/sub><\/p>\n<p>Subject to the constraints:<\/p>\n<p>x<sub>1<\/sub>+2x<sub>2<\/sub> \u0393\u00eb\u00f1 2000<\/p>\n<p>x<sub>1<\/sub>+x<sub>2<\/sub> \u0393\u00eb\u00f1 1500<\/p>\n<p>x<sub>2<\/sub> \u0393\u00eb\u00f1 600<\/p>\n<p>and x<sub>1<\/sub>, x<sub>2<\/sub> \u0393\u00eb\u00d1 0<\/p>\n<p>The solution of the above LPP is:<\/p>\n<p>(1) x<sub>1<\/sub>=750, x<sub>2<\/sub>=750, z=1500\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) x<sub>1<\/sub>=500, x<sub>2<\/sub>=1000, z=1500<\/p>\n<p>(3) x<sub>1<\/sub>=1000, x<sub>2<\/sub>=500, z=1500\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) x<sub>1<\/sub>=900, x<sub>2<\/sub>=600, z=1500<\/p>\n<p><strong>Answer: 3<\/strong><\/p>\n<ol start=\"12\">\n<li>Which of the following CPU scheduling algorithms is\/are supported by LINUX operating system?<\/li>\n<\/ol>\n<p>(1) Non-preemptive priority scheduling<\/p>\n<p>(2) Preemptive priority scheduling and time sharing CPU scheduling<\/p>\n<p>(3) Time sharing scheduling only<\/p>\n<p>(4) Priority scheduling only<\/p>\n<p><strong>Answer: 2<\/strong><\/p>\n<ol start=\"13\">\n<li>Which tag is used to enclose any number of javascript statements in HTML document?<\/li>\n<\/ol>\n<p>(1) &lt;code&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) &lt;script&gt;<\/p>\n<p>(3) &lt;title&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) &lt;body&gt;<\/p>\n<p>Answer: 2<\/p>\n<ol start=\"14\">\n<li>When using Dijkstra\u0393\u00c7\u00d6s algorithm to find shortest path in a graph, which of the following statement is <u>not<\/u> true?<\/li>\n<\/ol>\n<p>(1) It can find shortest path within the same graph data structure<\/p>\n<p>(2) Every time a new node is visited, we choose the node with smallest known<\/p>\n<p>distance\/cost (weight) to visit first<\/p>\n<p>(3) Shortest path always passes through least number of vertices<\/p>\n<p>(4) The graph needs to have a non-negative weight on every edge<\/p>\n<p><strong>Answer: 3<\/strong><\/p>\n<ol start=\"15\">\n<li>Consider the following statements with respect to duality in LPP:<\/li>\n<\/ol>\n<p>(a) The final simplex table giving optimal solution of the primal also contains optimal<\/p>\n<p>solution of its dual in itself.<\/p>\n<p>(b) If either the primal or the dual problem has a finite optimal solution, then the other<\/p>\n<p>problem also has a finite optimal solution.<\/p>\n<p>(c) If either problem has an unbounded optimum solution, then the other problem has no<\/p>\n<p>feasible solution at all.<\/p>\n<p>Which of the statements is (are) correct?<\/p>\n<p>(1) only (a) and (b)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) only (a) and (c)<\/p>\n<p>(3) only (b) and (c)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) (a), (b) and (c)<\/p>\n<p><strong>Answer: 4<\/strong><\/p>\n<ol start=\"16\">\n<li>Given two tables EMPLOYEE (EID, ENAME, DEPTNO)<\/li>\n<\/ol>\n<p>DEPARTMENT (DEPTNO. DEPTNAME)<\/p>\n<p>Find the most appropriate statement of the given query:<\/p>\n<p>Select count (*) \u0393\u00c7\u00fftotal\u0393\u00c7\u00d6<\/p>\n<p>from EMPLOYEE<\/p>\n<p>where DEPTNO IN (D1, D2)<\/p>\n<p>group by DEPTNO<\/p>\n<p>having count (*) &gt; 5<\/p>\n<p>(1) Total number of employees in each department D1 and D2<\/p>\n<p>(2) Total number of employees of department D1 and D2 if their total is &gt;5<\/p>\n<p>(3) Display total number of employees in both departments D1 and D2<\/p>\n<p>(4) The output of the query must have atleast two rows<\/p>\n<p><strong>Answer: 2<\/strong><\/p>\n<ol start=\"17\">\n<li>In a B-Tree, each node represents a disk block. Suppose one block holds 8192 bytes. Each key uses 32 bytes. In a B-tree of order M there are M \u0393\u00c7\u00f4 1 keys. Since each branch is on another disk block, we assume a branch is of 4 bytes. The total memory requirement for a non-leaf node is<\/li>\n<\/ol>\n<p>(1) 32 M \u0393\u00c7\u00f4 32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) 36 M \u0393\u00c7\u00f4 32<\/p>\n<p>(3) 36 M \u0393\u00c7\u00f4 36\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) 32 M \u0393\u00c7\u00f4 36<\/p>\n<p>Answer: 2<\/p>\n<ol start=\"18\">\n<li>Let G = (V, T, S, P) be any context-free grammar without any \u256c\u2557-productions or unit productions. Let K be the maximum number of symbols on the right of any production in P. The maximum number of production rules for any equivalent grammar in Chomsky normal form is given by:<\/li>\n<\/ol>\n<p>(1) (K \u0393\u00c7\u00f4 1) |P| + |T| &#8211; 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) (K \u0393\u00c7\u00f4 1) |P| +|T|<\/p>\n<p>(3) K |P| + |T| &#8211; 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) K |P| + |T|<\/p>\n<p>Where | | denotes the cardinality of the set.<\/p>\n<p><strong>Answer: 2<\/strong><\/p>\n<ol start=\"19\">\n<li>Given following equation:<\/li>\n<\/ol>\n<p>(142)<sub>b<\/sub> + (112)<sub>b-2<\/sub> = (75)<sub>8<\/sub>. Find base b.<\/p>\n<p>(1) 3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) 6\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (3) 7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) 5<\/p>\n<p><strong>Answer: 4<\/strong><\/p>\n<ol start=\"20\">\n<li>A micro instruction format has micro operation field which is divided into 2 subfields F1 and F2, each having 15 distinct micro operations, condition field CD for four status bits, branch field BR having four options used in conjunction with address field AD. The address space is of 128 memory words. The size of micro instruction is:<\/li>\n<\/ol>\n<p>(1) 19\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) 18\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (3) 17\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (4) 20<\/p>\n<p><strong>Answer: 1<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Consider the language L = {anbn-3 | n&gt;2} on \u256c\u00fa = {a, b}. Which one of the following grammars generates the language L? (1) S \u0393\u00e5\u00c6 aA | a, A \u0393\u00e5\u00c6 aAb | b\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (2) S \u0393\u00e5\u00c6 aaA | \u256c\u2557, A \u0393\u00e5\u00c6 aAb | \u256c\u2557 (3) S \u0393\u00e5\u00c6 aaaA | a, A \u0393\u00e5\u00c6 aAb |&#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":[6],"tags":[],"class_list":["post-541","post","type-post","status-publish","format-standard","hentry","category-ugc-computer"],"_links":{"self":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts\/541","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=541"}],"version-history":[{"count":0,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts\/541\/revisions"}],"wp:attachment":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}