Custom Search

Friday 7 December 2012

Mahindra Satyam Aptitude Paper Set-1


SATYAM
PAPER 1--GENERAL APTITUDE
Directions:Each question given below consists of a word, followed by four words or
phrases. Choose the lettered word or phrase that is most nearly opposite in meaning to
the word in the question.
ANTONYMS
1. Disregarded
(a) heed
(b) hopeful
(c) evade
(d) dense
Ans. (a)
2. Obviate
(a) becloud
(b) necessitate
(c) rationalize
(d) execute
Ans. (b)
3. Superficial
(a) profound
(b) exaggerated
(c) subjective
(d) spirited
Ans. (a)
4. Abide
(a) retract an offer
(b) refuse to endure
(c) shield from harm
(d) exonerate
Ans. (b)
5. Acerbity
(a) noteworthiness
(b) hypocrisy
(c) mildness of temperament
(d) lack of anxiety
Ans. (c)
Directions: Each question or group of questions is based on a passage or set of
conditions. For each question, select the best answer choice given.
Quesitions 6-9
In a certain society, there are two marriage groups, Red and Brown. No marriage is
permitted within a group. On marriage, males become part of their wife's group: women
remain in their own group. Children belong to the same group as their parents. Widowers
and divorced males revert to the group of their birth. Marriage to more than one person at
the same time and marriage to a direct descendant are forbidden.
6. A Brown female could have had
I. a grandfather born Red
II. a grandmother born Red
III. two grandfathers born Brown
(a) I only
(b) II only
(c) I and II only
(d) II and III only
(e) I,II and III
Ans. (c)
7. A male born into the Brown group may have
(a) an uncle in either group
(b) a Brown daughter
(c) a Brown son
(d) a son-in-law born into the Red group
(e) a daughter-in-law in the Red group
Ans. (a)
8. Which of the following is not permitted under the rules stated?
(a) A Brown male marrying his father's sister
(b) A Red female marrying her mother's brother
(c) A man born Red, who is now a widower, marrying his brother's widow
(d) A widower marrying his wife's sister
(e) A widow marrying her divorced daughter's ex-husband
Ans. (b)
9. If widowers and divorced males retained the group they had upon marrying, which of
the following would have been permissible?(Assume no previous marriages occurred)
(a) A woman marrying her dead sister's husband
(b) A woman marrying her divorced daughter's ex-husband.
(c) A widower marrying his brother's daughter
(d) A woman marrying her mother's brother, who is a widower
(e) A divorced male marrying his ex-wife's divorced sister
Ans. (d)
Questions 10-13
Tom wishes to enroll in Latin AA, Sanskrit A, Armenian Literature 221, and Celtic
Literature 701.
Latin AA meets five days a week, either from 9 to 11 A.M or from 2 to 4 P.M.
Sanskrit A meets either Tuesday and Thursday from 12 noon to 3 P.M., or Monday,
Wednesday, and Friday
from 10 A.M to 12 noon.
Armenian Literature 221 meets either Monday, Wednesday, and Friday from 12:30 to 2
P.M., or Tuesday and Thursday
from 10:30 A.M to 12:30 P.M
Celtic Literature 701 meets by arrangement with the instructor, the only requirement being
that it meet for one four-hour session or two two-hour sessions per week, between 9A.M
and 4 P.M from Monday to Friday, beginning on the hour.
10. Which combination is impossible for Tom?
(a) Latin in the morning, Sanskrit on Tuesday and Thursday, and Armenian Literature on
Monday, Wednesday, Friday
(b) Latin in the afternoon and Sanskrit and Armenian Literature on Monday, Wednesday,
and Friday.
(c) Latin in the afternoon, Sanskrit on Monday, Wednesday, and Friday,and Armenian
Literature on Tuesday and Thursday
(d) Latin in the morning and Sanskrit and Armenian Literature on Monday, Wednesday,
and Friday
(e) Latin in the afternoon, Armenian Literature on Monday, Wednesda and Friday, and
Celtic Literature on Tuesday
Ans. (d)
11. Which of the following gives the greatest number of alternatives for scheduling Celtic
Literature, assuming that all other courses
(a) Latin in the afternoon and Armenian Literature Monday, Wednesday and Friday
(b) Sanskrit on Tuesday and Thursday and Armenian Literature on Monday, Wednesday
and Friday
(c) Latin in the afternoon and Armenian Literature Tuesday and Thursday
(d) Latin in the morning and Sanskrit on Tuesday and Thursday
(e) Sanskrit on Monday, Wednesday, and Friday. and Armenian Literature on Tuesday and
Thursday
Ans. (a)
12. If the Celtic instructor insists on holding at least one session on Friday, in which of the
following can Tom enroll?
(I) Armenian Literature on Monday, Wednesday, and Friday
(II) Sanskrit on Monday, Wednesday, and Friday
(a) I only
(b) II only
(c) both I and II
(d) I or II but not both
(e) neither I nor II
Ans. (d)
13. Which of the following additional courses, meeting as indicated, can Tom take?
(a) Maths--Monday, Wednesday, and Friday from 10A.M to 12 noon
(b) French--Monday, Wednesday, and Friday from 11A.M to 12:30 P.M
(c) English--Tuesday and Thursday from 2 to 4 P.M
(d) Japenese--Tuesday and Thursday from 1 to 3 P.M
(e) Old Norse-Icelandic--Monday only from 12 to 3 P.M
Ans. (b)
Questions 14-18
(1) Ashland is north of East Liverpool and west of Coshocton
(2) Bowling Green is north of Ashland and west of Fredericktown
(3) Dover is south and east of Ashland
(4) East Liverpool is north of Fredricktown and east of Dover
(5) Fredricktown is north of Dover and west of Ashland
(6) Coshocton is south of Fredricktown and west of Dover
14. Which of the towns mentioned is furthest to the northwest ?
(a) Ashland
(b) Bowling Green
(c) Coshocton
(d) East Liverpool
(e) Fredericktown
Ans. (b)
15. Which of the following must be both north and east of Fredricktown?
(I) Ashland
(II) Coshocton
(III) East Liverpool
(a) I only
(b) II only
(c) III only
(d) I and II
(e) I and III
Ans. (e)
16. Which of the following towns must be situated both south and west of at least one
other town?
(a) Ashland only
(b) Ashland and Fredricktown
(c) Dover and Fredricktown
(d) Dover,Coshocton and Fredricktown
(e) Dover,Coshocton and East Liverpool
Ans. (d)
17. Which of the following statements, if true, would make the information in the numbered
statements more specific?
(a) Coshocton is north of Dover
(b) East Liverpool is north of Dover
(c) Ashland is east of Bowling Green
(d) Coshocton is east of Fredericktown
(e) Bowling Green is north of Fredericktown
Ans. (a)
18. Which of the numbered statements gives information that can be deduced from one or
more of the other statement?
(a) (1)
(b) (2)
(c) (3)
(d) (4)
(e) (6)
Ans. (c)
Questions 19-22
Spelunkers International offers exploring tours in eight caves: Abbott, Benny, Caeser,
Dangerfield, Ewell, Fields, Guinness, and Hope
(1) Class 1 spelunkers may not attempt cave Ewell, Fields or Hope
(2) Class 2 spelunkers may not attempt Hope
(3) Class 3 spelunkers may attempt any cave
(4) Cave Caesar may be attempted only by spelunkers who have previously explored cave
Benny
(5) Cave Fields may be attempted only by spelunkers who have previously explored cave
Ewell
(6) Only two of caves Benny, Caeser, Ewell, Fields, and Hope may be attempted by any
explorer in a single tour
19. A class 2 spelunker who has previously explored cave Ewell may be restricted in
choosing a tour by which rule(s)?
(I) Rule(4)
(II) Rule(5)
(III) Rule(6)
(a) I only
(b) II only
(c) I and III only
(d) II and III only
(e) I, II and III
Ans. (c)
20. In how many different ways may a class 1 spelunker who has never explored any of the
eightcaves before set up a tour of three caves, if she wishes to explore caves Abbott and
Caesar?
(a) 2
(b) 3
(c) 4
(d) 5
(e) 6
Ans. (b)
21. What is the maximum number of caves that a class 3 spelunker who has previously
explored only cave Benny may include
in a single tour?
(a) 4
(b) 5
(c) 6
(d) 7
(e) 8
Ans. (b)
22. If x + y = 3 and y/x= 2 then y = ?
(a) 0
(b) 1/2
(c) 1
(d) 3/2
(e) 2
Ans. (e)
23. How many squares with sides 1/2 inch long are needed to cover a rectangle that is 4 ft
long and 6 ft wide
(a) 24
(b) 96
(c) 3456
(d) 13824
(e) 14266
24. If a=2/3b , b=2/3c, and c=2/3d what part of d is b/
(a) 8/27
(b) 4/9
(c) 2/3
(d) 75%
(e) 4/3
Ans. (b)
25. Successive discounts of 20% and 15% are equal to a single discount of
(a) 30%
(b) 32%
(c) 34%
(d) 35%
(e) 36
Ans. (b)
26. The petrol tank of an automobile can hold g liters.If a liters was removed when the tank
was full, what part of the full tank was removed?
(a)g-a
(b)g/a
(c) a/g
(d) (g-a)/a
(e) (g-a)/g
Ans. (c)
27.If x/y=4 and y is not '0' what % of x is 2x-y
(a)150%
(b)175%
(c)200%
(d)250%
Ans. (b)
28.If 2x-y=4 then 6x-3y=?
(a)15
(b)12
(c)18
(d)10
Ans. (b)
29.Ifx=y=2z and xyz=256 then what is the value of x?
(a)12
(b)8
(c)16
(d)6
Ans. (b)
30. (1/10)18 - (1/10)20 = ?
(a) 99/1020
(b) 99/10
(c) 0.9
(d) none of these
Ans. (a)
31. 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)
32. 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)
33. 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)
34. 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)
35. 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)
SOME QUESTIONS WHEREIN TWO STATEMENTS ARE GIVEN ARE ALSO THERE WHERE
YOU HAVE TO TELL WHICH STATEMENT IS CORRECT
SOME QUESTIONS ALSO APPEARED FROM THE BARRON'S GMAT GUIDE.
PAGE NO. 439 PASSAGE AND QUESTIONS 1 TO 9
PAGE NO. 440-441
PAGE 442 PASSAGE 2
ALSO REFER TO BARRON'S GRE BOOK FOR ADDITIONAL ANALYTICAL QUESTIONS.
PAPER 2--GENERAL AWARENESS
1. Who is the father of computers
2. Expand HTML,DMA,FAT,LAN,WAN,FDDetc
3. Which was intel's first microprocessor
4. Convert 1024 (in decimal) to octa and hexadecimal form
5. First microprocessor was
(a) 8085
(b) 8088
(c) 8086
(d) 80487
6. Give the name of a processor produced by mortorola?
7. What is the full form of WindowsNT ?
8. What is the difference between 8087 and 8086
BESIDES THIS QUESTIONS WERE ALSO BASED ON IBM PC CLONES, BASIC QUESTIONS
ON GUI
SIMPLE PROGRAMS LIKE FINDING FACTORIALS, LARGEST OF THREE NUMBERS ETC
HAVE ALSO BEEN ASKED IN THE PAST.
Read more

