![]() |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
![]() |
![]() |
![]() ![]() |
Author | Message |
Priya
Groupie ![]() Joined: 04Jan2007 Online Status: Offline Posts: 82 |
![]() ![]() ![]() Posted: 05Jan2007 at 5:43pm |
1. Consider the following C function. float f,(float x, int y) { float p, s; int i; for (s=1, p=1, i=1; i < y; i ++) { p*= x/i; s+=p; } return s; }
For large values of y, the return value of the function f best approximates
2. Assume the following C variable declaration int *A [10], B [10][10]; Of the following expressions
which will not give compile-time errors if used as left hand sides of assignment statements in a C program ?
3. Let P(E) denote the probability of the event E. Given P(A)= 1, P(B) = 1/2, the values of P(A \ B) and P(B / A) respectively are
5. n couples are invited to a party with the condition that every husband should be accompanied by his wife. However, a wife need not be accompanied by her husband. The number of different gatherings possible at the party is (a)
2 n
6. Let T(n) be the number of different binary search trees on n distinct elements. Then T(n) =
7. Consider the set å * of all strings over the alphabet å = (0, 1). å * with the concatenation operator for strings
8. Let G be an arbitrary graph with n nodes and k components. If a vertex is removed from G, the number of components in the resultant graph must necessarily lie between
9. Assuming all numbers are in 2's complement representation, which of the following numbers is divisible by 11111011 ?
10. For a pipelined CPU with a single ALU, consider the following situations
Which of the above can cause a hazard?
11. 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
12. 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?
13. Nobody knows yet if P = NP. Consider the language L defined as follows:
Which of the following statements is true?
14. The regular expression 0* (10*)* denotes the same set as
15. 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 |
|
For More Sample Papers Visit:
http://onestopgate.com/gate-preparation/ 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.