Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
 One Stop GATE ForumGATE Previous Years Test Papers - Discuss HereCS Papers
Message Icon Topic: GATE – 2003 COMPUTER SCIENCE & ENGINEERING Post Reply Post New Topic
Author Message
Priya
Groupie
Groupie


Joined: 04Jan2007
Online Status: Offline
Posts: 82
Quote Priya Replybullet Topic: GATE – 2003 COMPUTER SCIENCE & ENGINEERING
    Posted: 13Feb2007 at 11:30am


GATE 2003

COMPUTER SCIENCE & ENGINEERING

 

PAPER-I

 

Time Allowed: 3 Hours                              Maximum Marks: 150

 

Read the following instructions carefully

 

  1. This question paper contains 90 objective questions. Q. 1-30 carry one mark each and Q.31-90 carry two marks each.
  2. Answer all the questions.
  3. Questions must be answered on special machine gradable Objective Response Sheet (ORB) by darkening the appropriate bubble (marked A, B, C, D) using HB pencil against the question number on the left hand side of the ORS. Each question has only one correct answer. In case you wish to change an answer, erase the old answer completely using a good soft eraser.
  4. There will be NEGATIVE marking. For each wrong answer 0.25 mark from Q. 1-30 and 0.5 mark from Q. 31-90 will be deducted. More than one answer marked against a question will be deemed as an incorrect response and will be negatively marked.
  5. Write your registration number, name and name of the Centre at the specified locations on the right half of the ORB.
  6. Using HB pencil, darken the appropriate bubble under each digit of your registration number.
  7. Using HB pencil, darken the appropriate bubble under the letters corresponding to your paper code.
  8. No charts or tables are provided in the examination hall.
  9. Use the blank pages given at the end of the question paper for rough work.
  10. Choose the closest numerical answer among the choices given.
  11. This question paper contains 24 pages. Please report if there is any discrepancy.

 

Q. 1 - 30 CARRY ONE MARK EACH

 

1. Consider the following C function.

float f,(float x, int y) {

float p, s; int i;

for (s=1, p=1, i=1; i < y; i ++) {

p*= x/i;

s+=p;

}

return s;

}

 

For large values of y, the return value of the function f best approximates

  • X Y
  • e x
  • ln (1 + x)
  • X X

 

2. Assume the following C variable declaration

int *A [10], B [10][10];

Of the following expressions

  • A[2]
  • A [2] [3]
  • B [1]
  • B [2] [3]

which will not give compile-time errors if used as left hand sides of assignment statements in a C program ?

  • I, II, and IV only
  • II, III, and IV only
  • II and IV only
  • IV only

 

3. Let P(E) denote the probability of the event E. Given P(A)= 1, P(B) = 1/2, the values of P(A \ B) and P(B / A) respectively are

  • ¼, ½
  • ½, ¼
  • ½, 1
  • 1, ½

 

  1. Let A be a sequence of 8 distinct integers sorted in ascending order. How many distinct pairs of sequences, Band C are there such that (i) each is sorted in ascending order, (ii) B has 5 and C has 8 elements, and (iii) the result of merging B and C gives A ? .
  • 2
  • 30
  • 56
  • 256

 

5. n couples are invited to a party with the condition that every husband should be accompanied by his wife. However, a wife need not be accompanied by her husband. The number of different gatherings possible at the party is

(a) GATE CS 2

  • 3 n
  • (2n)!

2 n

  • GATE CS 4

 

6. Let T(n) be the number of different binary search trees on n distinct elements.

Then T(n) = GATE CS 6 where x is

 

  • n - k + 1
  • n - k
  • n - k – 1
  • n - k - 2

 

7. Consider the set å * of all strings over the alphabet å = (0, 1). å * with the concatenation operator for strings

  • does not form a group
  • forms a non-commutative group
  • does not have a right identity element
  • forms a group if the empty string is removed from å *

 

8. Let G be an arbitrary graph with n nodes and k components. If a vertex is removed from G, the number of components in the resultant graph must necessarily lie between

  • k and n
  • k - 1 and k + 1
  • k - 1 and n - 1
  • k + 1 and n-k

 

9. Assuming all numbers are in 2's complement representation, which of the following numbers is divisible by 11111011 ?

  • 11100111
  • 11100100
  • 11010111
  • 11011011

 

10. For a pipelined CPU with a single ALU, consider the following situations

  • The j + 1-st instruction uses the result of the j-th instruction as an operand
  • The execution of a conditional jump instruction
  • The j-th and j + 1-st instructions require the ALU at the same time

Which of the above can cause a hazard?

  • I and II only
  • II and III only
  • III only
  • All the three

 

11. Consider an array multiplier for multiplying two n bit numbers. If each gate in the circuit has a unit delay, the total delay of the multiplier is

  • Q (1)
  • Q (log n)
  • Q (n)
  • Q (n 2)

 

12. Ram and Shyam have been asked to show that a certain problem Õis NP-complete. Ram shows a polynomial time reduction from the 3-SAT problem to Õ, and Shyam shows a polynomial time reduction from Õ to 3-SAT. Which of the following can be inferred from these reductions?

  • Õ is NP-hard but not NP-complete
  • Õ is in NP, but is not NP-complete
  • Õ is NP-complete
  • Õ is neither NP-hard, nor in NP

 

13. Nobody knows yet if P = NP. Consider the language L defined as follows:

 

GATE CS 8

