Showing posts with label APTITUDE QUESTIONS AND ANSWERS. Show all posts
Showing posts with label APTITUDE QUESTIONS AND ANSWERS. Show all posts

Tuesday, July 12, 2011

APTITUDE QUESTIONS AND ANSWERS HEXAWARE


Directions for questions 1-10: Expand the following terms 


1. ODBC
Ans. Open Database Connectivity.


2. HTML
Ans. Hyper Text Markup Language


3. RISC
Ans. Reduced Instruction Set Computing


4. ASCII
Ans. American Standard Code For Information Interchange


5.ANSI
Ans. American National Standard Institute.


6. XML 
Ans. Extended Markup Language


7. FLOPS
Ans. Floating Point Operating Per Second


8. SQL
Ans. Sequential Query Language


9. QBE
Ans. Query By Example


10. ALE
Ans. Address Latch Enable
11. What is lagging in DBMS ? 
Ans. Reduced Redundancy.




11......


12. Unix
OS/2
CMOS
MSDOS


Ans. CMOS


13. Oracle
Informix
Sybase
LISP


Ans. LISP


14. Laser
Inkjet
Dotmatirx
Mouse


Ans. Mouse


15. Dir 
Cls 
Csh 
Copy


Ans. Csh


16. Bit 
Byte 
Nibble 
Digit


Ans. Digit


17. Hard Disk
Floppy Drive
CD ROM
Cache
Ans. Cache
18. SQL
QUEL
QBE
ORACLE


Ans. Oracle
19. C++
JAVA
VC++
PASCAL
Ans. PASCAL


20. Projection Operation
Selection Operation
Intersection
Set Difference Operation


Ans. Intersection


21. Which of the following is a universal gate ?
(a) OR
(b) AND
(c) XOR
(d) NOR


Ans. NOR


22. The default back end of the VB is
(a) Oracle
(b) Sybase
(c) Informics


Ans. Sybase


23. What is meant by Superconductivity?
Ans. No reistance


24. Viscosity
Ans. Friction


25. What is the Lock Based Protocol used for?
Ans. Concurrency Control in DBMS
Directions for question 25 to 32: Convert the decimal numbers on the left to
the required form
25. 9's complement of 28
Ans. 71 


26. Binary of 58
Ans. 111010
27. Octal of 359
Ans.547


28. Hexadecimal of 650
Ans.28A


29. BCD of 18
Ans.0001 1000


30. BCD of 34.8
Ans.0011 0100.1000


31. Excess-3 code of 6
Ans.1001


32. Excess-3 code of 9
Ans.1100
33. If Ax + By = 1F16; Cx + Dy = 2510 .Find the value of x and y


34. Semaphore is used for
(a) synchronization 
(b) dead-lock avoidence
(c) box 
(d) none
Ans. a
35. For addressing 1 MB memory, the number of address lines required,
(a)11 
(b)16 
(c)22 
(d) 24


Ans. b


36. Which of the following remains in memory temporarily
(a) Resident portion of COMMAND.COM
(b) Transient portion of COMMAND.COM
(c) API
(d) Disk BIOS


Ans. b


37. Pick the odd man out
(a) IO.SYS
(b) MSDOS.SYS
(c) ROM-BIOS
(d) COMMAND.COM


Ans. c


38. OS/2 is a 
(a) Single User OS
(b) Multi User OS
(c) Multi Tasking OS
(d) None of these


Ans. c


39. Bootstrap loader program is a program belonging to 
(a) ROM startup software
(b) ROM extension software
(c) ROM BIOS software
(d) ROM Basic software
Ans. a


40. The entry of starting cluster of a file is present in 
(a) Boot Parameters
(b) Directory
(c) FAT
(d) Partition Table and master boot program


Ans. c
APTITUDE SECTION
Directions for questions 1-6: Find the correct meaning of the following
phrases


1. A man of letters


2. A man of straw


3. To be in the air


4. To bite the dust


5. Man of few words


6. Penny wise pound foolish




7. Find the reminder when 333666777888999 divided by 3 or 9 or 11 ?




8. Which is the biggest perfect square amongst the following
15129, 12348, 23716, 20736




9. The greatest area of the following
(a) The radius of circle is 4
(b) The square of diagonal is 4
(c) The square of side is 4




10. The area of the maximum size of the circle described from the 10 square
inch square? 




