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-2000 CSE paper Post Reply Post New Topic
Author Message
Neha Agarwal
Groupie
Groupie


Joined: 04Jan2007
Online Status: Offline
Posts: 59
Quote Neha Agarwal Replybullet Topic: GATE-2000 CSE paper
    Posted: 05Jan2007 at 5:17pm


1. Consider the following nested representation of binary trees: (X Y Z) indicates Y and Z are the left and right sub trees, respectively, of node X Note that Y and Z may be NULL, or further nested. Which of the following represents a valid binary tree?

  • (1 2 (4 5 6 7))
  • (1( (2 3 4) 5 6)7)
  • (1 (2 3 4)(5 67))
  • (1 (23 NULL) ( 4 5))

 

2. Let s be a sorted array of n integers. Let t (n) denote the time taken for the most efficient algorithm to determine if there are two elements with sum less than 1000 in s. Which of the following statements is true?

  • t (n) is 0 (1)
  • n £ t (n) £ n log 2 n
  • n log 2 n £ t (n) <
  • t (n) =

 

3. Aliasing in the context of programming languages refers to

  • multiple variables having the same memory location
  • multiple variables having the same value
  • multiple variables having the same identifier
  • multiple uses of the same variable

 

4. Consider the following C declaration

struct {

short s [5]

union {

float y;

long z;

}u;

} t;

Assume that objects of the type short, float and long occupy 2 bytes, 4 bytes and 8 bytes, respectively. The memory requirement for variable t, ignoring alignment considerations, is

(a) 22 bytes (b) 14 bytes

(e) 18 bytes (d) 10 bytes

 

 

5. The number of tokens in the following C statement

printf("i=%d, &i= %x", i, &i);

is

  • 3
  • 26
  • 10
  • 21

 

6. Which of the following derivations does a top-down parser use while parsing an input string? The input is assumed to be scanned in left to right order.

(a) Leftmost derivation

(b) Leftmost derivation traced out in reverse

(c) Rightmost derivation

(d) Rightmost derivation traced out in reverse

 

7. Which of the following need not necessarily be saved on a context switch between processes?

  • General purpose registers
  • Translation look aside buffer
  • Program counter
  • All of the above

 

8. Let m [0]….m [4] be mutexes (binary semaphores) and P [0] ... P [4] be processes. Suppose each process P executes the following :

wait (m ); wait (m [(i + 1) mode 4]);

……..

release (m ) ; release (m[(i + 1) mod 4 ] );

This could cause

  • Thrashing
  • Deadlock
  • Starvation, but not deadlock
  • None of the above

 

9. B + -trees are preferred to binary trees in databases because

  • Disk capacities are greater than memory capacities
  • Disk access is much slower than memory access
  • Disk data transfer rates are much less than memory data transfer rates
  • Disks are more reliable than memory

 

10. Given the relations

employee (name, salary, deptno), and

department (deptno, deptname, address) .

which of the following queries cannot be expressed using the basic relational algebra operations ( s , p , ´ , |X|, È , Ç , - )?

(a) Department address of every employee

(b) Employees whose name is the same as their department name

(c) The sum of all employee salaries

(d) All employees of a given department





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.094 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