Computer 2015
Computer 2015
Computer 2015
MARKS DISTRIBUTION
PART - 1 50 QUESTIONS CARRY ONE MARK EACH (1 TO 50)
PART - 2 25 QUESTIONS CARRY TWO MARKS EACH (51 - 75)
;'frigt
COMPUTER SCIENCE ENGINEERING
PART - 1
(50 X 1 = 50)
(Each question carries one mark)
1. What is the cardinality of the powerset of the 6. The average search time of hashing with
set {a, b, c, d) ? linear probing will be less if the load factor is:
a. 4 b. 16 a. Equal to one
c. 8 d. 12 la Is far less than one
c. Is far greater than one
2. If p : The sun has set d. None of the above
q : The moon has risen
then symbolically the statement, "the sun 7. Sparse matrices have
has not set!' or "the moon has not risen" is a. High dimensions
written as
b. Many non zero entries
a. — p A q b. — qv p
c. Many zero entries
c. PA--q d — pv --- q d. None of the above
3. Boolean algebra is different from ordinary 8. If we use merge sort to sort an array with 'n'
algebra in which way? elements, what is the worst case time
a. They are actually the same required to sort?
A-1 3 CS
11. What is the worst case time complexity of a 16. The private work space dedicated to a
sequence of n multidequeue ( ) operations subroutine is called as
on an initially empty queue a. Heap b. Reserve space
a. 0 (n) b. 0(n+k) c. Stack d. Node
15. Increasing the RAM of a computer typically 19. The PDA is called non-deterministic PDA
improves performance because when there are more than one outgoing
edges from which state ?
a. Virtual memory increases
a. START or READ
b. Fewer segmentation faults occur
b. POP or REJECT
c. Larger RAM'S are faster
c. READ or POP
d. Fewer page faults occur d. PUSH or POP
Space For Rough Work
A-1 4 CS
20. Let w be any string of length n in {0,1}. Let 26. Type checking is normally done during?
L be the set of all substrings of w . What
a. Lexical analysis
is the minimum number of states in a
non deterministic finite automation that b. Syntax analysis
accepts L ?
c. Syntax directed translation
a. n - 1 b. n
c. n+ 1 d 2n- 1 d Code generation
A-1 5 CS
31. To avoid the race condition, the number of 36. If every non-prime attribute of R is
Processes that may be simultaneously inside non-transitively dependent on every super
their critical section is key of R then that table is in
a. 8 b. 1 a. 1 NF b. 2 NF
c. 16 d 0 c. 3 NF d. 4 NF
32. In which one of the following page 37. A composite attribute is converted to
replacement policies, Belady's anamoly may individual attributes in which normal from?
occur?
a. First b. Second
a. FIFO b. Optimal
c. Third d Fourth
c. LRU d. MRU
33. The program which interacts with the inner 38. A type of query that is placed within
part of the Kernel is called a "WHERE" or "HAVING" clause of another
query is called
a. Compiler b. Shell
a. Super query b. Sub query
c. Device driver d. Protocol
c. query d Master query
A-1 6 CS
41. An organization has a class B network and 46. Which function may be used to send
wishes to form subnets for 64 departments. messages to users requesting for text input
The subnet mask would be in a Javascript application ?
a. 255.255.0.0 a. Alert ( ) b. Get Input ( )
h 255.255.252.0
c. Prompt ( ) d. Confirm ( )
c. 255.255.128.0
d. 255.255.64.0
47. Which method is used to specify a containers
Layout in JSP?
42. What does the port number in a TCP
connection specify? a. Layout ( )
a. The quality of data transmitted b. Container layout ( )
b. The quality of data connection c. Set con layout ( )
c. Communication process on the two end
systems d. Set layout ( )
a. 255.255.255.255 a. IS Numberic ( )
b. 255.255.255.0 b. IS Number ( )
c. 1.1.1.0
c. ISNU ( )
d. 255.255.0.0
d. None of the above
A-1 7 CS
PART - 2
(Each question carries two marks)
(25 X 2 = 50)
51. A medical treatment has a success rate of 55. In a survey of 120 people, it was found that
0.8. Two patients will be treated with this
65 read Newsweek magazine
treatment. Assuming the results are
independent for the two patients, what is the 45 read Time
probability that neither one of them will be 42 read Fortune
successfully cured? 20 read both Newsweek and Time
a. 0.5 b. 0.36 25 read both Newsweek and Fortune
15 read both Time and Fortune
c. 0.2 d. 0.04
8 read all these magazines
Find the number of people who read exactly
one magazine
52. If you flip a coin 10 times, what is the
probability you will get exactly two heads?
a. 45 b. 25
a. 0.0107 b. 0.9893
c. 48 d 56
c. 0.0439 d. 0.0098
c. 4,5,6,3,2,1 d. 1,2,5,6,4,3
54. Which of the following statement is a
tautology?
57. Let G be connected undirected graph of 100
a. ((—q)Ap)Aq vertices and 300 edges. The weight of a
minimum spanning tree of G is 500. When
the weight of each edge of G is increased by
b. (-- q A p)A(pn-- - p) 5, the weights of a minimum spanning tree
becomes
c. (— q A p)v(pv — p) a. 2000 b. 1000
c. 1995 d. 995
d. (— pAq)A(N —(p AO
Space For Rough Work
A-1 8 CS
58. The recurrence relation capturing the 62. Regular expression for all strings that starts
optimal time of the Tower of Hanoi problem with a b and ends with b b a is
with n disk is
a. aba* b* bba
a. T(n)= 2T (n — 2) + 2
b. ab(ab)* bba
b. T(n)= 2T (n —1)+ n
c. ab(a + b)* bba
c. T(n)= 2T (n 1 2)+1 d. All of the above
d. T(n)= 2T (n —1)+1
63. Consider the following regular expression
a* (ab)* (abc)*
59. Write the Postfix expression form for the
given infin expression: Which of the following regular expression
denote the same language as the above
A +B * (C+D) / F+ D * E
regular expression ?
a. ABCD + * F /+ DE * +
a. (a + ab+ abc)*
h AB + CD * F/+ DE *
c. ABCD + * / F + DE * b. a*(a+b)*(a+b+c)*
d. AB + CD * F/ + D * E
c. a* (e +ab)* (0 + abc)*
(A+B'+C')•(A+B'+C)•(A+B+c') is
a
A-1 9 CS
65.- Consider three processes ( process id 0,1,2 68. Consider the following schedule for
respectively ) with compute time bursts 2,4 transactions T1, 12 and T3
and 8 time units. All processes arrive at time
zero. Consider the longest remaining time
T1 T2 T3
first (LRTF) Scheduling algorithm. In LRTF
Read (X)
ties are broken by giving priority to the Read (Y)
Read (Y)
processes with the lowest process id. The Write (Y)
average turn around time is:
Write (X) Write (X)
a. 13 units b. 14 units Read (Y)
Write (X)
c. 15 units d. 16 units
P4 3
Assuming the above process is being b. r2 (x); r (x); w2 (x); r3 (x); w1 (x)
scheduled with the SJF Scheduling
algorithm, the waiting time for P2 is c. r2 (x); w2 (x); r3 (x); r (x); w1 (x)
a. 16 ms b. 9 ms
d r3 (x); r2 (x); r1 (x); w2 (x); wi (x)
c. 3ms d. 0 ms
Space For Rough Work
A-1 10 CS
70. Consider the following Log Sequence of two 72. Suppose the round trip propagation delay for
transactions on a bank account with initial a 10 Mbps ethernet having 48 - bit jamming
balance 12000. To transfer 2000 to a signal is 46.4 ms. The minimum frame size
mortgage payment and then apply a 5% is :
interest.
a. 94 b. 416
1. T1 start
c. 464 d. 512
2. T1 B old = 12000 new =10000
3. T1 M old = 0 new = 200
73. Usually, it takes 10 bits to represent one
4. Ti Commit character. How many characters can be
5. T2 Start transmitted at a speed of 1200 bps?
6. T2 B2 old = 10000 new = 10500 a. 10
7. T2 Commit h 12
Suppose the database system crashes just c. 120
before log record 7 is written and when the
system is restarted, which one statement is d. None of the above
true of the recovery procedure?
A-1 11 CS