• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE CS 2010

Question 11

In a binary tree with n nodes, every node has an odd number of descendants. Every node is considered to be its own descendant. What is the number of nodes in the tree that have exactly one child?
  • 0
  • 1
  • (n-1)/2
  • n-1

Question 12

Which data structure in a compiler is used for managing information about variables and their attributes?
  • Abstract syntax tree
  • Symbol table
  • Semantic stack
  • Parse Table

Question 13

Which languages necessarily need heap allocation in the runtime environment?
  • Those that support recursion
  • Those that use dynamic scoping
  • Those that allow dynamic data structures
  • Those that use global variables

Question 14

One of the header fields in an IP datagram is the Time to Live(TTL)field.Which of the following statements best explains the need for this field?
  • It can be used to prioritize packets
  • It can be used to reduce delays
  • It can be used to optimize throughput
  • It can be used to prevent packet looping

Question 15

Which one of the following is not a client server application?
  • Internet chat
  • Web browsing
  • E-mail
  • ping

Question 16

Let L1 be a recursive language. Let L2 and L3 be languages that are recursively enumerable but not recursive. Which of the following statements is not necessarily true?
  • L2 – L1 is recursively enumerable.
  • L1 – L3 is recursively enumerable
  • L2 ∩ L1 is recursively enumerable
  • L2 ∪ L1 is recursively enumerable

Question 17

Consider a B+-tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any non-root node?
  • 1
  • 2
  • 3
  • 4

Question 18

A relational schema for a train reservation database is given below. Passenger (pid, pname, age) Reservation (pid, class, tid)
Table: Passenger
pid   pname   age
-----------------
 0    Sachin   65
 1    Rahul    66
 2    Sourav   67
 3    Anil     69

Table : Reservation
pid  class  tid
---------------
 0    AC   8200
 1    AC   8201
 2    SC   8201
 5    AC   8203
 1    SC   8204
 3    AC   8202
What pids are returned by the following SQL query for the above instance of the tables?
SLECT pid
FROM Reservation ,
WHERE class ‘AC’ AND
    EXISTS (SELECT *
       FROM Passenger
       WHERE age > 65 AND
       Passenger. pid = Reservation.pid)
  • 1, 0
  • 1, 2
  • 1, 3
  • 1, 5

Question 19

The cyclomatic complexity of each of the modules A and B shown below is 10. What is the cyclomatic complexity of the sequential integration shown on the right hand side?
cs201021
  • 19
  • 21
  • 20
  • 10

Question 20

What is the appropriate pairing of items in the two columns listing various activities encountered in a software life cycle?
P. Requirements Capture	 1.Module Development and Integration
Q. Design	         2.Domain Analysis
R. Implementation	 3.Structural and Behavioral Modeling
S. Maintenance	         4.Performance Tuning
  • P-3, Q-2, R-4, S-1
  • P-2, Q-3, R-1, S-4
  • P-3, Q-2, R-1, S-4
  • P-2, Q-3, R-4, S-1

There are 63 questions to complete.

Last Updated :
Take a part in the ongoing discussion