Thursday 29 November 2012

Infosys Aptitude Paper Set-10


1. 2 Marks            
When Arthur is as old as his father Hailey is now, he shall be  5 times as old as his son Clarke is now. By then, Clarke will be 8 times older than Arthur is now. The combined ages of Hailey and Arthur are 100  years. How old is Clarke ?


2.  2 Marks
I have one orange glass containing orange juice and another  white glass containing apple juice. I take 50 ml of orange juice and mix it with apple juice in the white glass. Then I take 50 ml of this mixture and transfer it back to the orange glass. If you compare amount of apple juice in the orange glass and
amount of orange juice in the white glass which is more than the other
and by how much ?


3. 3 Marks
The seven digits in this subtraction problem are  0,1,2,3,4,5 and 6.
Each letter represents the same digit whenever it occurs.
D A D C B
E B E G
--------------------
B F E G
--------------------
What digit is represented by each letter ?


4. 4 Marks
The Jones have named their four boys after favourite  relatives; their friends, the Smiths, have done the same thing with their three boys. One of the families has twin boys. From the following clues, can you determine the families of all seven children and their ages ?
i) Valantine is 4 years older than his twin brothers.
ii) Winston, who is 8, and Benedict are not brothers. They are  each named after a grandfather.
iii) Briscoe is two years younger than his brother Hamilton, But three years older than Dewey.
iv) Decatur is 10 years old.
v) Benedict is 3 years younger than Valentine; they are not related.
vi) The twins are named for uncles.


