Tuesday, July 26, 2011

Aptitute Questions


1.If 2x-y=4 then 6x-3y=?
(a)15
(b)12
(c)18
(d)10

Ans. (b)

2.If x=y=2z and xyz=256 then what is the value of x?

(a)12
(b)8
(c)16
(d)6

Ans. (b)

3. (1/10)18 - (1/10)20 = ?
(a) 99/1020
(b) 99/10
(c) 0.9
(d) none of these

Ans. (a)
4.Pipe A can fill in 20 minutes and Pipe B in 30 mins and Pipe C can empty the same in 40 mins.If all of them work together, find the time taken to fill the tank
(a) 17 1/7 mins
(b) 20 mins
(c) 8 mins
(d) none of these

Ans. (a)
5. Thirty men take 20 days to complete a job working 9 hours a day.How many hour a day should 40 men work to complete the job?
(a) 8 hrs
(b) 7 1/2 hrs
(c) 7 hrs
(d) 9 hrs

Ans. (b)


6. Find the smallest number in a GP whose sum is 38 and product 1728
(a) 12
(b) 20
(c) 8
(d) none of these

Ans. (c)
7. A boat travels 20 kms upstream in 6 hrs and 18 kms downstream in 4 hrs.Find the speed of the boat in still water and the speed of the water current?
(a) 1/2 kmph
(b) 7/12 kmph
(c) 5 kmph
(d) none of these

Ans. (b)
8. A goat is tied to one corner of a square plot of side 12m by a rope 7m long.Find the area it can graze?
(a) 38.5 sq.m
(b) 155 sq.m
(c) 144 sq.m
(d) 19.25 sq.m

Ans. (a)
9. Mr. Shah decided to walk down the escalator of a tube station. He found   that if he walks down 26 steps, he requires 30 seconds to reach the bottom. However, if he steps down 34 stairs he would only require 18 seconds to get to the bottom. If the time is measured from the moment the top step begins   to descend to the time he steps off the last step at the bottom, find out the height of the stair way in steps?
Ans.46 steps.
10. The average age of 10 members of a committee is the same as it was 4 years ago, because an old member has been replaced by a young member. Find how much younger is the new member ?
Ans.40 years.

Monday, July 25, 2011

Cloud Computing - 10 predictions

Here are the 10 cloud predictions for the coming years.
  1. Large organizations will host important applications with cloud providers like AWS and Rackspace. Also, commodity IaaS providers will build up their services for these enterprises.
  2. There will be an increase in solid-state drives among commodity and enterprise IaaS providers. New classes of applications and services will be made possible to run optimally in the cloud.
  3. In the private cloud space, there will be contraction. The presence of large-vendors and OpenStack-based products will make way for less-successful startups to gather acquisitions. Specialized private cloud startups won’t have a hard time finding buyers as they will begin rounding out their private cloud portfolios with acquisitions that deliver specific capabilities.
  4. As large vendors realize the need to stake their claims, PaaS acquisitions and launches will be a profitable market. HP, Dell and even Oracle will facilitate PaaS in their public and/or private offerings.
  5. The convergence of big data will continue. It will result to advanced analytics features, publicly hosted data-crunching services like the Amazon Elastic MapReduce, and optimization of private cloud software as it incorporate Hadoop clusters or other parallel-processing systems into the cloud infrastructure.
  6. Bigger revenue will be generated for startups that address data-center-to-cloud latency. With the rapid improvement of intra-cloud computing, storage and networking performance, one hindrance would be moving some applications types to the public cloud because of the large quantities of existing data.
  7. AWS will be launching a partner program to increase integration with private cloud software. There will also be an open source play for the growing OpenStack support.
  8. After the data breach that involves an IaaS cloud or cloud storage service, we will get to see the emergence of a de facto or an official cloud security standard. Cloud providers will be driven to agree on a security protocol that is much better that what they currently have.
  9. There will be an increase in PaaS offerings for specialized mobile platforms because Apple’s iCloud and other consumer-focused cloud services’ popularity.  The current PaaS offering are not well-suited for mobile applications. Developers will look into cloud-based gaming and other mobile applications.
  10. Data virtualization will pick up its momentum as data integration gives way. Data virtualization offers the benefits of centralized access without the need to maintain extract-transform load (ETL) system or as large a data warehouse, critical differences as data sources multiply to include SaaS applications, cloud servers and mobile devices.
