Punjab Technical University Jalandhar: Entrance Test For Enrollment in Ph.D. Programme
Punjab Technical University Jalandhar: Entrance Test For Enrollment in Ph.D. Programme
Punjab Technical University Jalandhar: Entrance Test For Enrollment in Ph.D. Programme
JALANDHAR
Max. Marks: 90 Time: 90 Mins.
Entrance Test for Enrollment in Ph.D. Programme
Important Instructions
Fill all the information in various columns, in capital letters, with blue/black ball point pen.
Use of calculators is not allowed. Use Blue/Black ball point pen for attempting the questions.
All questions are compulsory. No negative marking for wrong answers.
To attempt a question, make a tick mark () at the right option/answer.
Each question has only one right answer.
Questions attempted with two or more options/answers will not be evaluated.
Subject (Engg./Arch./Pharm./Mgmt./Sciences) ENGINEERING
Discipline / Branch CSE
Name
Fathers Name
Roll No. Date : 10-07-2010
Signature of Candidate
Signature of Invigilator
2. Two girls have picked 10 Roses, 15 Sunflowers and 14 Daffodils. What is the
number of ways they can divide the flowers among themselves ?
3. The probability that it will rain today is 0.5. The probability that it will rain
tomorrow is 0.6. The probability that it will rain either today or tomorrow is 0.7.
What is the probability that it will rain today and tomorrow?
1
5. Manish has to travel from A to D changing buses at stops B and C enroute. The
maximum waiting time at either stop can be 8 minutes each, but any time of
waiting up to 8 minutes is equally likely at both places. He can afford up to 13
minutes of total waiting time if he is to arrive at D on time. What is the
probability the Manish will arrive late at D?
7. The binary relation r = {(1, 1), (2, 1), (2, 2), (2, 3), (2, 4), (3, 1), (3, 2), (3, 3),
(3, 4)} on the set A = {1, 2, 3, 4} is
(a) I only (b) II only (c) III only (d) I and II only
10. In a beauty contest, half the number of experts voted for Mr. A and two third
voted for Mr. B. 10 voted for both and 6 did not vote for either. How many
experts were there in all.
11. The number of ways to arrange the letters of the word CHEESE are
12. Six teachers and six students have to sit round a circular table such that there is a
teacher between any two students. The number of ways in which they can sit is
2
13. The minimum number of colours required to colour the vertices of a cycle with n
nodes in such a way that no two adjacent nodes have the same colour is
(a) 2 (b) 3 (c) 4 (d) n 2[n/2] +2
14. Let G be a graph with 100 vertices numbered 1 to 100. Two vertices i and j are
adjacent if | i j | = 8 or | i j | = 12. The number of connected components in
G is
(a) 8 (b) 4 (c) 12 (d) 25
15. In which of the following methods proper choice of initial value is more
important ?
16. Find a root of the equation x3-x-11=0 correct to four decimals using bisection
method.
19. The order of the error is the Simpsons rule for numerical integeration with a step
size h is
(a) h (b) h2
(c) h3 (d) h4
21. A PDM behaves like an FSM when the number of auxiliary memory it has, is
(a) 0 (b) 1
(c) 2 (d) none of these
3
22. Consider the following regular expression:
R= (ab | abb) * bbab
Which of the following strings is NOT in the set denoted by R ?
23. Turing machine (TM) is most powerful, than FMS (Finite State Machine) because
26. Consider the regular expression (0 + 1) (0 +1) ---- n times. The minimum state
finite automation that recognizes the language represented by this regular
expression contains
27. Suppose a cache is 10 times faster than main memory, and suppose that the cache
can be used 90 % of the time. How much speed up do we gain by using the cache
32. A 2MHz signal is applied to the input of a J-K flip-flop which is operating in the
toggle mode. The frequency of the signal at the output is
33. Which one of following Boolean expressions is not logically equivalent to all of
the rest ?
35. A computer uses trinary system instead of the traditional binary syste. A n bit
string in the binary system will occupy
36. Which of the following is/are true of the auto-increment addressing mode?
I . It is useful in creating self-relocating code
II. If it is included in an Instruction Set Architecture, then an additional ALU is
required for effective address calculation
III.The amount of increment depends on the size of data item accessed
37. For inclusion to hold between two cache levels L1 and L2 in a multi-level cache
hierarchy, which of the following are necessary ?
I. L1 must be a write-through cache
II. L2 must be a write-through cache
III. The associativity of L2 must be greater than that of L1
IV. The L2 cache must be at least as large as the L1 cache
5
38. In an instruction execution pipeline, the earliest that the data TLB (Translation
Lookaside Buffer) can be accessed is
39. A B-tree of order 4 is built from scratch by 10 successive insertions. What is the
maximum number of node sphitting operations that may take place?
(a) 3 (b) 4
(c) 5 (d) 6
42. If each node in a tree has value greater than every value in its left subtree and has
value less than every value in its right subtree, the tree is known as
6
44. For a linear search in a array of n elements the time compkexity for best, worst
and average case are ., and . respectively.
45. What will be the value of x and y after execution of the following statement ( C
language) n = = 5; x = n++; y= -x;
(a) how to organize the page (b) how to display the page
(c) how to display message box on page (d) none of these
51. The web standard allows programmers on many different computer platforms to
Dispersed format and display the information server. These programs are called
7
53. In a Decision tree
a. The root is drawn on the left and is the starting point on the decision
sequence
b. The branch, to be followed, depends on the conditions and decisions, to be
made
c. The nodes represent the conditions, with the right wise of tree listing the
actions to be taken
d. All the above
8
58. Data transmitted on a link uses the following 2D parity scheme for error detection:
Each sequence of 28 bits is arranged in a 4x7 matrix (rows r0 through r3, and
columns d7 through d1) and is padded with a column d0 and row r4 of parity bits
computed using the Even parity scheme. Each bit of column d0 (respectively, row
r4) gives the parity of the corresponding row (respectively, column). These 40 bits
are transmitted over the data link.
d7 d6 d5 d4 d3 d2 d1 d0
r0 0 1 0 1 0 0 1 1
r1 1 1 0 0 1 1 1 0
r2 0 0 0 1 0 1 0 0
r3 0 1 1 0 1 0 1 0
r4 1 1 0 0 0 1 1 0
The table shows data received by a receiver and has n corrupted nits. What is the
minimum possible value of n?
(a) 1 (b) 2
(c) 3 (d) 4
59. A 2 Km long broadcast LAN has 107 bps bandwidth and uses CSMA/CD. The
signal travels along the wire at 2 x 108 m/s. What is the minimum packet size that
can be used on this network?
(a) 50 bytes (b) 100 bytes
(c) 200 bytes (d) None of these
9
61. Match the following:
P. SMTP 1. Application layer
Q. BGP 2. Transport layer
R. TCP 3. Data link layer
S. PPP 4. Network layer
5. Physical layer
(a) P - 2, Q - 1, R - 3, S - 5
(b) P - 1, Q - 4, R - 2, S - 3
(c) P - 1, Q - 4, R - 2, S 5
(d) P - 2, Q - 4, R - 1, S 3
62. There are n stations in a slotted LAN. Each station attempts to transmit with a
probability p in each time slot. What is the probability that ONLY one station
transmits in a given time slot ?
(a) np(1-p)n-1 (b) (1-p)n-1
n-1
(c) p(1-p) (d) 1-(1-p)n-1
63. In a token ring network the transmission speed is 107 bps and the propagation
speed is 200 metres / s. The 1 bit delay in this network is equivalent to:
(a) 500 metres of cable.
(b) 200 metres of cable
(c) 20 metres of cable
(d) 50 metres of cable
66. A disk has 200 tracks (numbered 0 through 199). At a given time, it was servicing
the request of reading data from track 120, and at the previous request, service
was for track 90. the pending requests (in order of their arrival) are for track
numbers.
30 70 115 130 110 80 20 25.
How many times will the head change its direction for the disk scheduling
policies SSTF (Shortest Seek Time First) and FCFS ( First Come First Serve)?
(a) 2 and 3 (b) 3 and 3
(c) 3 and 4 (d) 4 and 4
10
67. A process executes the following segment of code:
for(i=1; i<=n ; i++)
fork ();
The number of new processes created is
(a) n (b) n(n+1)/2
(c) 2n-1 (d) 3n-1
68. In a particular Unix OS, each data block is of size 1024 bytes, each node has 10
direct data block addresses and three additional addresses: one for single indirect
block, one for double indirect block and one for triple indirect block. Also, each
block can contain addresses for 128 blocks. Which one of the following is
approximately the maximum size of a file in the file system?
(a) 512 MB (b) 2 GB
(c) 8 GB (d) 16 GB
69. A user level process in Unix traps the signal sent on a Ctrl-C input, and has a
signal handling routine that saves appropriate files before terminating the process.
When a Ctrl-C input is given to this process, what is the mode in which the signal
handling routine executes?
(a) kernel mode (b) super user mode
(c) privileged mode (d) user mode
70. For each of the four processes P1, P2, P3, and P4. The total size in kilobytes (KB)
and the number of segments are given below.
Process Total size Number of segments
(in KB)
P1 195 4
P2 254 5
P3 45 3
P4 364 8
The page size is 1 KB. The size of an entry in the page table is 4 bytes. The size
of an entry in the segment table is 8 bytes. The maximum size of a segment is 256
KB. The paging method for memory management uses two-level paging, and its
storage overhead is P. The storage overhead for the segmentation method is S.
The storage overhead for the segmentation and paging method is T. What is the
relation among the overheads for the different methods of memory management
in the concurrent execution of the above four processes?
(a) P<S<T (b) S<P<T
(c) S<T<P (d) T<S<P
71. Processes P1 and P2 use critical_flag in the following routine to achieve mutual
exclusion. Assume that critical_flag is initialized to FALSE in the main program.
get_exclusive_access ()
{ if (critical_flag ==FALSE) {
critical_flag = TRUE ;
critical_region () ;
critical_flag = FALSE;
}
}
11
Consider the following statements.
(i) It is possible for both P1 and P2 to access critical_region concurrently.
(ii) This may lead to a deadlock.
72. The address sequence generated by tracing a particular program executing in a pure
demand paging system with 100 bytes per page is
0100, 0200, 0430, 0499, 0510, 0530, 0560, 0120, 0220, 0240, 0260, 0320., 0410.
Suppose that the memory can store only one page and if x is the address which
causes a page fault then the bytes from addresses x to x + 99 are loaded on to the
memory. How many page faults will occur?
(a) 0 (b) 4
(c) 7 (d) 8
73. In analyzing the compilation of PL/I program, the term Machine independent
Optimization is associated with
(a) Cannot be made to execute in any area of storage other than the one designated
for it at the time of its coding or translation.
(b) Consists of a program and relevant information for its relocation.
(c) Can itself perform the relocation of its address sensitive portions.
(d) All the above.
(a) The probability that one or more errors will be detected when an error
detection mechanism is used.
(b) The probability that one or more bit errors will occur regardless of whether
we use error detection techniques.
(c) The probability that one or more errors will be undetected when an error
detection scheme is in place. .
(d) The number of bits error per twenty four hours of continuous operation of an
asynchronous 300 bps line.
12
77. A language L allows declaration of arrays whose sizes are not known during
compilation. It is required to make efficient use of memory. Which one the
following is true?
78. Correctly match the following pairs and determine the answer from the codes
given below:
Codes:
A B C D
(a) 3 4 1 2
(b) 4 3 1 2
(c) 4 3 2 1
(d) 3 4 2 2
13
The following three questions are based upon the below information in the table
RID Age Income Student Credit_rating Class:buys_computer
1 Youth High No Fair No
2 Youth High No Excellent No
3 Middle_aged High No Fair Yes
4 Senior Medium No Fair Yes
5 Senior Low Yes Fair Yes
6 Senior Low Yes Excellent No
7 Middle_aged Low Yes Excellent Yes
8 Youth Medium No Fair No
9 Youth Low Yes Fair Yes
10 Senior Medium Yes Fair Yes
11 Youth Medium Yes Excellent Yes
12 Middle_aged Medium No Excellent Yes
13 Middle_aged High Yes Fair Yes
14 Senior Medium No Excellent No
80. In the table a training set, D is shown and each attribute is discrete valued. What will
be the excepted information needed to classify a tuple in training set D, if the tuples
are partitioned according to age?
82. What will be the gain ratio for the attribute income in the above table ?
83. If a numeric field has a width of 5.2, then the value of the field could be
14
85. Which of the following statements is true when structure of database file with 20
records is modified ?
86. Given relation r (w, x) and s (y, z), the result of select distinct w, x from r, s is
guaranteed to be the same as r, provided:
87. which of the following definition generates the same language as L, where
88. Consider a relation geq which represents greater than or equal to, that is
(x, y) geq only if y>=x. Create table geq(lb integer not null ub integer not
null primary key lb foreign key (ub) references geq on delete cascade)
which of the following is possible if a tuple(x, y) is deleted?
89. Consider the Join of a relation R with a relation S. If R has m tuples and S has n
tuples, then the maximum and minimum sizes of the Join respectively are:
90. The relational algebra expression equivalent to the following tuple calculus
expression
{t \ t r ( t[A] = 10 t[B] = 20 )} is :
15