Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop GATE Forum : GATE Previous Years Test Papers - Discuss Here : CS Papers |
Topic: some Qs from CS2004.. | |
Author | Message | |||
Adhiti
Newbie Joined: 02Feb2007 Online Status: Offline Posts: 32 |
Topic: some Qs from CS2004.. Posted: 02Feb2007 at 11:36am |
|||
28. What is the result of evaluating the folowing two expressions using three-digit
floating point arithmetic with rounding ? (113.+ -111 ). + 7.51 113.+ (-111.+7.5 ) (a) 9.51 and 10.0 respectively (b) 10.0 and 9.51 respectively (c) 9.51 and 9.51 respectively (d) 10.0 and 10.0 respectively 43. Consider the folowingC program segment
non-empty tree ispassed asargument is (a) The number of leaf nodesin the tree (b) The number of nodesin the tree (c) The number of internal nodesin the tree (d) The height of the tree 54. A and B are the only two stations on an Ethernet. Each has a steady queue of frames to send. Both A and B attempt to transmit a frame, colide, and A wins the first backoff race. At the end of this successful transmission by A, both A and B attempt to transmit and colide. The probability that A wins the second backoff race is (a) 0.5 (b) 0.625 (c) 0.75 (d) 1.0 think ans is (a) 0.5 correct/comment ! 59. Which are the essential prime implicants of the folowing Boolean function? f(a,b,c)= a'c + ac' + b'c (a) a'c and ac' (b) a'c and b'c (c) a'c only (d) ac' and bc' 74. An examination paper has 150 multiple choice questions of one mark each, with each question having four choices. Each incorect answer fetches -0.25 marks. Suppose 1000 students choose all their answers randomly with uniform probability. The sum total of the expected marks obtained by all these studentsis (a) 0 (b) 2550 (c) 7525 (d) 9375 75. Mala has a colouring book in which each English letter is drawn two times. She wants to paint eachof these 52 prints with one of k colours, such that he colour pairs used to colour any two letters are different. Both prints of a letter can also be coloured with the same colour. What is the minimum value of k that satisfies this requirement ? (a) 9 (b) 8 (c) 7 (d) 6 82. Let A[1,…,n] be an aray storing a bit (1 or 0) at each location, and f(m) is a function whose time complexity is O(m). Consider the folowing program fragment written in a C like language:
The complexity of thisprogram fragment is (a) Omega(n^2) (b) Omega(nlogn) and O(n^2) (c) Theta(n) (d) o(n) 85. A program takes as input a balanced binary search tree with n leaf nodes and computes the value of a function g(x) for each node x. If the cost of computing g(x) is min(number of leaf-nodes in left-subtree of x, number of leaf-nodes in right-subtree of x) then the worst-case time complexity of the program is (a) theta(n) (b) theta(nlogn) (c) theta(n^2) (d) theta(n^2 logn) Post Resume: Click here to Upload your Resume & Apply for Jobs |
||||
IP Logged | ||||
Alok
Newbie Joined: 02Feb2007 Online Status: Offline Posts: 19 |
Posted: 02Feb2007 at 3:56pm | |||
Q.28
A. 9.71 and 10.0 Q.43 D. height of the tree Q.54 A.0.5 bcoz i think previous transmission does not change the probability of next transmission(if algorithm was given like transimission decrease the priority of station, ans would have been different.) Q.59 A. a'c and ac' are prime implicant Q.82 i am not sure but ans may be Q.74 A.expected value will be 0. Q.82 i am not sure but ans may be D. O(n) bcoz
Q.85 A.theta(n)
Expecting corrections if i am wrong anywhere |
||||
IP Logged | ||||
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
|
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.