5. 4 Marks
Motorboat A leaves shore P as B leaves Q; they move  across the lake at a constant speed. They meet first time 600 yards from P. Each returns from the opposite shore without halting, and they meet 200 yards from Q. How long is the lake ?


6. 4 Marks
Fanta, Pepsi and Citra often eat dinner out.
a) Each orders either coffee or tea after dinner.
b) If Fanta orders coffee, then Pepsi orders the drink that Citra orders.
c) If Pepsi orders coffee, then Fanta orders the drink that Citra does not order.
d) If Citra orders tea, then Fanta orders the drink that Pepsi orders.
Which person/persons always orders the same drink after dinner ?


7. 6 Marks
On the Island of imperfection there is a special road, Logic Lane, on which the houses are usually reserved for the more mathematical inhabitants.
Add, Divide and Even live in three different houses on this road (which has houses numbered from 1-50). One of them is a member of the Pukka Tribe,
who always tell the truth; another is a member of the Wotta Tribe, who never
tell the truth; and the third is a member of the Shalla Tribe, who make statements which are alternately true and false, or false and true.
They make statements as follows :
ADD :
1 The number of my house is greater than that of Divide's.
2 My number is divisible by 4.
3 Even's number differs by 13 from that of one of the others.
DIVIDE :
1 Add's number is divisible by 12.
2 My number is 37.
3 Even's number is even.
EVEN :
1 No one's number is divisible by 10.
2 My number is 30.
3 Add's number is divisible by 3.
Find to which tribe each of them belongs, and the number of  each of their  houses.


