CEAT Question Bank
CEAT Question Bank
10. Which one of the following statements is NOT correct about the B+ tree data structure used
for creating an index of a relational database table?
(a) B+ Tree is a height-balanced tree
(b) Non-leaf nodes have pointers to data records
(c) Key values in each node are kept in sorted order
(d) Each leaf node has a pointer to the next leaf node
11. Which one of the following is NOT a part of the ACID properties of database transactions?
(a) Atomicity (b) Consistency (c) Isolation (d) Deadlock-freedom
12. What is the optimized version of the relation algebra expression πA1(πA2(σF1(σF2(r)))),
where A1, A2 are sets of attributes in r with A1 ⊂ A2 and F1, F2 are Boolean expressions
based on the attributes in r?
(a) πA1(σ(F1ΛF2)(r)) (b) πA1(σ(F1∨F2)(r))
(c) πA2(σ(F1∧F2)(r)) (d) πA2(σ(F1∨F2)(r))
13. In the following pairs of OSI protocol layer/sub-layer and its functionality,
the INCORRECT pair is
(a) Network layer and Routing
(b) Data Link Layer and Bit synchronization
(c) Transport layer and End-to-end process communication
(d) Medium Access Control sub-layer and Channel sharing
14. If there are nn devices (nodes) in a network, what is the number of cable links required for a
fully connected mesh and a star topology respectively
(a) n(n−1)/2 , n−1 (b) n, n−1 (c) n−1, n (d) n−1, n(n−1)/2
15. The essential content(s) in each entry of a page table is/are
(a) Virtual page number (b) Page frame number
(c) Both virtual page number and page frame number (d) access right information
16. Let S and T be language over ={a,b} represented by the regular expressions (a+b*)* and
(a+b)*, respectively. Which of the following is true?
(a) ScT (S is a subset of T) (b) TcS (T is a subset of S (c) S=T (d) SnT=Ø
17. Let P be a regular language and Q be context-free language such that Q ⊆ P. (For example,
let P be the language represented by the regular expression p*q* and Q be {pnqn|n ∈ N}).
Then which of the following is ALWAYS regular?
(a) P ∩ Q (b) P – Q (c) ∑* – P (d) ∑* – Q
2
96051
18. A computer has a 256 KB, 4-way set associative, write back data cache with block size of 32
bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory
entry contains in addition to address tag, 2 valid bits, 1 modified bit and 1 replacement bit.
The number of bits in the tag field of an address is-
(a) 11 (b) 14 (c) 16 (d) 27
19. The amount of ROM needed to implement a 4 bit multiplier is
(a) 64 bits (b) 128 bits (c) 1 Kbits (d) 2 Kbits
20. The smallest integer than can be represented by an 8-bit number in 2’s complement form is
(a) -256 (b) -128 (c) -127 (d) 0
1. The result evaluating the postfix expression 105+60 6/*8− is
21.
A. (a) 284 B. (b) 213 C. (c) 142 (d) 71
22. A function f defined on stacks of integers satisfies the following properties. f(φ) = 0 and f
(push (S, i)) = max (f(S), 0) + i for all stacks S and integers i. If a stack S contains the integers
2, -3, 2, -1, 2 in order from bottom to top, what is f(S)?
D. (a) 6 E. (b) 4 F. (c) 3 (d) 2
23. The output Y of a 2-bit comparator is logic 1 whenever the 2-bit input A is greater than the 2-
bit input B. The number of combinations for which the output is logic 1, is
G. (a) 4 H. (b) 6 I. (c) 8 (d) 10
24. To implement Dijkstra’s shortest path algorithm on unweighted graphs so that it runs in linear
time, the data structure to be used is:
(a) Queue. (b) Stack. (c) Heap. (d) B-Tree.
25. The Floyd-Warshall algorithm for all-pair shortest paths computation is based on
(a) Greedy paradigm.
(b) Divide- and- conquer paradigm.
(c) Dynamic programming paradigm.
(d) Neither Greedy nor Divide- and- conquer nor Dynamic programming paradigm.
GENERAL APTITUDE
26. In how many different ways can the letters of the word 'LEADING' be arranged in such a way
that the vowels always come together?
(a) 360 (b) 480 (c) 720 (d) 5040
27. Raman buys a washing machine for Rs. 13,500 and sells it at a loss of 12%. What is the
selling price of the washing machine?
(a) 11,880 (b) 11,800 (c) 13,500 (d) 11,870
28. The Last day of Century cannot be
(a) Monday (b) Tuesday (c) Wednesday (d) Friday
29. What is the probability that a leap year selected at random will contain 53 Sundays?
(a) 2/7 (b) 3/7 (c) 4/7 (d) 5/7
30 A walks 5 km towards the south and then turns to the right. After walking 3 km he turns to the
left and walks 5 km. Then turn to his right walks 3 km. What direction is he facing right now?
(a) West (b) South (c) North - East (d) South - West
3
96051
PART B - (35 x 2 = 70 Marks)
MATHEMATICS
31 For a Group G {1, 1, i,i} under multiplication inverse of cos147 is
(a) i (b) i (c) 1 (d) -1
32 The order of the element [4] in a group (Z8 , 8 )
(a) 4 (b) 3 (c) 2 (d)5
33
x dx
x
e
0
(a) (b)2 3
(c ) (d)
2 4
COMPUTER SCIENCE ENGINEERING /INFORMATION TECHNOLOGY
34 Which of the following statements are TRUE?
I. There exist parsing algorithms for some programming languages whose complexities are
less than θ(n3).
II. A programming language which allows recursion can be implemented with static storage
allocation.
III. No L-attributed definition can be evaluated in the framework of bottom-up parsing.
IV. Code improving transformations can be performed at both source language and
intermediate code level.
(a) I and II (b) I and IV (c ) III and IV (d) I, III and IV
35 An LALR(1) parser for a grammar G can have shift-reduce (S-R) conflicts if and only if
(a) the SLR(1) parser for G has S-R conflicts
(b) the LR(1) parser for G has S-R conflicts
(c ) the LR(0) parser for G has S-R conflicts
(d) the LALR(1) parser for G has reduce-reduce conflicts
36 Given the following relation instance.
x y z
1 4 2
1 5 3
1 6 3
3 2 2
Which of the following functional dependencies are satisfied by the instance?
(a) XY -> Z and Z -> Y (b) YZ -> X and Y -> Z
(c) YZ -> X and X -> Z (d) XZ -> Y and Y -> X
37 In SQL, relations can contain null values, and comparisons with null values are treated as
unknown. Suppose all comparisons with a null value are treated as false. Which of the
following pairs is not equivalent?
(a) x = 5, not (not (x = 5) (b) x = 5, x > 4 and x < 6, where x is an integer
(c) x < 5, not(x = 5) (d) None of the above
4
96051
38 The protocol data unit(PDU) for the application layer in the Internet stack is
(a) Segment (b) Datagram (c) Message (d) Frame
39 In the IPv4 addressing format, the number of networks allowed under Class C addresses is
(a) 2^14 (b) 2^7 (c) 2^21 (d) 2^24
40 A virtual memory system uses First In First Out (FIFO) page replacement policy and
allocates a fixed number of frames to a process. Consider the following statements:
P: Increasing the number of page frames allocated to a
process sometimes increases the page fault rate.
Q: Some programs do not exhibit locality of reference.
Which one of the following is TRUE?
(a) Both P and Q are true, and Q is the reason for P (b) P is false, but Q is true
(c) Both P and Q are true, but Q is not the reason for P (d) Both P and Q are false
41 Match all items in Group 1 with correct options from those given in Group 2.
Group 1 Group 2
P. Regular expression 1. Syntax analysis
Q. Pushdown automata 2. Code generation
R. Dataflow analysis 3. Lexical analysis
S. Register allocation 4. Code optimization
(a) P-4. Q-1, R-2, S-3 (b) P-3, Q-1, R-4, S-2
(c) P-3, Q-4, R-1, S-2 (d) P-2, Q-1, R-4, S-3
42 Which of the following languages is/are regular?
5
96051
45 The output expression for the Karnaugh map shown below is
(a) two or more of the inputs P, Q, R are ‘0’ (b) two or more of the inputs P, Q, R are ‘1’
(c) any odd number of the inputs P, Q, R is 0’ (d) any odd number of the inputs P, Q, R is 1’
47 Consider a hash table with 9 slots. The hash function is h(k) = k mod 9. The collisions are
resolved by chaining. The following 9 keys are inserted in the order: 5, 28, 19, 15, 20, 33, 12,
17, 10. The maximum, minimum, and average chain lengths in the hash table, respectively,
are
(a) 3, 0, and 1. (b) 3, 3, and 3. (c) 4, 0, and 1. (d) 3, 0, and 2.
48 Which of the following is/are valid statement(s) of the spanning tree of a connected undirected
graph G (V,E)?
(a) Spanning Tree of G(V,E) must contain (V–1) number of edges.
(b) Spanning Tree of G(V,E) is minimally connected.
(c) Spanning Tree of G(V,E) is maximally cyclic.
(d) Spanning Tree of G(V,E) must contain (E–1) number of edges.
49 A CFG G is given with the following productions where S is the start symbol, A is a non-
terminal and a and b are terminals. S→aS∣A A→aAb∣bAa∣ϵ Which of the following strings is
generated by the grammar above?
(a) aabbaba (b) aabaaba (c) abababb (d) aabbaab.
50 Which of the following languages are undecidable? Note that ⟨M⟩ indicates encoding of the
Turing machine M.
L1 = {⟨M⟩|L(M)=ϕ}{⟨M⟩|L(M)=ϕ}
L2 = {⟨M,w,q⟩|{⟨M,w,q⟩| M on input w reaches state q in exactly 100 steps }
L3 = { ⟨M⟩|⟨M⟩| L(M) is not recursive }
L4 = { ⟨M⟩|⟨M⟩| L(M) contains at least 21 members }
(a) L2 and L3 only (b) L1 and L3 only (c) L2,L3 and L4 only (d) L1,L3 and L4 only
6
96051
51 Consider the following statements.
I. The complement of every Turing decidable language is Turing decidable
II. There exists some language which is in NPNP but is not Turing decidable
III. If LL is a language in NP,NP, LL is Turing decidable
Which of the above statements is/are true?
(a) Only I and II (b) Only I and III (c) Only II (d) Only III
52 Let N be an NFA with nn states. Let k be the number of states of a minimal DFAwhich is
equivalent to N. Which one of the following is necessarily true?
(a) K<2^n (b) k<n^2 (c) K>2^n (d) K>2^n
53 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?
(a) L2-L1 is recursively enumerable (b) L2∩L3 is recursively enumerable
(c) L1 –L3 is Recursively enumerable (d) L2∪L3is recursively enumerable
54 S → aSa|bSb|a|b
The language generated by the above grammar over the alphabet {a,b} is the set of
(a) All Palindromes (b) All odd length Palindromes
(c) strings that begin and end with the same symbol (d) all even length palindromes.
55 An operating system contains 3 user processes each requiring 2 units of resource R.The
minimum number of units of R such that no deadlocks will ever arise is
(a) 3 (b) 5 (c) 4 (d) 6
56 Which of the following is decidable?
(a) A Turing machine prints specific letter
(b) A Turing machine computes product of two numbers.
(c) An arbitrary Turing machine halts after fifty steps
(d) none of the above.
57 In which of the cases stated below is the following statement true?
“For every non-deterministic machine M1M1 there exists an equivalent deterministic
machine M2M2 recognizing the same language“.
(a) M1 is nondeterministic finite automation
(b) M1 is a nondeterministic PDA
(c) M1 is a nondeterministic Turing machine
(d) For no machine M1 use the above statement true
58 Context free languages and regular languages are both closed under the operation(s) of :
(a) Union (b) Intersection
(c) Concatenation (d) Complementation
59 Which of the following regular expression identities are false?
(a) (r+s)* =r* + s* (b) r*s* =r* + s* (c) r*=r*+s (d) (r*s*)*=(r+s)*
7
96051
60 Page fault occurs when
(a) the page is corrupted by application Software
(b) the page is in main memory
(c) the page is not in main memory
(d) the process requesting the page does not have privilege to access the page
GENERAL APTITUDE
61 What was the day of the week on 28th May, 2006?
(a) Sunday (b) Tuesday (c) Wednesday (d) Friday
62 From the group of 5 men and 5 women. Two persons are chosen at random. The probability
that one of them is man and the other woman is
(a) 2/5 (b) 3/5 (c) 5/9 (d) 4/9
63 A man is facing North-West. He turns 90 in the clockwise direction, then 180o in the
o
anticlockwise direction and then another 90o in the same direction. Which direction is he
facing now?
(a) South (b) South - West (c) South - East (d) East
64 In a certain code, '247' means 'spread red carpet'; '256' means 'dust one carpet' and '234' means
'one red carpet'. Which digit in that code means 'dust'?
(a) 2 (b) 3 (c) 5 (d) 6
65 60. 25 : 37 :: 49 : ?
(a) 65 (b) 69 (c) 79 (d) 81
8
96051