11. In the series 0, 3, 8, 15,__ What is the next number?




12. X < 0, Y <> 0 then what is the possibility that the result is always
positive?
Ans. xy




13. 3 red and 4 blue balls are in a basket. A member of PPTeam is drawing
balls from the basket. What is the probablity
of getting the 3 red balls simultaneously?




14. Let ax2 + bx + c = 0
If the sum of the equal roots is equal to the product of the same roots.Then
which of the following hold true
(a) a + b = 0
(b) a = 0
(c) c = 0
(d) a + c = 0




15. A fold density is 19 times greater than the water and for copper it is 9
times.At what ratio you can mix gold and 
copper to get 15 times denser than water.
Ans. 3 : 2




16. Find the value of (1.99)2
Ans. 3.9601




17. There is a room with 6' x 8'. A 1' tile is fixed along the 4 walls in
one row. How many 1" tiles require to 
finish the work.
Ans. 24 
18. 2 persons can finish a job in 8 days. First person alone can finish the
work in 24 days. How many days
does the second person take to finish the job?
Ans. 12 days
19. A 4" cube is painted in all its faces and then it is cut down into 1"
blocks. How many 1" blocks are there 
even without a single face being painted?
Ans. 8


20. A cylinder is inserted in a sphere d/h = 2/3. Find the surface area of
the cylinder ?




21. In a car wheel, two spokes cover 15 degree. Then for the entire car,how
many spokes are there?
Ans. 24.




22. What is the angle of degree suspended when two hands of clock showing
the time 2.30. 
Ans. 105 degrees




23. The age difference between two brothers is 3 years. After 6 years the
ratio between the age is 9:8 
What are their ages?
Ans. 21 and 18




24. A person's salary is getting reduced by 20%. What percentage should be
added to get back his 
original salary?
Ans. 25% 




25. Two persons start at the same point, walk in opposite directions with
5km/hr and 5.5km/hr respectively.
What is the distance separated after 2 and half hrs?
Ans. 26.25 (approx)




26. A person starts walking at a speed of 5km/hr through half the distance,
rest of the distance he covers with a
speed 4km/hr. Total time of travel is 9 hours. What is the maximum distance
he can cover?
Ans. 40km.


27. Initially two cups of same volume are present with milk filled upto
3/5th and 4/5th of their volumes.Water is then filled. Then two mixtures are
mixed. Find the ratio of water to milk in the mixture.
Ans. 3 : 7




28. 16 grams of radioactive material decays into 8 grams in 10 years. How
long will it take to decay to 1 gram ?
Ans. 70 yrs.




29. In a rectangle the length is increased by of the original length . By
what proportion should the 
width be reduced so that the area will be the same?
Ans. 33




30. Find the nth number in the series is 1, -3, 5, -7.___
Ans. (-1)*(2n-1)




31. If a square is formed by the diagonal of the square as an edge, what is
the ratio between the area?
Ans. 2




32. The perimeter of a rhombus is 52 units. One of its diagonal is 24
units.What is its second diagonals length?
Ans. 10




33. A cubical rectangular bar has the dimensions with the ratio 5 : 4 : 3.
Its volume is 7500. What is the
surface area of the bar? 
Ans. 2350




34. In a class total 34 students, 16 are have a brother, 15 are have
sisters, 9 students don't have either 
brothers or sisters.Find the number of students having both brother and
sisters.
Ans. 6




35. A batsman scored 18 runs in his 18th innings and that makes his average
18. Find his average upto the
17th innings?
Ans. 19




36. 6 women can do 75 units of work in 8 days by working 5hrs/day. In how
many days can 4 women do 30 units 
of work by working 8hrs/day ?




37. A persons salary iis decreased by steps of 20%, 15% and 10%. What will
be the percentage decrease, if the
salary is decreased in a single shot?




38. The ratio of the length : breadth : height of a cuboid is 5 : 4: 3, and
the volume is 7500. What will be its surface area ?




39. If the circumference of a circle is 100 units, Then what will the
length of the arc described by an angle of 20 degree ?




40. 3 persons started placementpapers with a capital of Rs.3000 . B invest
Rs.600 less than A, C invest Rs.300 less 
than B. Then what is the share amount of B in a profit of Rs.886 ? 


Directions for 41-50: Which of the following is the correct spelling for the
word
41. supercede and supersede


42. recommend and reccomend