8. 8 Marks
The names of the inhabitants of Walkie Talkie Land sound  strange to the visitors, and they find it difficult to pronounce them, due to  their length and a few vowel sounds they contain. The Walkie Talkie  guide is discussing the names of four inhabitants - A,B,C and D. Their names each contain upto eight syllables, although none of the four names contain the same number. Two of the names contain no vowel sounds; one contains one vowel sound; and one contains two vowel sounds. From the Guide's statements below, determine the number of
syllables and vowel sounds in each of the four Walkie Talkie names :
i) The one whose name contains two vowel sounds is not A.
ii) C's name does not contain more than one vowel sound or fewer than seven syllables.
iii)The name with seven syllables does not contain exactly one vowel sound.
iv) B and C do not have names with the same number of vowel sounds.
v) Neither the name with five syllables nor the name with seven syllables
contains more than one vowel sound.
vi) Neither the name with six syllables, nor the B's name, contains two vowel sounds.


10. 8 Marks
Two identical twins have a very unusual characteristic. One tells nothing but lies on Mondays, Wednesdays and Fridays, and tells nothing but the truth all other days. The other tells nothing but lies on Tuesdays, Thursdays and Saturdays, and tells nothing but the truth all other days. On Sundays both children speak the truth.

1) Which of the following statements can be deduced from the information presented ?
i) If it is Sunday, the twins will both say so.
ii) If it is not Sunday,one twin will give the correct day  and the other will lie about everything.
iii)On any given day, only one twin will give his correct  name.
a) i only
b) i and ii only
c) i and iii only
d) ii and iii only
e) i,ii and iii

2) According to the information presented, which of the following
conversations will be impossible.
a) Twin A : "Today you are a lier"
    Twin B : "You are telling the truth"
b) Twin A : "Today you are a lier"
    Twin B : "Today I am a truthteller"
c) Twin A : "Tommorow I shall be a lier"
    Twin B : "That's correct"
d) Twin A : "Tommorow you will be a lier"
    Twin B : "Today you are a truthteller"
e) Twin A : "Yesterday we were both truthtellers"
    Twin B : "You are lying"
3) Assume that the twins followed a different set of rules, so that on a given day both told only the truth while next day both only lied, alternating days of truth telling and lying. Under these rules,which
of the following conversations would be possible ?
a) Twin A : "Today you are a lier"
    Twin B : "That is correct"
b) Twin A : "Today you are a lier"
    Twin B : "That is not so"
c) Twin A : "Tommorow we will be liers"
    Twin B : "Yesterday we were truthtellers"
d) Twin A : "Tommorow we will be liers"
    Twin B : "You are 1 year older than I am"
e) Twin A : "We always tell the truth"
    Twin B : "We some times tell the truth"

4) If the twins are heard saying the following on the same day, which choice presents a correct statement ?
Twin A : "It is Sunday Today"
Twin B : "Yesterday was Sunday"
Twin A : "it is summer season now"
a) it is a summer sunday
b) it is a summer monday
c) it is Monday but not summer
d) it is Sunday but not summer
e) it is impossible to determine whether it is Sunday or Monday.
Read more

