![]() |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
![]() |
![]() |
![]() ![]() |
Author | Message |
rajesh
Newbie ![]() ![]() Joined: 27Dec2006 Location: India Online Status: Offline Posts: 1 |
![]() ![]() ![]() Posted: 27Dec2006 at 10:21am |
1. For a pipelined CPU with a single ALU, consider the following situations
Which of the above can cause a hazard?
2. Consider an array multiplier for multiplying two n bit numbers. If each gate in the circuit has a unit delay, the total delay of the multiplier is
3. Ram and Shyam have been asked to show that a certain problem ีis NP-complete. Ram shows a polynomial time reduction from the 3-SAT problem to ี, and Shyam shows a polynomial time reduction from ี to 3-SAT. Which of the following can be inferred from these reductions?
4. Nobody knows yet if P = NP. Consider the language L defined as follows:
Which of the following statements is true?
5. The regular expression 0* (10*)* denotes the same set as
6. If the strings of a language L .can be effectively enumerated in lexicographic (i.e., alphabetic) order, which of the following statements is true? (a) L is necessarily finite (b) L is regular but not necessarily finite (c) L is context free but not necessarily regular (d) L is recursive but not necessarily context free
7. Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar ? (a) Removing left recursion alone (b) Factoring the grammar alone (c) Removing left recursion and factoring the grammar (d) None of the above
8. Assume that the SLR parser for a grammar G has n 1 states and the LALR parser for G has n 2 states. The relationship between n l and n 2 is (a) n 1 is necessarily less than n2 (b) n 1 is necessarily equal to n2 (c) n 1 is necessarily greater than n2 (d) none of the above
9. In a bottom-up evaluation of a syntax directed definition, inherited attributes can (a) always be evaluated (b) be evaluated only if the definition is L-attributed (c) be evaluated only if the definition has synthesized attributes (d) never be evaluated
10. Suppose the numbers 7, 5, 1, 8, 3, 6, 0, 9, 4, 2 are inserted in that order into an initially empty binary search tree. The binary search tree uses the usual ordering on natural numbers. What is the in-order traversal sequence of the resultant tree?
Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
![]() |
|
![]() ![]() |
||
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
|
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.