Which of the following statements is true?

  • L is recursive
  • L is recursively enumerable but not recursive
  • L is not recursively enumerable
  • Whether L is recursive or not will be known after we find out if P = NP

 

14. The regular expression 0* (10*)* denotes the same set as

  • (1*0)*1*
  • 0 + (0 + 10)*
  • (0 + 1)* 10(0 + 1)*
  • none of the above

15. If the strings of a language L .can be effectively enumerated in lexicographic (i.e., alphabetic) order, which of the following statements is true?

(a) L is necessarily finite

(b) L is regular but not necessarily finite

(c) L is context free but not necessarily regular

(d) L is recursive but not necessarily context free

 

16. Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar ?

(a) Removing left recursion alone

(b) Factoring the grammar alone

(c) Removing left recursion and factoring the grammar

(d) None of the above

 

17. Assume that the SLR parser for a grammar G has n 1 states and the LALR parser for G has n 2 states. The relationship between n l and n 2 is

(a) n 1 is necessarily less than n2

(b) n 1 is necessarily equal to n2

(c) n 1 is necessarily greater than n2

(d) none of the above

 

18. In a bottom-up evaluation of a syntax directed definition, inherited attributes can

(a) always be evaluated

(b) be evaluated only if the definition is L-attributed

(c) be evaluated only if the definition has synthesized attributes

(d) never be evaluated

 

19. Suppose the numbers 7, 5, 1, 8, 3, 6, 0, 9, 4, 2 are inserted in that order into an initially empty binary search tree. The binary search tree uses the usual ordering on natural numbers. What is the in-order traversal sequence of the resultant tree?

  • 7 5 1 0 3 2 4 6 8 9
  • 0 2 4 3 1 6 5 9 8 7
  • 0 1 2 3 4 5 6 7 8 9
  • 9 8 6 4 2 3 0 1 5 7

 

20. Consider the following three claims

  • (n + k) m = Q (n m), where k and m are constants
  • 2 n + 1 = 0(2 n)
  • 2 2n + 1 = 0(2 n)

Which of these claims are correct?

(a) I and II

(b) I and III

(c) II and III

(d) I, II and III

 

21. Consider the following graph

GATE CS 2

 

Among the following sequences

  • a b e g h f
  • a b f e h g
  • a b f h g e
  • a f g h b e

Which are depth first traversals of the above graph?

(a) I, II and IV only (b) I and IV only

(e) II, III and IV only (d) I, III and IV only

22. The usual Q (n2) implementation of Insertion Sort to sort an array uses linear search to identify the position where an element is to be inserted into the already sorted part of the array. If, instead, we use binary search to identify the position, the worst case running time will

(a) remain Q (n 2) (b) become Q (n (log n) 2)

(e) become Q (n log n) (d) become Q (n)

 

23. In a heap with n elements with the smallest element at the root, the 7 th smallest element can be found in time

  • Q (n log n)
  • Q (n)
  • Q (log n)
  • Q (1)

 

24. Which of the following statements is FALSE?

(a) In statically typed language, each variable in a program has a fixed type

(b) In un-typed languages, values do not have any types

(c) In dynamically typed languages, variables have no types

(d) In all statically typed languages, each variable in a program is associated with values of only a single type during the execution of the program

 

25. Using a larger block size in a fixed block size file system leads to

  • better disk throughput but poorer disk space utilization
  • better disk throughput and better disk space utilization
  • poorer disk throughput but better disk space utilization
  • poorer disk throughput and poorer disk space utilization

 

26. In a system with 32 bit virtual addresses and 1 KB page size, use of one-level page tables for virtual to physical address translation is not practical because of

(a) the large amount of internal fragmentation

(b) the large amount of external fragmentation

(c) the large memory overhead in maintaining page tables

(d) the large computation overhead in the translation process

 

27. Which of the following assertions is FALSE about the Internet Protocol (IP)?

(a) It is possible for a computer to have multiple IP addresses

(b) IP packets from the same source to the same destination can take different routes in

the network

(c) IP ensures that a packet is discarded if it is unable to reach its destination within a

given number of hops

(d) The packet source cannot set the route of an outgoing packets; the route is determined

only by the routing tables in the routers on the way

 

28. Which of the following functionalities must be implemented by a transport protocol over and above the network protocol?

(a) Recovery from packet losses

(b) Detection of duplicate packets

(c) Packet delivery in the correct order

(d) End to end connectivity

 

 

29. Which of the following scenarios may lead to an irrecoverable error in a database system?

  • A transaction writes a data item after it is read by an uncommitted transaction
  • A transaction reads a data item after it is read by an uncommitted transaction
  • A transaction reads a data item after it is written by a committed transaction
  • A transaction reads a data item after it is written by an uncommitted transaction

 

30. Consider the following SQL query

select distinct a 1. a 2, ...... , a n

from r 1, r 2……….., r m

where P

 

For an arbitrary predicate P, this query is equivalent to which of the following relational algebra expressions?

(a) GATE CS 4

(b) GATE CS 6

(c) GATE CS 8

(d) GATE CS 10

 


For More Sample Papers Visit:   
http://onestopgate.com/gate-preparation/



Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

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

GET LATEST FRESHERS JOBS IN YOUR MAIL





This page was generated in 0.109 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Job Interview Questions | Girls Magazine | DLL, OCX File Errors | Freshers Jobs | Placement Papers | More Papers