Infosys Aptitude Paper Set-9


1. int a=2;
f1(a++);
}
f1(int c)
{
printf("%d", c);
}
1)fallacy
f()
{
int a;
void c;f2(&c,&a);


2)a=0;
b=(a=0)?2:3;
a) What will be the value of b? why
b) If in 1st stmt a=0 is replaced by -1, b=?
c) If in second stmt a=0 is replaced by -1, b=?


3)char *a[2]
int const *p;
int *const p;
struct new { int a;int b; *var[5] (struct new)


4)f()
{
int a=2;
f1(a++);
}
f1(int c)
{
printf("%d", c);
}
c=?


5)f1()
{
f(3);}
f(int t)
{
switch(t);
{
case 2: c=3;
case 3: c=4;
case 4: c=5;
case 5: c=6;
default: c=0;}
value of c?


6)Fallacy
int *f1()
{
int a=5;
return &a;
}
f()
int *b=f1()
int c=*b;
}


7)a)Function returning an int pointer
b)Function ptr returning an int ptr
c)Function ptr returning an array of integers
d)array of function ptr returning an array of integers
(See Scham series book)


8)fallacy
int a;
short b;
b=a;


9)Define function ?Explain about arguments?

10)C passes By value or By reference?

11)Post processed code for
abc=1;
b=abc1; (1 or 2 blank lines are given)
strcpy(s,"abc");
z=abc;


12)difference between my-strcpy and strcpy ?check

13)f()
{
int *b;
*b=2;
}


14)Function which gives a pointer to a binary trees const an integer value
at each code, return function of all the nodes in binary tree.(Study)Check


15)Calling refernce draw the diagram of function stack illustrating the
variables in the -----then were pushed on the stack at the point when
function f2 has been introduced
type def struct
{ double x,double y} point;
main( int argc, char *arg[3])
{double a;
int b,c;
f1(a,b);}
f1(double x, int y)
{
point p;
stack int n;
f2(p,x,y)}
f2(point p, double angle)
{ int i,j,k,int max)
}
Read more

Tuesday 27 November 2012

Unbelievable Things You Probably Missed This Year


You may not have seen all of the year's most impressive milestones and visuals.


A participant demonstrates his skills using a water jet pack during a recreational sporting competition at an entertainment centre near the village of Pleshchenitsy, 70 km (44 miles) northeast of Minsk, August 4, 2012, and you spent this whole caption wondering how water jet packs exist and why you don't have one.


The sun and moon aligned over the earth in a rare astronomical event in May - an annular eclipse that dimmed the skies over parts of Asia and North America, briefly turning the sun into a blazing ring of fire, which is AWESOME, RIGHT??


In this image provided by Brian Buckland, 138 skydivers form a massive snowflake formation Friday, Aug. 3, 2012 over Ottawa, Ill. It took them three days and fifteen tries to get it right.


Tupac Shakur rose from the dead at Coachella.



On June 5th, NASA captured this shot of Venus traveling across the sun. The last transit was in 2004 and the next pair of events will not happen again until the years 2117 and 2125.


Hundreds of people lined the streets and threw tomatoes at each other and played in tomato pulp in the annual La Tomatina festival in Buñol, proving that fun still grows on trees, even after the iPad.


Earlier this year, scientists finally discovered the Higgs Boson, also known as "The God particle." The Higgs boson fills a critical hole in the Standard Model of Physics, and could potentially explain why all matter has mass. No one cared.


Manteo Mitchell of the United States ran his leg of the 4x400 meters in 45.6 seconds, which is impressive, until you find out that he broke his left fibula during the run and kept going anyway, because he didn't want to let his teammates down. That's unbelievable. 200 meters on a broken fibula. Thanks to his efforts, the team qualified for the next round.



NASA's Voyager 1 is approaching the Heliopause, the boundary between our solar system and interstellar space. It will become the first manmade object to leave our solar system.


The Supermoon happened in early May. It's an astronomical event where a new (or full) Moon coincides with the point in the Moon's elliptical orbit where it is closest to Earth, creating the illusion of a larger-than-normal size, and it's definitely not filled with super villains.
Read more

Infosys Aptitude Paper Set-8


1. Number of null pointers in any binary tree = n+1

2. max(t1,t2,...tn) = pipelining

3. 50% -DBETXXXXXX - density

4. print (Head(T))
Traverse(left(T))
print (Head(T))
Traverse(right(T)) - ans: none of the above


