Professional Documents
Culture Documents
2. In an objective test, a correct answer scores 4 marks, and a wrong answer scores 2 marks. A student
scores 480 marks from 150 questions. how many answers are correct?
Answer: 120
3. With which smallest no should 2880 be divided by, to make it a perfect square.
Ans: 20
Ans : -10
Ans: 100%
6. Father is 30 years older than the son. He will only be thrice as old as his son after 5 years. Fathers
present age?
Ans: 40 years
7. If on an item a company gives 25% discount, they earn 25% profit. If they now give 10% discount,
then wat % profit they make?(3 marks)
Ans: 35%
Ans: 17.5%
9. Sum of digits of a 2 digit number is 8. When 18 is added to the no, the digits gets reversed. Wat is the
no?
try{
for(int i=0;oldCode.size();i++){
String insertIntoMappingtbl="insert into schemaptbl '' + " values(?,?,?,?,?,?)";
pstmtMappingTbl=con.prepareStatement(insertIntoMap pingTbl );
pstmtMappingTbl.setObject(1,oldCode.get(i));
pstmtMappingTbl.setObject(2,oldId.get(i));
pstmtMappingTbl.setObject(3,newCode.get(i));
pstmtMappingTbl.setObject(4,newId.get(i));
pstmtMappingTbl.setObject(5,sub.get(i));
pstmtMappingTbl.setObject(6,subid.get(i));
pstmtMappingTbl.executeQuery();
}
}
catch(Exception e){}
finally{return success;}
12.
13.
If atable T1 has single column c1 with data base (a,a,b,b,b,c)
write aquery that out put as follows
c1 count (c1)
.......................
b3
a2
15. Write a funcytion that takes an integer array as an input and findes the second largest largest number
in the array. you can use only one loop .You cannt sort the array.
16. Give two integer arrays A & B.A has n elements and B has ' n-1 ' elements . A has all the elements
that are there in B. But B has one missing element. Write a function that takes arrays , A & B as imnput
and finds the missing element in most optised manner .
17. Write a programm to delete a node from Linked list . You cannot use any of the Existing collection
classes available in JAVA . you have to create ur own Linked List .
18. U have an array of +ve integers arranged in the descending order . Write a functionb thast take an
integer & an integer array as an integer and returns the position of the given integer in the array , if the
integer is not present in the array it should return -1 . the serching technique that u use should be very
efficient both in terms of time & memory.
19.
If u were to create following components , what API will u expose ? U can use class/block diagram to
expose internals of component .
. Chart component that can render various types of charts , such as pie , bar , line
...spell checker component
20.
draw class / object diagram of one of the following
.... ATM
.....RailwayReservation
1. A's population is 68000 and it decreases by 80 per year. B's population is 42000 and it increases by 120
per year. After how many years both cities will have same population?
Ans: 130
2. An exam consists of 200 questions to be solved in 3 hours, out of which 50 are maths questions. It is
suggested that twice as much time be spent on each math question as for each other question. How many
minutes should be spent on maths problems?
3. fresh mango consists of 70% water and dry mango consists of 10% water then 20Kg of fresh mango is
equivalent to how much of dry mango
Ans: 6.66 kg
4. sum of the consequent 7 integers some 1613. Find the no. of prime numbers in that sequence.
5. total no. of players is 99 other than me.50 plays soccer,45 plays basket ball,50 play valley ball.15 play
all three. How many will play only 2 games/
6. fresh mangoes have 70% of water in weight, dry mangoes 20% of water in weight. what is the weight
of dry mangoes if weight of fresh mangoes is 20kg .ans(d)
7. total 63 matches are conducted in Knockout match type. How many players will be participated in that
tournament?
Ans:64
Ans: E
Ans 5.5
10. 2 can type 2 pages in 2 minutes. how many typist can type 18 pages in 6 minutes?
Ans . 6
11.Coconuts are arranged in piles in the order of 10,9,8,7,6,5,4,3,2.Hence he got shortage of 1.what is the
min no. of smallest coconuts?
Ans.3
13. In a class boys are 25% more than girls what is ratio of total boys and girls
14. How many 3 digit no. are there when divided by 7 or 8 leaves remainder 4?
Ans .17
15. A works thrice as much as B. If A takes 60 days less than B to do a work then find the number of days
it would take to complete the work if both work together?
Ans. 22½days
16. How many 1's are there in the binary form of 8*1024 + 3*64 + 3
Ans. 4
17. A boy has Rs 2. He wins or loses Re 1 at a time If he wins he gets Re 1 and if he loses the game he
loses Re 1. He can loose only 5 times. He is out of the game if he earns Rs 5. Find the number of ways in
which this is possible?
Ans. 16
18. There are total 15 people. 7 speaks french and 8 speaks spanish. 3 do not speak any language. Which
part of total people speaks both languages.
Ans: 1/5
19. A jogger wants to save ?th of his jogging time. He should increase his speed by how much %age.
Ans: 33.33 %
20. A is an integer. Dividing 89 & 125 gives remainders 4 & 6 respectively. Find a ?
Ans: 17