To Know more about Cloud Computing Future

    Verbal Related - p2


    72. mason : wall :: Author : Book 

    73. Fire : Ashes :: Event : memories

     74. (a) cheerleaders : pompoms
    (b) audience:seats
    (c) team:goalposts
    (d) conductor:podium
    (e) referee:decision

    Ans. (a)

    75.  archipelago:islands::

    (a) arbor:bower
    (b) garden:flower
    (c) mountain:valley
    (d) sand:dune
    (e) constellation:star

    Ans. (a)


    76. crow:boastful ::

    (a) smirk:witty
    (b) conceal:s;y
    (c) pout:sulky
    (d) blush:coarse
    (e) bluster:unhappy

    Ans. (a)


    77. bracket:shelf ::

    (a) hammer:anvil
    (b) girder:rivet
    (c) strut:rafter
    (d) valve:pipe
    (e) bucket:well

    Ans. (a)


    78. taxonomy:classification ::

    (a) etymology:derivation
    (b) autonomy:authorization
    (c) economy:rationalization
    (d) tautology:justification
    (e) ecology:urbanisation

    Ans. (a)


    79. moderator:debate ::

    (a) legislator:election
    (b) chef:banquet
    (c) auditor:lecture
    (d) conspirator:plot
    (e) umpire:game

    Ans. (a)


    80. glossary:words ::

    (a) catalogue:dates
    (b) atlas:maps
    (c) almanac:synonyms
    (d) thesaurus:rhymes
    (e) lexicon:numbers

    Ans. (a)


    81. lumber: bear ::

    (a) roost:hen
    (b) bray:donkey
    (c) waddle:goose
    (d) swoop:hawk
    (e) chirp:sparrow

    Ans. (a)


    82. celerity:snail ::

    (a) indolence:sloth
    (b) cunning:weasel
    (c) curiosity:cat
    (d) humility:peacock
    (e) obstinacy:mule

    Ans. (a)


    83. wood:sand ::

    (a) coal:burn
    (b) brick:lay
    (c) oil:polish
    (d) metal:burnish
    (e) stone:quarry

    Ans. (a)


    84. carpenter:saw ::

    (a) stenographer:typist
    (b) painter:brush
    (c) lawyer:brief
    (d) runner:sneakers
    (e) seamstress:scissors

    Ans. (a)


    85. horns:bull ::

    (a) mane:lion
    (b) wattles:turkey
    (c) antlers:stag
    (d) hooves:horse
    (e) wings:eagle

    Ans. (a)


    86. gullible:duped ::

    (a) credible:cheated
    (b) careful:cautioned
    (c) malleable:moulded
    (d) myopic:mislead
    (e) articulate:silenced

    Ans. (a)


    87. marathon:stamina ::

    (a) relay:independence
    (b) hurdle:perseverance
    (c) sprint:celerity
    (d) job:weariness
    (e) ramble:directness

    Ans. (a)


    88. Skin:man ::

    (a) hide:animal
    (b) jump:start
    (c) peel:potato
    (d) eat:food
    (e) wool:cloth

    Ans. (a)


    89. Bamboo:Shoot ::

    (a) Bean:Sprout
    (b) Peas:Pod
    (c) Potato:Eye
    (d) Carrot:Root
    (e) Leaf:Stem

    Ans. (a)


    90. Deflect:Missile ::

    (a) Siege:Castle
    (b) Distract:Attraction
    (c) Protect:Honour
    (d) Drop:Catch
    (e) Score:Goal

    Ans. (a)


    91. Editor:magazine ::

    (a) captain:ship
    (b) actor:movie
    (c) director:film
    (d) player:team
    (e) jockey:horse

    Ans. (a)


    92. Volcano : Lava ::

    (a) Fault:earthquate
    (b) crack:wall
    (c) tunnel:dig
    (d) water:swim
    (e) floor:polish

    Ans. (a)


    93
    . Disregarded
    (a) heed
    (b) hopeful
    (c) evade
    (d) dense

    Ans. (a)
    94. Obviate
    (a) becloud
    (b) necessitate
    (c) rationalize
    (d) execute

    Ans. (b)

    95. Superficial
    (a)  profound
    (b) exaggerated
    (c) subjective
    (d) spirited

    Ans. (a)
    96. chief : tribe :: governer : state

    97. epaulette : shoulder :: tiara : head

    98. guttural : throat :: gastric : stomach

    99. inept : clever :: languid : active

    100. Erudite : scholar :: illiterate : ignorant

    Verbal Related


    1. Depreciation: deflation, depression, devaluation, fall, slump
    2. Deprecate : feel and express disapproval,
    3. Incentive : thing one encourages one to do (stimulus)
    4. Echelon : level of authority or responsibility
    5. Innovation : make changes or introduce new things
    6. Intermittent : externally stopping and then starting
    7. Detrimental: harmful
    8. Conciliation : make less angry or more friendly

    9. Orthodox: conventional or traditional, superstitious

    10. Fallible : liable to error

    11. Volatile : ever changing

    12. Manifest: clear and obvious

    13. Connotation : suggest or implied meaning of expression

    14. Reciprocal: reverse or opposite

    15. Agrarian : related to agriculture

    16. Vacillate : undecided or dilemma

    17. Expedient : fitting proper, desirable

    18. Simulate : produce artificially resembling an existing one.

    19. Access : to approach

    20. Compensation: salary

    21. Truncate : shorten by cutting

    22. Adherence : stick

    23. Heterogeneous: non similar things

    24. Surplus : excessive

    25. Assess : determine the amount or value

    26. Cognizance : knowledge

    27. Retrospective : review

    28. Naive : innocent, rustic

    29. Equivocate : tallying on both sides, lie, mislead

    30. Postulate : frame a theory

    31. Latent : dormant, secret

    32. Fluctuation : wavering,

    33. Eliminate : to reduce

    34. Affinity : strong liking

    35. Expedite : hasten

    36. Console : to show sympathy

    37. Adversary : opposition

    38. Affable : lovable or approachable

    39. Decomposition : rotten

    40. Agregious : apart from the crowd, especially bad

    41. Conglomeration: group, collection

    42. Aberration: deviation

    43. Augury : prediction

    44. Creditability : ability to common belief, quality of being credible

    45. Coincident: incidentally

    46. Constituent : accompanying

    47. Differential : having or showing or making use of

    48. Litigation : engaging in a law suit

    49. Moratorium: legally or officially determined period of delay before
    fulfillment of the agreement of paying of debts.

    50. Negotiate : discuss or bargain

    51. Preparation : act of preparing

    52. Preponderant : superiority of power or quality

    53. Relevance : quality of being relevant

    54. Apparatus : appliances

    55. Ignorance : blindness, in experience

    56. Obsession: complex enthusiasm

    57. precipitate : speed, active

    58. corroborative:  refutable
    59. obnoxious : harmless
    60. sanction:  hinder
    61. empirical: experimental
    62. aborigine:  emigrant
     63. corpulent :   emaciated
    64. officious:  pragmate   
    65. Agitator : Firebrand :: Renegade : Turncoat

    66. Burst : Sound :: Tinder : Fire

    67. Star : cluster :: Tree : clump

    68. Piston : Cylinder :: elevator : shaft

    69. Mitigate : punishment :: commute : sentence

    70. Erudite : scholar :: illiterate : ignorant

    71. Fire : Ashes :: explosion : debris

    C Aptitude - P4 with solutions

    1.      #define square(x) x*x
    main()
    {
    int i;
    i = 64/square(4);
    printf("%d",i);
    }
    Answer:
    64
    Explanation:
    the macro call square(4) will substituted by 4*4 so the expression becomes i = 64/4*4 . Since / and * has equal priority the expression will be evaluated as (64/4)*4 i.e. 16*4 = 64
     
    2.      main()
    {
    char *p="hai friends",*p1;
    p1=p;
    while(*p!='\0') ++*p++;
    printf("%s   %s",p,p1);
    }
    Answer:
    ibj!gsjfoet
                Explanation:
                            ++*p++ will be parse in the given order
    •   *p that is value at the location currently pointed by p will be taken
    •   ++*p the retrieved value will be incremented
    •  when ; is encountered the location will be incremented that is p++ will be executed
    Hence, in the while loop initial value pointed by p is ‘h’, which is changed to ‘i’ by executing ++*p and pointer moves to point, ‘a’ which is similarly changed to ‘b’ and so on. Similarly blank space is converted to ‘!’. Thus, we obtain value in p becomes “ibj!gsjfoet” and since p reaches ‘\0’ and p1 points to p thus p1doesnot print anything.

    3.      #include
    #define a 10
    main()
    {
    #define a 50
    printf("%d",a);
    }
    Answer:
    50
    Explanation:
    The preprocessor directives can be redefined anywhere in the program. So the most recently assigned value will be taken.

    4.      #define clrscr() 100
    main()
    {
    clrscr();
    printf("%d\n",clrscr());
    }
    Answer:
    100
    Explanation:
    Preprocessor executes as a seperate pass before the execution of the compiler. So textual replacement of clrscr() to 100 occurs.The input  program to compiler looks like this :
                            main()
                            {
                                 100;
                                 printf("%d\n",100);
                            }
                Note:  
    100; is an executable statement but with no action. So it doesn't give any problem

    5.      main()
    {
    printf("%p",main);
    }
    Answer:
                            Some address will be printed.
    Explanation:
                Function names are just addresses (just like array names are addresses).
    main() is also a function. So the address of function main will be printed. %p in printf specifies that the argument is an address. They are printed as hexadecimal numbers.

    6.       main()
    {
    clrscr();
    }
    clrscr();
               
    Answer:
    No output/error
    Explanation:
    The first clrscr() occurs inside a function. So it becomes a function call. In the second clrscr(); is a function declaration (because it is not inside any function).

    7.       enum colors {BLACK,BLUE,GREEN}
     main()
    {
     
     printf("%d..%d..%d",BLACK,BLUE,GREEN);
      
     return(1);
    }
    Answer:
    0..1..2
    Explanation:
    enum assigns numbers starting from 0, if not explicitly defined.

    8.       void main()
    {
     char far *farther,*farthest;
     
     printf("%d..%d",sizeof(farther),sizeof(farthest));
      
     }
    Answer:
    4..2 
    Explanation:
                the second pointer is of char type and not a far pointer

    9.       main()
    {
     int i=400,j=300;
     printf("%d..%d");
    }
    Answer:
    400..300
    Explanation:
    printf takes the values of the first two assignments of the program. Any number of printf's may be given. All of them take only the first two values. If more number of assignments given in the program,then printf will take garbage values.