5. CPU scheduling based questions

11. if even x/2
else p(p(3x+1))
2^k + 1: 3 . 2^(k-1) clarify this with sans

6. Compiler - related Qn.

7. LAN frames - ? related Qn.

8. sliding window protocol

9. kernel mode - deallocate resource

10. Combinatorics related

11. priority scheduling

12. cobegin
begin x = y; x= x+1; y= x
begin x =y; z= z+1; y= z
coend
ans. Number of values possi = 2

13. 2 bits flip / 2 bits exchange
ans : the word with one '1'

14. any addr
K^+ v(a) + 2I - 2a
clarify with SANS.

15.Least no. when divide by [7 gives remainder 6,6gives 5,5 gives 4 and
soon ans;419

16,What compilation do (ans source code to obj)

17.Artficial language is provided which of the language (Lisp) check

18. 241 change its equivalent octal ?

19. for cube and sphere 3 views are similarly draw one such figure?

20. Write a program to exchange two variaables without temp

21. Fortran cannot have value by reference

22. 4,6,8,__

23. success is to failure, joy is to

24. MEANING OF JOLLY?

25. opposite to essential?

26."Raw" means

27. To be good "Wrestler " one should have?

28. "Command" opposite?

29. genuine opposite?

30. Sum of two consecutive nos is 55, larger one is?

31. A person goes 4/5 of his usual speed reaches 10min lateto his destinaton, time taken?

32. 80% pass in english, 70%pass in maths , 10%fail in both , 144 pass in
both . How many all appeared to the test?

33. To get a parabola if you cut a section of?

34. Bird is flying 120km/hr b/w B to R. two trians at B to R at 60 kmph
The distance trvelled by the bird before it is killed.Ans.120

35. meaning of inert
Read more

Infosys Aptitude Paper Set-7


1. 9 cards are there. u have to arrange them in a 3*3 matrix.
cards are of 4 colors.they are red,yellow,blue,green.
conditions for arrangement: one red card must be in first row
or second row.2 green cards should be in 3rd column.Yellow
cards must be in the 3 corners only. Two blue cards must be in
the 2nd row. Atleast one green card in each row.
Solution:
Yello Red Gren
Blu Blu Gren
Yello Gren Yello


2. 4 cards are placed on a table, each card has two colors. U
don't know the color of the back side of eachcard.4 persons A
B C and D are sitting on the table before the cards. They can
see Red, Green Red and blue .Out of the 4 poeple 2 always lie.
They see the color on the reverse side and give the following
comment
A: Yello/green
B: Neither Blue/nor Green
c: Blue/Yello
D: Blue/ Yello
find out the color on the other side of the 4 cards.

3. A family I know has several children. Each boy in this
family has as many sisters as brothers but each girl has
twice as many brothers as sisters. How many brothers
and sisters are there?
ans: 4 boys and 3 girls.


4. No. of animals is 11 more than the no. of birds. If the
no. of birds were the no. of animals and no. of animals
were the no. of birds( ie., interchanging no.s of animals
and birds.), the total no. of legs get reduced by one fifth
(1/5). How many no. of birds and animals were there?
ans: birds:11,animals:22


5. In a soap company a soap is manufactured with 11 parts.
For making one soap you will get 1 part as scrap. At the
end of the day u have 251 such scraps. From that how many
soaps can be manufactured? ans: 22 + 2+ 1 = 25.
4. 2 * * |
3 * * | No. 7 does not occur in this
---------------- |
5 * * | multiplication.
* 4 * |
* * 3 | Find the product.
---------------- |
* * * * * |
---------------- |

ans 2 8 1
3 2 2
-----
5 6 2
5 6 2 0
8 4 3 0 0
---------
9 0 4 8 2
---------


6. There is a 5digit no. 3 pairs of sum is eleven each.
Last digit is 3 times the first one.
3 rd digit is 3 less than the second.
4 th digit is 4 more than the second one.
Find the digit.
ans : 25296.


7. There are five thieves, each loot a bakery one after the
other such that the first one takes 1/2 of the total no.
of the breads plus 1/2 of a bread. Similarly 2nd, 3rd,4th
and 5fth also did the same. After the fifth one no. of
breads remained are 3. Initially how many breads were there?
ans : 31.


8.There are some chicken in a poultry. They are fed with corn
One sack of corn will come for 9 days.The farmer decides to
sell some chicken and wanted to hold 12 chicken with him.
He cuts the feed by 10% and sack of corn comes for 30 days.
So initially how many chicken are there?


9.Two people X & Y walk on the wall of a godown in opposite
direction. They meet at a point on one side and then go
ahead. X after walking for some time, walks in opposite
direction for 15 mtrs.Then again he turns back and walks
in the original direction. What distance did Y walk before
they met again, if X walks 11 mtrs by the time Y walks
8 mtrs.

Read more

Sunday 25 November 2012

Tata Consultancy Services Aptitude Paper Set-3


his test consists of 50 questions.The Set Code for this paper is D.
1. The C language terminator is
(a) semicolon
(b) colon
(c) period
(d) exclamation mark

2. What is false about the following -- A compound statement is
(a) A set of simple statments
(b) Demarcated on either side by curly brackets
(c) Can be used in place of simple statement
(d) A C function is not a compound statement.

3. What is true about the following C Functions
(a) Need not return any value
(b) Should always return an integer
(c) Should always return a float
(d) Should always return more than one value

4. Main must be written as
(a) The first function in the program
(b) Second function in the program
(c) Last function in the program
(d) Any where in the program

5. Which of the following about automatic variables within a function is correct ?
(a) Its type must be declared before using the variable
(b) Tthey are local
(c) They are not initialised to zero
(d) They are global

6. Write one statement equivalent to the following two statements
x=sqr(a);
return(x);
Choose from one of the alternatives
(a) return(sqr(a));
(b) printf("sqr(a)");
(c) return(a*a*a);
(d) printf("%d",sqr(a));

7. Which of the following about the C comments is incorrect ?
(a) Ccommentscan go over multiple lines
(b) Comments can start any where in the line
(c) A line can contain comments with out any language statements
(d) Comments can occur within comments

8. What is the value of y in the following code?
x=7;
y=0;
if(x=6) y=7;
else y=1;
(a) 7
(b) 0
(c) 1
(d) 6

9. Read the function conv() given below
conv(int t){
int u;
u=5/9 * (t-32);
return(u);
}
What is returned
(a) 15
(b) 0
(c) 16.1
(d) 29

10. Which of the following represents true statement either x is in the range of 10 and 50 or y is zero
(a) x >= 10 && x <= 50 || y = = 0
(b) x<50 br="br">(c) y!=10 && x>=50
(d) None of these

11. Which of the following is not an infinite loop ?
(a) while(1)\{ ....}
(b) for(;;)
{
...
}
(c) x=0;
do{
/*x unaltered within the loop*/
.....}
while(x = = 0);
(d) # define TRUE 0
...
while(TRUE){
....}

12. What does the following function print?
func(int i)
{ if(i%2)return 0;
else return 1;}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);
}
(a) 3
(b) 1
(c) 0
(d) 2