43. superitendent and superitendant


44. separate and seperate


45. succeed and suceed 


46. coolly and cooly
47. despair and dispair


48. ridiculous and rediculous


49. indespensible and indepensable 


50. tranquility or tranquillity


C TEST


Directions: For the given sample program give the output of the program(30
marks)
main()
{
int a[]={ 2,4,6,8,10 };
int i;
change(a,5);
for( i = 0; i <= 4; i++)
printf("\n %d",a[i]);
}
change( int *b, int n){
int i;
for( i = 0; i < n; i++)
*(b+i) = *(b+i) + 5;
}

APTITUDE QUESTIONS AND ANSWERS GSSL


1)WHO USED THE TERM FINITE ELEMENT FOR THE FIRST TIME?
  a)
  b)
  c) CLOUGH
2)DERIVE THE JACOBIEN |J| FOR BEAM ELEMENT WITH STRAIN 
  ENERGY?
  
3)FOR AN ELEMENT SIGMA Ni=1,WHICH TYPE OF ELEMENT IT IS?
   a)
   b)NATURAL CO-ORDINATE
    (ANS 100% CORRECT)
4)TIMOSHENKO BEAM ELEMENT THEORY TO CONSIDER -- - - -?
   a)
   b)
   c)SHEAR DEFORMATION
5)SHEAR LOCKING - - - - ?
  (ANS IS VERY STIFF 'K')
6)MEMBRANE LOCKING 
  (ANS IS ARCH ELEMENT)
7)Ex(epsiolan x)=dU/dX,Ey=dV/dY,r(X,Y)=?(gama(x,y)=?)
  (ANS IS dU/dY+dV/dX )
8)K=integral B(TRANSPOSE)*D*B  FOR LARGE DEFORMATION
  WHICH MATRIX WILL GET EFFECTED?
  (ANS IS  D matrix )100%correct
9)FOR PLANE STRAIN  f(Ex,Ey,Ez,r(x,y) ) - - - 
  (ANS IS    Ez=0)  
10)SERENDIPITY ELEMENT IS
   (ANS 8 NODED ELEMENT)
 (The element which is having nodes only on boundary is
   called SERENDIPITY element)
11)IF THE ROTATION OF ELEMENT AND THE DISPLACEMENT ABOUT
   N-A  IS SAME THEN THE ORDER OF CONTINUITY
   (ANS IS  C1)
12)FRONTAL THEORY IS APPLIED FOR
  (Please refer any fem book)
13)MINDLINS THEORY IS APPLIED FOR
  c) this is the answer(Both Co&C1problems)
14)X=SigmaNi*Xi,U=sigmaNi*Ui WHICH TYPE OF ELEMENT
  (Refer book)
15)BEAM SUBJECTED TO UDL FIND THE MOMENTS AT THE 
   2 NODES
16)Integral B(Transpose)*sigma(here sigma means stress)*dV 
    REPRESENTS?
    (ANS IS INTERNAL LOAD VECTOR)
17)Integral ET(epsiolan transpose)*sigma*dV
    P=strain displacement vector
    Q=stress-strain deformation
    Find [K]
    (ANS    [K]=[P]T(p transpose)*[Q]*[P] )
18)
19)




REMEMBER ORDER MAY NOT BE CORRECT


        
                      APTITUDE TEST
 1)33 1/3 of     101 + 296 is
                (ans 1200) check
 2)0.625= ?     (ans 27/40)
 3)One ship goes along the stream direction 28 km and in opposite
   direction 13 km in 5 hrs for each direction.What is the velocity
   of stream?
                (ans 1.5 kmph)
 4)Cubic root of 3375=?
                (ans 15)
 5)2020201-565656=?
                (ans 1454545)
 6)CHAIRS PROBLEM
                5 chairs=9 tables,12 tables = 7 stools likethat- - - 
                (ans is 80Rs)
 7)One clock ringes 7 O'clock in 7 sec.In how many seconds it will
   ring 10 O'clock.
                (ans 10.5 sec)
 8)One watch is showing 30 past 3 .What is the angle between minutes &
   hours hand?
                (ans 75 degrees)
 9)The average of 4 consecutive even numbers is 27. What is the largest
   number?
                (ans 30)
 10) 25 stations ,24 stations are inbetween- - - - -
     how many tickets should be required.
                (ans 25*24=600)PUZZLES TO PUZZLE YOU "S.DEVI"PROB 24
 11)One ball was dropped from 8ft height and every time it goes half
    of the height. How much distance it will travell before coming to 
    rest.
                 (ans 24 approximately)
 12)Two trains are travelline at equilateral .Train A is travelling
    in the direction of earths spin.Other train B is travelling in
    opposite direction of earths spin.Which trains wheels will wear
    first?and why?
        (ans TRAIN B .Because of less centrifugal force.)
        




                


        C QUESTIONS:WHAT IS THE OUT PUT FOR FOLLOWING PROGRAMMS
