Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop GATE Forum : GATE Previous Years Test Papers - Discuss Here : CS Papers |
Topic: Difficulty of Test7 and other questions | |
Author | Message |
Vijay007
Newbie Joined: 02Feb2007 Online Status: Offline Posts: 19 |
Topic: Difficulty of Test7 and other questions Posted: 02Feb2007 at 5:18pm |
Hi frendz,
1)int main() { int z, x = 5, y = -10, a = 4, b = 2; clrscr(); z = x++ - --y*b/a; printf("%d \n",z); } unable to understand the evaluation of expression ? i have checked on Turboc Ans is 10 can any body explain pls how it comes? 2)In a certain machine data references constitute 40% of the mix, and that the ideal CPI of the pipelined machine is 1. Assume that the machine with structural hazards has a clock rate that is 1.05 times higher than the clock rate of machine without hazard. What is effective speedup with pipelining without structural hazard? A. 1.05 B. 1.3 C. 1 D. none of above 3) Consider three tables with following number of tuples in each S(a,b,c) = 100 R(a,d,e) = 80 T(x,d,f) = 90 Tuples in S and R with same value of attribute “a” = 60 Tuples in R and T with same value of attribute “d” = 70 Maximum and minimum number of tuples in (S left outer join R) full outer join T is: A. 130 120 B. 150 140 C. 140 130 D. 140 120 Pls explain in detail how the ans comes? 4)Let A be a sequence of 8 distinct integers sorted in ascending order. How many distinct pairs of sequences, B and C are there such that (i) each is sorted in ascending order, (ii) B has 5 and C has 3 elements, (iii) the result of merging B and C gives A? A. 2 B. 30 C. 56 D. 256 Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
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.