13. How does the C compiler interpret the following two statements
p=p+x;
q=q+y;
(a) p=p+x;
     q=q+y
(b)p=p+xq=q+y
(c)p=p+xq;
    q=q+y
(d)p=p+x/q=q+y

For questions 14,15,16,17 use the following alternatives
a.int
b.char
c.string
d.float
14. '9'
15. "1 e 02"
16. 10e05
17. 15

18. Read the folllowing code
# define MAX 100
# define MIN 100
....
....
if(x>MAX)
x=1;
else if(xx=-1;
x=50;
if the initial value of x=200,what is the value after executing this code?
(a) 200
(b) 1
(c) -1
(d) 50

19. A memory of 20 bytes is allocated to a string declared as char *s
then the following two statements are executed:
s="Entrance"
l=strlen(s);
what is the value of l ?
(a)20
(b)8
(c)9
(d)21

20. Given the piece of code
int a[50];
int *pa;
pa=a;
To access the 6th element of the array which of the following is incorrect?
(a) *(a+5)
(b) a[5]
(c) pa[5]
(d) *(*pa + 5}

21. Consider the following structure:
struct num nam{
int no;
char name[25];
}
struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};
.....
.....
printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);
What does the above statement print?
(a) 8,9
(b) 9,9
(c) 8,8
(d) 8,unpredictable value

22. Identify the in correct expression
(a) a=b=3=4;
(b) a=b=c=d=0;
(c)float a=int b=3.5;
(d)int a; float b; a=b=3.5;

