Trending ▼   ResFinder  

4th Year Exam 2016 : (Adarsh Institute of Technology & Reserch CENTRE., Vita)

16 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Latashri Mane
 City-vita 
+Fave Message
 Home > latashrimane >   F Also featured on: School Page

Formatting page ...

No part of this publication may be reproduced or distributed in any form or any means, electronic, mechanical, photocopying, or otherwise without the prior permission of the author. GATE SOLVED PAPER Computer Science & IT 2015-1 Copyright By NODIA & COMPANY Information contained in this book has been obtained by authors, from sources believes to be reliable. However, neither Nodia nor its authors guarantee the accuracy or completeness of any information herein, and Nodia nor its authors shall be responsible for any error, omissions, or damages arising out of use of this information. This book is published with the understanding that Nodia and its authors are supplying information but are not attempting to render engineering or other professional services. NODIA AND COMPANY B-8, Dhanshree Tower Ist, Central Spine, Vidyadhar Nagar, Jaipur 302039 Ph : +91 - 141 - 2101150 www.nodia.co.in email : enquiry@nodia.co.in GATE SOLVED PAPER - CS 2015-1 General Aptitude Q. 1 - Q. 5 Carry one mark each. Q. 1 Q. 2 Q. 3 Didn t you buy ______ when you went shopping ? (A) any paper (B) much paper (C) no paper (D) a few paper n i . o c Which of the following options is the closet in meaning to the sentence below ? She enjoyed herself immensely at the party. (A) She had a terrible time at the party (B) She had a horrible time at the party (C) She had a terrific time at the party (D) She had a terrifying time at the party o n i d . w . a Given Set A = "2, 3, 4, 5, and Set B = "11, 12, 13, 14, 15, , two numbers are randomly selected, one from each set. What is the probability that the sum of the two numbers equals 16 ? (A) 0.20 (B) 0.25 (C) 0.30 (D) 0.33 w w Q. 4 Based on the given statements, select the most appropriate option to solve the given question. If two floors in a certain building are 9 feet apart, how many steps are there in a set of stairs that extends from the first floor to the second floor of the building ? Statements : 1. Each step is 3 4 foot high. 2. Each step is 1 foot wide. (A) Statement 1 alone is sufficient, but statement 2 alone is not sufficient (B) Statement 2 alone is sufficient, but statement 1 alone is not sufficient (C) Both statement together are sufficient, but neither statement alone is sufficient (D) Statement 1 and 2 together are not sufficient Q. 5 Which one of the following combinations is incorrect? (A) Acquiescence - Submission (B) Wheedle - Roundabout (C) Flippancy - Lightness (D) Profligate - Extravagant Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS 2015-1 Q. 6 - Q. 10 Carry two marks each. Q. 6 The number of students in a class who have answered correctly, wrongly, or not attempted each question in an exam, are listed in the table below. The marks for each question are also listed. There is no negative or partial marking. n i . o c Q.No. Marks Answered Correctly Answered Wrongly Not Attempted 1 2 21 17 6 2 3 15 27 2 3 1 11 29 4 4 2 23 18 3 a. i d o n 5 5 31 12 1 What is the average of the marks obtained by the class in the examination ? (A) 2.290 (B) 2.970 (C) 6.795 (D) 8.795 Q. 7 Q. 8 . w w w Select the alternative meaning of the underlined part of the sentence. The chain snatchers took to their heels when the police party arrived. (A) took shelter in a thick jungle (B) open indiscriminate fire (C) took to flight (D) unconditionally surrendered . a The given statement is following by some courses of action. Assuming the statement to be true, decide the correct option. Statement : There has been a significant drop in the water level in the lakes supplying water to the city. Course of action : 1. The water supply authority should impose a partial cut in supply to tackle the situation. 2. The government should appeal to all the residents through mass media for minimal use of water. 3. The government should ban the water supply in lower areas. (A) Statement 1 and 2 follow (B) Statement 1 and 3 follow (C) Statement 2 and 3 follow (D) All statements follow i d o n Q. 9 n i . o c . w w w The pie chart below has the breakup of the number of students, from different departments in an engineering college for the year 2012. The proportion of male to female students in each department is 5 : 4. There are 40 males in Electrical Engineering. What is the different between the numbers of female students in the Civil department and the female students in the Mechanical department ? Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS Q. 10 2015-1 n i . o c . a i d o n The probabilities that a student passes in Mathematics, Physics and Chemistry are m , p and c respectively. Of these subjects, the student has 75% chance of passing in at least one, a 50% chance of passing in at least two and a 40% chance of passing in exactly two. Following relations are drawn in m , p and c . 1. p + m + c = 27 20 2. p + m + c = 13 20 3 ^p h # ^m h # ^c h = 1 10 . w w w (A) Only relation 1 is true (B) Only relation 2 is true (C) Relations 2 and 3 are true (D) Relations 1 and 3 are true n i . o c i d . a END OF THE QUESTION PAPER o n . w w w Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS 2015-1 Computer Science and IT Q. 1 - Q. 25 Carry one mark each. Q. 1 n i . o c Match the following List-I List-II a. Condition coverage 1. Black-box testing b. Equivalence class partitioning 2. System testing c. Volume testing 3. White-box testing 4. Performance testing d o Alpha testing d. Codes : a b c d (A) 2 3 1 4 (B) 3 4 2 1 (C) 3 1 4 2 (D) 3 1 2 4 Q. 2 . a i .n w w w Which one of the following is the recurrence equation for the worst case time complexity of the Quicksort algorithm for sorting n ^$ 2h numbers ? In the recurrence equations given in the options below, c is a constant. (A) T ^n h = 2T c n m + cn 2 (B) T ^n h = T ^n 1h + T ^1 h + cn (C) T ^n h = 2T ^n 2h + cn (D) T ^n h = T a n k + cn 2 Q. 3 lim x1/x is x"3 (A) 3 (C) 1 Q. 5 . a i d For any two languages L1 and L2 such that L1 is context free and L2 is recursively enumerable but not recursive, which of the following is/are necessarily true ? 1. L 1 (complement of L1 ) is recursive 2. L 2 (complement of L2 ) is recursive 3. L 1 is context free 4. L 2 , L2 is recursively enumerable (A) 1 only (B) 3 only (C) 3 and 4 only (D) 1 and 4 only o n Q. 4 n i . o c . w w w (B) 0 (D) Not defined x , then g ^h ^x hh is x 1 h ^g ^x hh h ^x h (B) - 1 (A) x g ^x h If g ^x h = 1 x and h ^x h = (C) g ^x h x (D) h ^x h ^1 - x h2 Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS Q. 6 2015-1 Match the following List-I List-II a. Prim s algorithm for minimum 1. spanning tree Backtracking b. Floyd-Warshall algorithm for all 2. pairs shortest paths Greed method c. Mergesort 3. Dynamic programming 4. Divide and conquer n i . o c . a Hamiltonian circuit d. Codes : a b c d (A) 3 2 4 1 (B) 1 2 4 3 (C) 2 3 4 1 (D) 2 1 3 4 i d o n Q. 7 Q. 9 w n i . o c For computers based on three-address instruction formats, each address field can be used to specify which of the following: S1 : A memory operand S2 : A processor register S3 : An implied accumulator register (A) Either S1 or S2 (B) Either S2 or S1 (C) Only S2 and S3 (D) All of S1, S2 and S3 . w . a i d o n The following two functions P1 and P2 that share a variable B with an initial value of 2 execute concurrently. P1() P2() { C = B - 1; { D = 2 * B; B = 2 * C; B = D - 1; } } The number of distinct values that B can possibly take after the execution is ______. Q. 10 w Select operation in SQL is equivalent to (A) the selection operation in relational algebra (B) the selection operation in relational algebra, except that select in SQL retains duplicates (C) the projection operation in relational algebra (D) the projection operation in relational algebra, except that select in SQL retains duplicates Q. 8 . w w w Which of the following is/are correct in order traversal sequence(s) of binary search tree (s) ? 1. 3, 5, 7, 8, 15, 19, 25 2. 5, 8, 9, 12, 10, 15, 25 3. 2, 7, 10, 8, 14, 16, 20 4. 4, 6, 7, 9, 18, 20, 25 (A) 1 and 4 only (B) 2 and 3 only (C) 2 and 4 only (D) 2 only Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS Q. 11 2015-1 The output of the following C program is _____ void f1(int a, int b) { int c; c=a; a=b; b=c; } void f2(int*a, int*b) int c; c=*a; *a=*b; *b=c; } int main () { int a=4, b=5, c=6; f1(a, b); f2(&b, &c); printf ( %d, c-a-b); } n i . o c . a i d o .n w w w Q. 12 Consider a system with byte-addressable memory, 32 bit logical addresses, 4 kilobyte page size and page table entries of 4 bytes each. The size of the page table in the system in megabytes is ______ Q. 13 Which one of the following is True at any valid state in shift-reduce parsing ? (A) Viable prefixes appear only at the bottom of the stack and not inside (B) Viable prefixes appear only at the top of the stack and not inside (C) The stack contains only a set of viable prefixes (D) The stack never contains viable prefixes n i . o c . a Q. 14 Which one of the following is Not equivalent to p ) q ? (A) ^Jp 0 q h / ^p 0 Jq h (B) ^Jp 0 q h / ^q " p h (C) ^Jp 0 q h 0 ^p 0 Jq h (D) ^Jp 0 Jq h 0 ^p / q h Q. 15 Which of the following statements is/are False ? 1. XML overcomes the limitations in HTML to support a structured way of organizing content. 2. XML specification is not case sensitive while HTML specification is case sensitive. 3. XML supports user defined tags while HTML uses pre-defined tags. 4. XML tags need not be closed while HTML tags must be closed. (A) 2 only (B) 1 only (C) 2 and 4 only (D) 3 and 4 only o n Q. 16 i d . w w w For a set A, the power set of A is denoted by 2A . If A = "5, " 6 ,, "7 ,, , which of the following options are True ? 1. d 2A 2. 3 2A 3. "5, " 6 ,, d 2A 4. "5, " 6 ,, 3 2A (A) 1 and 3 only (B) 2 and 3 only (C) 1, 2 and 3 only (D) 1, 2 and 4 only Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS Q. 17 Q. 18 Q. 19 2015-1 In one of the pairs of protocols given below, both the protocols can use multiple TCP connections between the same client and the server. Which one is that ? (A) HTTP, FTP (B) HTTP, TELNET (C) FTP, SMTP (D) HTTP, SMTP n i . o c 2 2 In the LU decomposition of the matrix > H, if the diagonal elements of U 4 9 are both 1, then the lower diagonal entry l22 of L is ______. . a Suppose two hosts use a TCP connection to transfer a large file. Which of the following statements is/are False with respect to the TCP connection ? 1. If the sequence number of a segment is m , then the sequence number of the subsequent segment is always m + 1. 2. If the estimated round trip time at any given point of time is t sec, the value of the retransmission time out is always set to greater than or equal to t -sec. 3. The size of the advertised window never changer during the course of the TCP connection. 4. The number of unacknowledged bytes at the sender is always less than or equal to the advertised window. (A) 3 only (B) 1 and 3 only (C) 1 and 4 only (D) 2 and 4 only i d o n Q. 20 Q. 21 . w w w n i . o c Consider a 4 bit Johnson counter with an initial value of 0000. The counting sequence of this counter is (A) 0, 1, 3, 7, 15, 14, 12, 8, 0 (B) 0, 1, 3, 5, 7, 9, 11, 13, 15, 0 (C) 0, 2, 4, 6, 8, 10, 12, 14, 0 (D) 0, 8, 12, 14, 15, 7, 3, 1, 0 o n i d . a Suppose that everyone in a group of N people wants to communicate secretly with the N - 1 others using symmetric key cryptographic system. The communication between any two persons should not be decodable by the others in the group. The number of keys required in the system as a whole to satisfy the confidentiality requirement is (A) 2N (B) N ^N - 1h (C) N ^N - 1h /2 (D) ^N - 1h2 . w w w Q. 22 Which one of the following fields of an IP header is NOT modified by a typical IP router ? (A) Checksum (B) Source address (C) Time to Live (TTL) (D) Length Q. 23 What are the worst-case complexities of insertion and deletion of a key in a binary search tree ? (A) ^log n h for both insertion and deletion (B) ^n h for both insertion and deletion (C) ^n h for insertion and ^log n h for deletion (D) ^log n h for insertion and ^n h for deletion Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS 2015-1 Q. 24 A file is organized so that the ordering of data records is the same as or close to the ordering of data entries in some index. Then that index is called (A) Dense (B) Sparse (C) Clustered (D) Unclustered Q. 25 The height of a tree is the length of the longest root-to-leaf path in it. The maximum and minimum number of nodes in a binary tree of height 5 are (A) 63 and 6, respectively (B) 64 and 5, respectively (C) 32 and 6, respectively (D) 31 and 5, respectively 3 Q. 26 Q. 27 . a i d o .n w Q. 26 - Q. 55 Carry two marks each. = _____ / x^x 1 + 1h x=1 n i . o c w w Consider the following relations : Student Performance Roll_No Student_Name Roll_No Course Marks 1 Raj 1 Math 80 Rohit 1 English 70 Raj 2 Math 75 English 80 Physics 65 Math 80 2 3 3 . a 2 i d 3 n i . o c Consider the following SQL query. SELECT S. Student_Name, sum (P. Marks) FROM Student S, Performance P WHERE S. Roll_No = P.Roll_No GROUP BY S.Student_Name The number of rows that will be returned by the SQL query is ______. o n Q. 28 w . w The binary operator ! is defined by the following truth table. p 0 0 1 w q p!q 0 0 1 1 0 1 1 1 0 Which one of the following is true about the binary operator ! ? (A) Both commutative and associative (B) Commutative but not associative (C) Not commutative but associative (D) Neither commutative nor associative Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS 2015-1 Q. 29 Consider a LAN with four nodes S1 , S2 , S 3 and S 4 . Time is divided into fixed size slots, and a node can begin its transmission only at the beginning of a slot. A collision is said to have occurred if more than one node transmit in the same slot. The probabilities of generation of a frame in a time slot by S1 , S2 , S 3 and S 4 are 0.1, 0.2, 0.3 and 0.4, respectively. The probability of sending a frame in the first slot without any collision by any of these four stations is______. Q. 30 Suppose the following disk request sequence (track numbers) for a disk with 100 tracks is given : 45, 20, 90, 10, 50, 60, 80, 25, 70. Assume that the initial position of the R/W head is on track 50. The additional distance that will be traversed by the R/W head when the Shortest Seek Time First (SSTF) algorithm is used compared to the SCAN (Elevator) algorithm (assuming that SCAN algorithm moves towards 100 when it starts execution) is ______ tracks. Q. 31 . a i d o n . w Consider the following C function. int fun1(int n) { int i,j,k,p,q = 0; for(i=1; i<n; ++i) { p=0; for(j=n; j>1; j=j/2) ++p; for(k=1; k<p; k=k*2) ++q; } return q; } Which one of the following most closely approximates the return value of the function fun1 ? (A) n3 (B) n ^log n h2 (C) n log n (D) n log ^log n h w w w . w n i . o c . a i d o n Q. 32 n i . o c Consider a max heap, represented by the array : 40, 30, 20, 10, 15, 16, 17, 8, 4. w Array Index 1 2 3 4 5 6 7 8 9 Value 40 30 20 10 15 16 17 8 4 Now consider that a value 35 is inserted into this heap. After insertion, the new heap is (A) 40, 30, 20, 10, 15, 16, 17, 8, 4, 35 (B) 40, 35, 20, 10, 30, 16, 17, 8, 4, 15 (C) 40, 30, 20, 10, 35, 16, 17, 8, 4, 15 (D) 40, 35, 20, 10, 15, 16, 17, 8, 4, 30 Q. 33 Consider the following pseudo code, where x and y are positive integers. begin q:=0 r:=x while r $ y do Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS 2015-1 begin r:=r y q:=q+1 end end The post condition that needs to be satisfied after the program terminates is (A) "r = qx + y / r < y , (B) "x = qy + r / r < y , (C) "y = qx + r / 0 < r < y , (D) "q + 1 < r y / y > 0, Q. 34 n i . o c . a i Suppose L = " p, q, r, s, t , is a lattice represented by the following Hasse diagram : d o .n w w w For any xyeL, not necessarily distinct, x 0 y and x / y are join and meet of x , y respectively. Let L3 = "^x, y, z h : x, y, z ! L , be the set of all ordered triplets of the elements of L. Let pr be the probability that an element ^x, y, z h ! L3 chosen equiprobably satisfies x 0 ^y / z h = ^x 0 y h / ^x 0 z h. Then (A) pr = 0 (B) pr = 1 1 (C) 0 < pr # 1 5 (D) 5 < pr < 1 Q. 35 Q. 36 n i . o c i d . a What is the output of the following C code ? Assume that the address of x is 2000 (in decimal) and an integer requires four bytes of memory. int main() { unsigned int x[4][3]= {{1,2,3}, {4,5,6}, {7,8,9}, {10,11,12}}; printf( %u,%u,%u , x+3, *(x+3), *(x+2)+3); } (A) 2036, 2036, 2036 (B) 2012, 4, 2204 (C) 2036, 10, 10 (D) 2012, 4, 6 o n . w w w Consider the following 2 # 2 matrix A where two elements are unknown and are marked by a and b. The eigenvalues of this matrix are - 1 and 7. What are the values of a and b ? 1 4 A = f b ap (A) a = 6 , b = 4 (B) a = 4 , b = 6 (C) a = 3 , b = 5 (D) a = 5 , b = 3 Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS Q. 37 Q. 38 Q. 39 A positive edge-triggered D flip-flop is connected to a positive edge-triggered JK flip-flop as follows. The Q output of the D flip-flop is connected to both the J and K inputs of the JK flip-flop, while the Q output of the JK flip-flop is connected to the input of the D flip-flop. Initially, the output of the D flip-flop is set to logic one and the output of the JK flip-flop is cleared. Which one of the following is the bit sequence (including the initial state) generated at the Q output of the JK flip-flop when the flip-flops are connected to a free-running common clock ? Assume that J = K = 1 is the toggle mode and J = K = 0 is the state-holding mode of the JK flip-flop. Both the flip-flops have non-zero propagation delays. (A) 0110110 (B) 0100100... (C) 011101110... (D) 011001100... . a i d o n . w w w Consider the operations f ^X, Y, Z h = XlYZ + XY l g ^XlYZ h = XlYZ + XlYZl + XY Which one of the following is correct ? (A) Both " f , and "g , are functionally complete (B) Only " f , is functionally complete (C) Only "g , is functionally complete (D) Neither " f , nor "g , is functionally complete n i . o c . a An algorithm performs ^log N h1/2 find operations, N insert operations, ^log N h1/2 operations, and ^log N h1/2 decrease-key operations on a set of data items with keys drawn from a linearly ordered set. For a delete operation, a pointer is provided to the record that must be deleted. For the decreased-key operation, a pointer is provided to the record that has its key decreased. Which one of the following data structures is the most suited for the algorithms to use, if the goal is to achieve the best total asymptotic complexity considering all the operations ? (A) Unsorted array (B) Min-heap (C) Sorted array (D) Sorted doubly linked list i d o n Q. 41 n i . o c Consider a non-pipelined processor with a clock rate of 2.5 gigahertz and average cycles per instruction of four. The same processor is upgraded to a pipelined processor with five stages; but due to the internal pipeline delay, the clock speed is reduced to 2 gigahertz. Assume that there are no stalls in the pipeline. The speed up achieved in this pipelined processor is ______. Q. 40 2015-1 . w w w Consider an Entity-Relationship (ER) model in which entity sets E1 and E2 are connected by an m : n relationship R12 , E1 and E 3 are connected by a 1 : n (1 on the side of E1 and n on the side of E 3 ) relationship R13 . E1 has two single-valued attributes a11 and a12 of which a11 is the key attribute. E2 has two single-valued attributes a21 and a22 is the key attribute. E 3 has two singlevalued attributes a 31 and a 32 of which a 31 is the key attribute. The relationships do not have nay attributes. If a relational model is derived from the above ER model, then the minimum number of relations that would be generated if all the relations are in 3NF is ______. Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS Q. 42 Q. 43 Consider the following C program segment. while(first<=last) { if(array[middle]<search) first=middle+1; else if(array[middle]==search) found=True; else last=middle 1; middle=(first+last)/2 } if(first<last) not Present = True; The cyclomatic complexity of the program segment is ______. Q. 46 . a i d o # 2/p 1/p Q. 45 n i . o c The graph shown below 8 edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight 36 and contains the edges : "^A, C h, ^B, C h, ^B, E h, ^E, F h, ^D, F h, . The edge weights of only those edges which are in the MST are given it the figure shown below. The minimum possible sum of weights of all 8 edges of this graph is ______. Q. 44 2015-1 .n w w w 1 cos ^ x h dx = _____ x2 n i . o c i d . a Let G = ^V, E h be a simple undirected graph, and s be a particular vertex in it called the source. For x ! V , let d ^x h denote the shortest distance in G from s to x . A breadth first search (BFS) is performed starting at s . Let T be the resultant BFS tree. If ^u, v h is an edge of G that is not in T , then which one of the following CANNOT be the value of d ^u h - d ^v h ? (A) - 1 (B) 0 (C) 1 (D) 2 o n . w w w Consider a uniprocessor system executing three tasks T1 , T2 and T3 , each of which is composed of an infinite sequence of jobs (or instance) which arrive periodically at intervals of 3, 7 and 20 milliseconds, respectively. The priority of each task is the inverse of its period and the available tasks are scheduled in order of priority, with the highest priority task scheduled first. Each instance of T1 , T2 and T3 requires an execution time of 1, 2 and 4 milliseconds, respectively. Given that all tasks initially arrive at the beginning of the 1st milliseconds and task preemptions are allowed, the first instance of T3 completes its execution at the ends of _______milliseconds. Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS Q. 47 Q. 48 2015-1 Consider a main memory with five page frames and the following sequence of page references : 3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3. Which one of the following is true with respect to page replacement policies First-In-First Out (FIFO) and Least Recently Used (LRU) ? (A) Both incur the same number of page faults (B) FIFO incurs 2 more page faults than LRU (C) LRU incurs 2 more page faults than FIFO (D) FIFO incurs 1 more page faults than LRU n i . o c . a i d Consider a disk pack with a seek time of 4 milliseconds and rotational speed of 10000 rotations per minute (RPM). It has 600 sectors per track and each sector can store 512 bytes of data. Consider a file stored in the disk. The file contains 2000 sectors. Assume that every sector access necessitates a seek, and the average rotational latency for accessing each sector is half of the time for one complete rotation. The total time (in milliseconds) needed to read the entire file is ______. o n Q. 49 w Let an represent the number of bit strings of length n containing two consecutive 1s. What is the recurrence relation for an ? (A) an 2 + an 1 + 2n 2 (B) an 2 + 2an 1 + 2n 2 (C) 2an 2 + an 1 + 2n 2 (D) 2an 2 + 2an 1 + 2n 2 Q. 50 . w w n i . o c A variable x is said to be live at a statement Si in a program if the following three conditions hold simultaneously : 1. There exists a statement S j that uses x 2. There is a path from Si to S j in the flow graph corresponding to the program 3. The path has no intervening assignment to x including at Si and S j o n i d . w . a w w The variables which are live both at the statement in basic block 2 and at the statement in basic block 3 of the above control flow graph are (A) p, s , u (B) r , s , u (C) r , u (D) q , v Q. 51 Consider the NPDA Q = "q 0, q1, q 2, , = "0, 1, , = "0, 1, 1, , , q 0 , =, F = "q2, , where (as per usual convention) Q is the set of states, is the input alphabet, is stack alphabet, is the state transition function, q 0 is the initial state, = is the initial stack symbol, and F is the set of accepting states. The state transition is as follows : Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS 2015-1 n i . o c Which one of the following sequences must follow the string 101100 so that the overall string is accepted by the automaton ? (A) 10110 (B) 10010 (C) 01010 (D) 01001 Q. 52 Q. 53 . a i d o Consider the DFAs M and N given above. The number of states in a minimal DFA that accepts the language L ^M h + L ^N h is ______. .n w w w Suppose that the stop and wait protocol is used on a link with a bit rate of 64 kilobits per second and 20 milliseconds propagation delay. Assume that the transmission time for the acknowledgement and the processing time at nodes are negligible. Then the minimum frame size in bytes to achieve a link utilization of at least 50% is ______. n i . o c . a Q. 54 Let G be a connected planar graph with 10 vertices. If the number of edges on each face in three, then the number of edges in G is _____. Q. 55 The least number of temporary variables required to create a three-address code v in static single assignment form for the expression q + r 3 + s t * 5 + u * w is _______. o n i d . w END OF THE QUESTION PAPER w w Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount* GATE SOLVED PAPER - CS 2015-1 ANSWER KEY General Aptitude 1 2 3 4 5 6 7 8 9 10 (A) (C) (A) (A) (D) (C) (C) (A) (32) (D) 7 8 9 10 (C) (D) (A) (3) (A) n i . o c Computer Science and IT 1 2 3 4 5 (D) (B) (D) (C) (A) 11 12 13 14 15 . a 16 17 18 19 20 ( 5) (4) (C) (C) (C) (C) (A) (5) (B) (D) 21 22 23 25 26 27 28 29 30 (C) (B) (B) 31 32 33 (D) (B) (B) 41 42 (4) (5) w 51 (B) i d 6 (A) o n (A) (0.99) (2) (A) (0.462) (10) 34 35 36 37 38 39 40 (D) (A) (D) (A) (3.2) (B) (A) 44 45 46 47 48 49 50 (69) ( 1) (D) (12) (A) (14020) (A) (C) 52 53 54 55 (1) (320) (24) (8) . w 24 43 w . w . a i d o n n i . o c w w Buy Online all GATE Books: shop.nodia.co.in *Shipping Free* *Maximum Discount*

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

© 2010 - 2025 ResPaper. Terms of ServiceContact Us Advertise with us

 

latashrimane chat