#Paper 1
COGNIZENT TECHNOLOGY SOLUTIONS (CTS)
1. Using the digits 1,5,2,8 four digit numbers are formed and the sum of all possible such numbers.
Ans: 106656
2. Four persons can cross a bridge in 3,7,13,17 minutes. Only two can cross at a time. Find the minimum time taken by the four to cross the bridge.
Ans: 20
3. Find the product of the prime numbers between 1-20.
Ans: 9699690
4. 2,3,6,7 using these numbers form the possible four digit numbers that are divisible by 4.
Ans: 8
5. Two trains are traveling at 18kmph and are 60 km apart. There is fly in the train. it flies at 80 kmph. It flies and hits the second train and then it starts to oscillate between the two trains. At one instance when the two trains collide it dies. Distance traveled by the fly when both trains collide is?
Ans: 12km
6. There are 1000 doors that are of the open-close type. When a person opens the door he closes it and then opens the other. When the first person goes he opens-closes the doors in the multiples of 1 i.e., he opens and closes all the doors. when the second goes he opens and closes the doors 2, 4 6 8 respectively. Similarly when the third one goes he does this for 3 6 9 12 15th doors respectively. Find number of doors that are open at last.
Ans:Square Numbers.
7.There are 9 balls of this one is defective. Find the minimum no. of chances of finding the defective one.
Ans:3times.
8. There are coins of Rs.5, 2,1,50p,25p,10p,5p. Each one has got a weight. Rs 5 coin weighs 20gms. Find the minimum number of coins to get a total of 196.5gms.
9.A can do a work in 8 days, B can do a work in 7 days, C can do a work in 6 days. A works on the first day, B works on the second day and C on the third day respectively that is they work on alternate days. When will they finish the work.(which day will they finish the work)
Ans: 7 7/168 days
10.A batsman scores 23 runs and increases his average from 15 to 16. find the runs to be made if he wants top inc the avg to 18 in the same match.
Ans: 39 Runs.
11.A man sells apples. First he gives half of the total apples what he has and a half apple. Then he gives half of the remaining and a half apple. He gives it in the same manner. After 7 times all are over. How many apples did he initially have.
Ans: 127 apples.
12.In a club there are male and female members. If 15 female quit then the number of females will become double the number of males. If 45 males quit no. of female becomes five times the number of males. Find the number of females.
Ans: Females:175, Males:80
13.When I was married 10 years back my wife was the sixth member of my family. Now I have a baby. Today my father was dead and I had a new baby.now the average age of my family is the same as that when I was married. Find the age of my father when I was married.
Ans: 50.
14.I and two of my friends were palying a game. For each win I get Rs 3. totally I had three wins. Player 2 got Rs9 and player 3 got Rs 12. How many games had been played?
15.A person gives a secret to two other persons in 5 minutes. How long will he take to tell the secret to 768 people?
16.There are 40 seats in a bus. People agree to share the money for the number of seats. The total money comes to 70.37. How many seats were free?
Ans: 9 seats.Rs.2.27
17.I had Rs100 and I play. If I win I will hav Rs110 and if I lose I will hav Rs90. at the end I hav 2 wins and 2 loses. How much do I have?
18. In a village, there is flood. In one village causalities were less than the other. Why?
Ans: There were better health care centres(HCC).
19. A person has Rs.100. If he wins he gains 10%. If he loses the game, he loses 10%. He wins twice and loses twice. How much he has at the end?
Ans: Always less than 100.
20. In A tribal group two groups live in different climatic conditions. Ear Sensitivity is tested and found that one has more when compared to other. What is the reason?
Ans: Depends on the physical place and condition he is living.
#Paper 2
COGNIZENT TECHNOLOGY SOLUTIONS (CTS)
1. A says " the horse is not black".
B says " the horse is either brown or grey."
C says " the hoese is brown"
At least one is telling truth and atleast one is lying. tell the colour of horse?
Answer : grey
2.A son and father goes for boating in river upstream . After rowing for 1 mile son notices the hat of his fathe falling in the river.After 5 min. he tells his father that his hat has fallen. So they turn round and are able to pick the hat at the point from where they began boating after 5min.
Tell the speed of river?
Ans...6 miles/hr
3. A+B+C+D=D+E+F+G=G+H+I=17 where each letter represent a number from 1 to 9. Find out what does letter D and G represent if letter A=4. (8 marks)
Ans. D=5 G=1
4. Argentina had football team of 22 player of which captain is from Brazilian team and goalki from European team. For remainig palayer they have picked 6 from argentinan and 14 from european. Now for a team of 11 they must have goalki and captain so out of 9 now they plan to select 3 from rgentinian and 6 from European. Find out no. of methods
avilable for it. (2 marks)
Ans : 160600( check out for right no. 6C3 * 14C6)
5. Three thives were caught stealing sheep, mule and camel.
A says " B had stolen sheep "
C says " B had stolen mule"
B says he had stolen nothing.
The one who had stolen horse is speaking truth. the one who had stolen camel is lying . Tell who had stolen what? (5 marks)
Ans. A- camel ;B- mule ;C- horse
6.A group of friends goes for dinner and gets bill of Rs 2400 . Two of them says that they have forgotten their purse so remaining make an extra contribution of Rs 100 to pay up the bill. Tell the no. of person in that group. (3 marks)
Ans - 8 person
7. In acolony there are some families. Each of them have children but different in numbers.Following are conditions:
A) No of adult no of sons no of daughters no of families.
B) Each sister must have atleast one brother and should have at the most 1 sister.
C) No of children in one family exceeds the sum of no of children in the rest families.
Tell the no of families.(5 marks)
Ans : 3 families
8.There are 6 people W,H,M,C,G,F who are murderer , victim , judge , police, witness, hangman. There was no eye witness only circumtancial witness. The murderer was sentenced to death.
Read following statement and determine who is who.
1 . M knew both murderer and victim.
2. Judge asked C to discribe murder incident.
3. W was last to see F alive.
4. Police found G at the murder site.
5 H and W never met.
( 8 marks)
The above mentioned questions are of 37 marks rest I don't rememberas they had no of condition. One which mentions about hundustani music Gazals ect. is tobe solved through venn diagram. Its of 8
marks. and another was grading 5 student which was of 5 marks.
*******************************************************************
**These are some of the important ques..that are asked
frequently
->Why paging is used ?
->Which is the best page replacement algo and Why ?
->WHat is software life cycle ?
->How much time is spent usually in each phases and why ?
->What is testing ?
->Which are the different types of testing ?
->Which are the different phases in Software life cycle (asked again)
->Why is analysis and testing phases very important ?
->Why networks are layered ? What is the advantage of that ?
->How many layers are there in OSI ? Why is it called OSI model ?
->network topologies ?
->Which are the different network toplogies ?
->an example of bus type network.
->What is the Bandwidth of ethernet ?
->Explain the advantage and disadvantage of ethernet ?
->Which is the protocol used in ethernet. (CSMA/CD) Why is it called so ?
->What is the advantage of Ring network ?
->Compare it with ethernet.
->What is inheritance, encapsulation etc.
->If there are too many page faults what is the problem?
->To ensure one pgm. doesnt corrupt other pgm. in a Multi-pgm. enviornment
what you should do?
->Which one you will use to implement critical section? Binary Semaphore
-> Which one is not needed for Multi-pgm. enviornment?
options are: virtual memory,security,time sharing,none of the above.
->Which one is not done by Data link layer ? bit stuffing, LRC,CRC,parity check
-> Which one is not related to Data link layer?
-> Which one is not suitable for client-server application? tcp/ip,message passing,rpc,none of the above.
->Term stickily bit is related to a)kernel b)undeletable file c) d)none
->semaphore variable is different from ordinary variable by ?
->unix system is
a)multi processing
b)multi processing ,multiuser
c)multi processing ,multiuser,multitasking
d)multiuser,multitasking
->x.25 protocol encapsulates the follwing layers
a)network
b)datalink
c)physical
d)all of the above
e)none of the above
->TCP/IP can work on
a)ethernet
b)tokenring
c)a&b
d)none
->a node has the ip address 138.50.10.7 and 138.50.10.9.But it is
transmitting data from node1 to node2only. The reason may be
a)a node cannot have more than one address
b)class A should have second octet different
c)classB " " " " "
d)a,b,c
->the OSI layer from bottom to top
->for an application which exceeds 64k the memory model should be
a)medium
b)huge
c)large
d)none
->the condition required for dead lock in unix sustem is
->set-user-id is related to (in unix)
->bourne shell has
a)history record
b)
c)
d)
->wrong statement about c++
a)code removably
b)encapsulation of data and code
c)program easy maintenance
d)program runs faster
->which is true
a)bridge connects dissimiler LAN and protocol insensitive
b)router " " " " "
c)gateway " " " " "
d)none of the above
->const char *
char * const
What is the differnce between the above tow?.
->In Unix inter process communication take place using?.
->About i-node numbers
->Max relaxable permisssion value with out giving write permission to others?.
->About ln(linking)
->Linking across directories?.
->process id for kernell process
->very first process created by kernell
->function to repaint a window immediately?.
->Function entry for DLL in win3.1
->win 3.1 is a
->win 3.1 supports which type of multi tasking?.
->Message displayed when a window is destroyed
->About fork()?
->About send message and post message
->Message to limit the size of window
->System call executable binary file intoa process
->About GDI object?.
->API used to hide window
->Initialize contents of a dialog?.
C SKILL SET
->How do you write a program which produces its own source code as its output?
->How can I find the day of the week given the date?
->Why doesn't C have nested functions?
->What is the most efficient way to count the number of bits which are set in a value?
->How can I convert integers to binary or hexadecimal?
->How can I call a function, given its name as a string?
->How do I access command-line arguments?
->How can I return multiple values from a function?
->How can I invoke another program from within a C program?
->How can I access memory located at a certain address?
->How can I allocate arrays or structures bigger than 64K?
->How can I find out how much memory is available?
->How can I read a directory in a C program?
->How can I increase the allowable number of simultaneously open files?
->What's wrong with the call "fopen("c:newdirfile.dat", "r")"?
C & UNIX
19. What does chmod 654 stand for.
Ans : _rw_r_xr__
20. Which of following is used for back-up files?
(a) compress (b) Tar (c) make (d) all the above Ans : b
21 what does find command do ? Ans : search a file
22. what does " calloc" do?
Ans : A memory allocation and initialising to zero.
23 what does exit() do?
Ans : come out of executing programme.
24. what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-st
rlen("green")
Ans : 1
25. i=2
printf("%old %old %old %old ",i, i++,i--,i++);
Ans : check the answer.
26. Using pointer, changing A to B and B to A is Swapping the function
using two address and one temperory variable. a,b are address, t is
temporary variable. How function look like?
Ans : swap(int *, int *, int )
27. In 'o' how are the arguments passed?
ans : by value.
28. Find the prototype of sine function.
Ans : extern double sin(double)
29. Scope of a global variable which is declared as static?
ans : File
30. ASCII problem
i=..
ans : 6
31 .
32. what is the o/p
printf(" Hello o is the world ");
Ans : Hello is the world.
33. Clarifying the concept addresses used over array ; ie changing
the address of a base element produces what error?
34. child process -- fork
child shell -- sh
35. Answer are lex 7 yacc & man read these things in UNIX
36. What is
int *p(char (*s)[])
Ans : p is a function which is returning a pointer to integer