23. Regarding the scope of the varibles;identify the incorrect statement:
(a)automatic variables are automatically initialised to 0
(b)static variables are are automatically initialised to 0
(c)the address of a register variable is not accessiable
(d)static variables cannot be initialised with any expression

24. cond 1?cond 2?cond 3?:exp 1:exp 2:exp 3:exp 4;
is equivalent to which of the following?
(a)if cond 1
exp 1;
else if cond 2
exp 2;
else if cond 3
exp 3;
else exp 4;
(b) if cond 1
if cond 2
if cond 3
exp 1;
else exp 2;
else exp 3;
else exp 4;
(c) if cond 1 && cond 2 && cond 3
exp 1 |exp 2|exp 3|exp 4;
(d) if cond 3
exp 1;
else if cond 2 exp 2;
else if cond 3 exp 3;
else exp 4;

25. The operator for exponencation is
(a) **
(b) ^
(c) %
(d) not available

26. Which of the following is invalid
(a) a+=b
(b) a*=b
(c) a>>=b
(d) a**=b

27. What is y value of the code if input x=10
y=5;
if (x==10)
else if(x==9)
else y=8;
(a)9
(b)8
(c)6
(d)7

28. What does the following code do?
fn(int n,int p,int r){
static int a=p;
switch(n){
case 4:a+=a*r;
case 3:a+=a*r;
case 2:a+=a*r;
case 1:a+=a*r;}}
(a)computes simple interest for one year
(b)computes amount on compound interest for 1 to 4 years
(c)computes simple interest for four year
(d)computes compound interst for 1 year

29. a=0;
while(a<5 br="br">printf("%d\\n",a++);
How many times does the loop occurs?
(a)infinite
(b)5
(c)4
(d)6

30. How many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\\n");
(a)10
(b) 2
(c) 5
(d) None of these

31. What is incorrect among the following
A recursive function
(a) calls itself
(b) is equivalent to a loop
(c) has a termination condition
(d) does not have a return value at all

32. Which of the following go out of the loop if expn 2 becoming false
(a) while(expn 1)\{...if(expn 2)continue;}
(b) while(!expn 1)\{if(expn 2)continue;...}
(c) do{..if(expn 1)continue;..}while(expn 2);
(d) while(!expn 2)\{if(expn 1)continue;..\}

33. Consider the following program
main()
{unsigned int i=10;
while(i>=0){
printf("%u",i)
i--;}
}
How many times the loop will get executed
(a)10
(b)9
(c)11
(d)infinite

34.Pick out the add one out
(a) malloc()
(b) calloc()
(c) free()
(d) realloc()

35.Consider the following program
main(){
int a[5]={1,3,6,7,0};
int *b;
b=&a[2];
}
The value of b[-1] is
(a) 1
(b) 3
(c) -6
(d) none

36. # define prod(a,b)=a*b
main(){
int x=2;
int y=3;
printf("%d",prod(x+2,y-10)); }
the output of the program is
(a) 8
(b) 6
(c) 7
(d) None

37.Consider the following program segment
int n,sum=1;
switch(n){
case 2:sum=sum+2;
case 3:sum*=2;
break;
default:sum=0;}
If n=2, what is the value of sum
(a) 0
(b) 6
(c) 3
(d) None of these

38. Identify the incorrect one
1.if(c=1)
2.if(c!=3)
3.if(a4.if(c==1)
(a) 1 only
(b) 1&3
(c) 3 only
(d) All of the above

39. The format specified for hexa decimal is
(a) %d
(b) %o
(c) %x
(d) %u

40. Find the output of the following program
main(){
int x=5, *p;
p=&x
printf("%d",++*p);
}
(a) 5
(b) 6
(c) 0
(d) none of these

41.Consider the following C code
main(){
int i=3,x;
while(i>0){
x=func(i);
i--; }
int func(int n){
static sum=0;
sum=sum+n;
return(sum);}
The final value of x is
(a) 6
(b) 8
(c) 1
(d) 3

43. Int *a[5] refers to
(a) array of pointers
(b) pointer to an array
(c) pointerto a pointer
(d) none of these

44.Which of the following statements is incorrect
(a) typedef struct new{
int n1;
char n2;
} DATA;
(b) typedef struct {
int n3;
char *n4;}ICE;
(c) typedef union{ int n5;
float n6;} UDT;
(d) #typedef union {
int n7;
float n8;} TUDAT;
Read more

LinkWithin

Related Posts Plugin for WordPress, Blogger...