299 Computer Science questions asked in CIL MT previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.
Write true (T) / false (F) for each of the following statements:
A. Symbol table is used only in first phase of a compiler.
B. A pretty printer analyses a program and prints it in such a way that the structure of the program becomes early visible.
C. YACC build up LALR parsing table.
D. If a grammar is LALR(1), it is not necessarily SLR(1)
Let L be the set of all binary strings whose last two symbols are the same. The number of states in the minimum state deterministic finite state automation accepting language is _______.
Consider the following Inorder and Preorder traversal of a tree
Inorder – D B E F A G H C
Preorder – A B D E F C G H
What is the Postorder Traversal of the same tree
What is number of page faults by least recently used page replacement for a memory with 4 frames for the page reference string 2, 0, 1, 2, 4, 0, 5, 1, 4, 6, 4, 2, 1, 3, 0?
Consider the disk which has average seek time of 32 ns and rotational rate of 360 rpm (round per minute), Each track of the disk has 512 sectors, each of size 512 bytes.
What is the time taken to read four continuous sectors? And What is the data transfer rate?
Consider the following statements
1. Insertion Sort and Merge Sort are stable.
2. Heap Sort is inherently unstable.
3. Selection Sort is not inherently stable, but may be coded in such a way that it is stable
Calculate the link utilization (throughput) for stop and wait flow control mechanism if the frame size is 4800 bits, bit rate is 9600 bps, and distance between the devices is 2000 km. Given propagation speed is 200000 km/s.
Which of the following is / are correct
I. A language is context free if and only if it is accepted by PDA
II. PDA is a finite automata with push down stack
Consider the following relational schema
Sailors(sid, sname, rating, age)
Reserves(sid, bid, day)
Boats(bid, bname, color)
What is the equivalent of following relational algebra query in SQL query
π_sname ((σ_color='red' Boats) ⋈ Reserves ⋈ Sailors)
ASELECT S.sname, S.rating FROM Sailors S, Reserves R WHERE S.sid = R.sid AND R.bid = B.bid AND B.color = 'red'
BSELECT S.sname FROM Sailors S, Reserves R, Boats B WHERE S.sid = R.sid AND R.bid = B.bid AND B.color = 'red'
CSELECT S.sname FROM Sailors S, Reserves R, Boats B WHERE S.sid = R.sid AND B.color = 'red'
DSELECT S.sname FROM Sailors S, Reserves R, Boats B WHERE R.bid = B.bid AND B.color = 'red'
Show answerHide answer
Correct answer: (B) SELECT S.sname FROM Sailors S, Reserves R, Boats B WHERE S.sid = R.sid AND R.bid = B.bid AND B.color = 'red'
The _______ defines a set of operations on relations, paralleling the usual algebraic operations such as addition, subtraction or multiplication, which operate on numbers.
Which of following problems are undecidable?
I. Membership problem in context-free languages
II. Whether a given context-free language is regular
III. Whether a finite state automation halts on all inputs
IV. Membership problem for type 0 languages
During DMA transfer, DMA controller transfers data ______.
Adirectly from CPU to Memory
Bdirectly from memory to CPU
Cdirectly between memory and registers
Ddirectly between the I/O module and main memory
Show answerHide answer
Correct answer: (D) directly between the I/O module and main memory
How to use these CIL MT Computer Science questions
Every question here was asked in a real CIL MT paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full CIL MT papers as timed tests to check your speed under exam conditions.