1)main()
{
char a[2];
*a[0]=7;
*a[1]=5;
printf("%d",&a[1]-a)
ANS:
   ans may be 1.(illegal initialization)
2)
#include<stdio.h>
main(){
char a[]="hellow";
char *b="hellow";
char c[5]="hellow";
printf("%s %s %s ",a,b,c);
printf(" ",sizeof(a),sizeof(b),sizeof(c));
}
(ans is     hellow,hellow,hellow
              6,2,5   )
3)
#include<stdio.h>
main()


float value=10.00;
printf("%g %0.2g %0.4g %f",value,value,value,value)
}
(ans is 10,10,10,10.000000)
4)
#include<stdio.h>
void function1;
int i-value=100;
main()
{
 i-value=50;
function1;
printf("i-value in the function=",i-value);
printf("i-value after the function=",i-value);
}
printf("i-value at the end of main=",i-value);
functioni()
i-value=25;




THIS IS ROUGH IDEA OF THE PROGRAM
   ANS ARE
1)i-value in the function=25;
2)i-value after the function=50;
3)i-value at the end of the main=100;


5)
  main()
{
funct(int n);
{
switch(n)
  case1:
        m=2;
                break;
  case2:
        m=5;
                break;
  case3:
        m=7;
                break;
  default: 
        m=0;
}
THIS IS ROUGH IDEA:
    (ANS:Out put is m=0) 

Friday, July 8, 2011

Aptitude questions and answer Bluestar


1.What would be the output of the following program.
                        #include
                        main()
                        {
                            extern int a;
                            printf("%d",a);;
                        }
                        int a=20;
           (a) 20                               (b) 0                           (c) garbage value                           (d) error!!

2.What would be the output of the following program.
                        main()
                        {
                            int a[5]={2,3};
                            printf("\n %d %d %d",a[2],a[3],a[4]);
                        }
          (a) garbage value                   (b) 2   3   3                   (c) 3   2   2                   (d) 0   0   0

3.What would be the output of the following program.
                        main()
                        {
                           inti=-3,j=2,k=0,m;
                            m=++i&&++j||++k;
                            printf("\n %d %d %d %d",i,j,k,m);
                        }
           (a) -2   3   0   1                   (b) -3   2   0   1                   (c) -2   3   1   1                   (d) error

4.What would be the output of the following program.
                        main()
                        {
                             int a,b;
                            a=sumdig(123);
                            b=sumdig(123);
                            printf("%d %d",a,b);
                        }
                        sumdig(int n)
                        {
                            static int s=0;
                            int d;
                            if(n!=0)
                            {
                                d=n%10;
                                n=(n-d)/10;
                                s=s+d;
                                sumdig(n);
                            }
                            else   return(s);
                        }
           (a) 12    6                           (b) 6    12                           (c) 3    15                           (d) error

5.What would be the output of the following program.
                        #define CUBE(x) (x*x*x)
                        main()
                        {
                            int a,b=3;
                            a=CUBE(b++);
                            printf("\n %d %d",a,b);
                        }
           (a) 64    4                       (b) 27    4                       (c) 27    6                           (d) 64    6

6.What would be the output of the following program.
                        main()
                        {
                            const int x=get();
                            printf("%d",x);
                        }
                        get()
                        {
                            return(20);
                        }
           (a) 20                           (b) garbage value                           (c) error                           (d) 0

7.A function has this prototype     void f1(int **x),
                       How will you call this function?
          (a) int **a;                (b) int a;                (c) int *a;                        (d) int a=5;
               f1(a);                         f1(&a);                 f1(&a);                           f1(&&a);           

8.pointout the error, if any, in the for loop
                        main()
                        {
                            int l=1;
                            for(;;)
                            {
                                printf("%d",l++);
                                if(l>10)
                                     break;
                            }
                        }
   (a) The condition in the for loop is a must                               (b) The two semicolons should be dropped
   (c) The for loop should be replaced by awhile loop                (d) No error

9.Can the following piece of code be executed?
                        int main(void)
                        {
                            char strA[10]="compile",strB[10];
                            my_strcpy(strB,strA);
                            puts(strB);
                        }
                        char * my_strcpy(char *destination,char *source)
                        {
                            char *p=destination;
                            while(*source!='\0')
                            {
                                *p++=*source++;
                            }
                            *p='\0';
                            return destination;
                        }
   (a) Compilation will only give a warning but will proceed to execute & will display "compile"
   (b) The compilation error char *(char *,char *) differs in levels of indirection from 'int()' will occur
   (c) Yes & it will print compile on the screen                                   (d) None of the above

10.What would be the output of the following program.
                        #include
                        main()
                        {
                            char str[5]="fast";
                            static char *ptr_to_array = str;
                            printf("%s",ptr_to_array);
                        }
   (a) Compilation will only give a warning but will proceed to execute & will display "fast"
   (b) display "fast" on screen                  (c) will give a compilation error                     (d) none of the above

11.What would be the output of the following program.
                        main()
                        {
                            int num,*p;
                            num=5;
                            p=#
                            printf("%d",*p);
                        }
           (a) 6                       (b) 5                           (c) junk value                       (d) compilation error

12.What would be the output of the following program.
                        main()
                        {
                            int a[3]={2,3,4};
                            char *p;
                            p=a;
                            p=(char *)((int *)p+1);
                            printf("%d",p);
                        }
           (a) 2                           (b) 0                           (c) junk value                           (d) 3

13.What would be the output of the following program.
                        main()
                        {
                            int i=10;
                            fn(i);
                            printf("%d",i);
                        }
                        fn(int i)
                        {
                            return ++i;
                        }
           (a) 10                           (b) 11                           (c) 12                           (d) Compilation error

14. What will be the value of i & j after the loop isexecuted?
                         for(i=0,j=0;i<5,j<25;i++,j++)
          (a) i=4,j= 24                  (b) i=24,j= 24                  (c) i=25,j= 25                  (d) i=5,j=25

15.What would be the output of the following program.
                        main()
                        {
                            int i,j;
                            i=10;
                            j=sizeof(++i);
                            printf("%d",i);
                        }
           (a) 11                           (b) 10                           (c) 4                           (d) compilation error

16.What would be the output of the following program.
                        main()
                        {
                            int i=7;
                            printf("%d\n",i++*i++);
                        }
           (a) 49                           (b) 56                           (c) 72                           (d) compilation error

17. What will the printf print?
                        main()
                        {
                            char *p,*f();
                            p=f();
                            printf("f() returns:%s\n",p);
                        }
                        char *f()
                        {
                            char result[80];
                            strcpy(result,"anything will do");
                            return (result);
                        }
           (a) f() returns: anything will do                           (b) f() returns:
           (c) compilation error                                         (d) The printf statement is not going to be executed

18.How many times the following program would print 'Jamboree'?
                        main()
                        {
                            printf("\n Jamboree");
                            main();
                        }
           (a) infinite number of times                                   (b) 32767 times
           (c) 65535 times                                                   (d) till the stack does not overflow

19.Notice the error in the default statement in the code snippet below.Will it give a compilation error?
                        main()
                        {
                            int a=10,j;
                            j=fn(a);
                            switch(j)
                            {
                                case 30: printf("the value is 30");
                                              break;
                                case 50: printf("the value is 50");
                                              break;
                                default:printf("the value is not 30 or 50");
                            }
                        }
                        fn(int a)
                        {
                            return (++a);
                        }
          (a)  Will display "the value is 30"                      (b) Will display "The value is not 30 or 50"
          (c) Yes a compilation error would happen
          (d) No compilation errors but there will be no output on the screen

20.What would be the output of the following program.
                        main()
                        {
                            struct emp
                            {
                                char name[20];
                                int age;
                                float sal;
                            };
                            struct emp e = {"tiger"};
                            printf("\n %d %f",e.age,e.sal);
                        }
          (a) 0    0.000000               (b) Garbage values               (c) Error               (d) none of the above
great blogger is comming up with new updates on Mysore city Local city bus numbers and routes -------------------------------

Amazing:)

Amazing:)