0% found this document useful (0 votes)
9 views

Spring CT Questions & Answers

The document contains a series of aptitude and basic Java questions along with their correct answers. It includes various topics such as age problems, probability, coding, and Java fundamentals. Each question is followed by multiple-choice options and the correct answer is indicated for each.

Uploaded by

Teja Teju
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Spring CT Questions & Answers

The document contains a series of aptitude and basic Java questions along with their correct answers. It includes various topics such as age problems, probability, coding, and Java fundamentals. Each question is followed by multiple-choice options and the correct answer is indicated for each.

Uploaded by

Teja Teju
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Aptitude Questions

1. The sum of the ages of a father and son is 60 years. If the father was four times the son's age
five years ago, what is the son's current age?
a) 10
b) 12
c) 14
d) 15

Correct Answer: 12

2. A trader marks up an item by 80% and then gives a discount of 25%. If the cost price is ₹500,
what is the final selling price?
a) ₹650
b) ₹700
c) ₹750
d) ₹800

Correct Answer: ₹700


3. Two pipes can fill a tank in 12 minutes and 15 minutes, respectively. A third pipe can empty
the tank in 20 minutes. If all three pipes are opened together, in how much time will the tank
be full?
a) 10 minutes
b) 8 minutes
c) 6 minutes
d) 12 minutes

Correct Answer: 10 minutes

4. The probability of rolling an even sum when rolling two fair dice is:
a) 1/2
b) 5/12
c) 1/3
d) 7/12

Correct Answer: 1/2

5. The cost price of an article is ₹1200. If it is sold at two successive discounts of 10% and 20%,
what is the final selling price?
a) ₹864
b) ₹880
c) ₹900
d) ₹920

Correct Answer: ₹864


6. A person walks 1 km south, then 2 km east, then 1 km north. What is the shortest distance
from the starting point?
a) 1 km
b) 2 km
c) √2 km
d) √5 km
Correct Answer: 2 km

7. A and B together can complete a work in 12 days. B alone can complete the same work in 30
days. In how many days will A alone complete the work?
a) 15
b) 18
c) 20
d) 25

Correct Answer: 20

8. The sum of the first 50 even numbers is:


a) 2500
b) 2550
c) 5000
d) 5050

Correct Answer: 2550

9. A train moving at 72 km/h crosses a bridge in 30 seconds. If the train is 180 meters long,
what is the length of the bridge?
a) 360 m
b) 420 m
c) 480 m
d) 540 m

Correct Answer: 420 m


10. A mixture contains milk and water in the ratio 5:2. If 14 liters of water is added to it, the ratio
becomes 5:4. Find the original quantity of milk in the mixture.
a) 25 liters
b) 30 liters
c) 35 liters
d) 40 liters

Correct Answer: 35 liters

Reasoning:

11. If TABLE is coded as GZOVI, how is CHAIR coded in the same manner?
a) XSRMT
b) XSQMT
c) XRSMT
d) XSMRT

Correct Answer: XSRMT

12. If MANGO is written as 41578 and APPLE as 62245, what is ORANGE written as?
a) 878621
b) 858621
c) 878641
d) 858641
Correct Answer: 878621

13. Find the odd one out:


a) Square
b) Rectangle
c) Triangle
d) Circle

Correct Answer: Circle

14. If 6 cats can catch 6 rats in 6 minutes, how many cats are needed to catch 100 rats in 100
minutes?
a) 6
b) 10
c) 12
d) 15

Correct Answer: 6

15. Find the missing number in the sequence: 3, 12, 48, 192, ?
a) 576
b) 768
c) 864
d) 960

Correct Answer: 768

16. A person starts walking from point A, moves 5 km east, then 8 km north, then 5 km west,
and finally 8 km south. Where is he now with respect to the starting point?
a) 5 km north
b) At the starting point
c) 5 km east
d) 8 km south

Correct Answer: At the starting point

17. A is the brother of B, B is the sister of C, and C is the father of D. How is A related to D?
a) Uncle
b) Brother
c) Grandfather
d) Cousin

Correct Answer: Uncle

18. If 5 men take 9 hours to complete a work, how many hours will 3 men take to complete the
same work?
a) 12
b) 15
c) 18
d) 21

Correct Answer: 15
19. Which number should replace the question mark? 9, 18, 36, ?, 144
a) 54
b) 60
c) 72
d) 96

Correct Answer: 72

20. In a certain code, TEACHER is written as VGCEJGT. How is STUDENT written in that code?
a) UVEVFGP
b) UVWFHGP
c) UWFVFGP
d) UVGWFPG

Correct Answer: UVGWFPG

Basic Java Questions


21. Which of the following best describes JVM?
a) Java Variable Manager
b) Java Virtual Machine
c) Java Version Manager
d) Java Visual Memory

Correct Answer: Java Virtual Machine

22. What will be the output of the following code?

java

CopyEdit

int x = 10;

x += x++ + ++x;

System.out.println(x);
a) 21
b) 32
c) 31
d) 30

Correct Answer: 32

23. Which of the following is not a valid Java keyword?


a) static
b) native
c) override
d) volatile

Correct Answer: override

24. What does the following method signature define?


java

CopyEdit

public static <T> void method(T obj)

a) A generic method
b) A constructor
c) A lambda function
d) A method with variable arguments

Correct Answer: A generic method

25. What is the default size of an ArrayList in Java?


a) 5
b) 10
c) 15
d) 20

Correct Answer: 10

26. What will be the output of this Java code?

java

CopyEdit

System.out.println(5 + "5" + 5);

a) 555
b) 15
c) Compilation error
d) 105

Correct Answer: 555

27. Which of the following collections does not allow duplicate elements?
a) List
b) Set
c) Map
d) Queue

Correct Answer: Set

28. Which Java feature ensures that a method has a single copy shared by all instances of a
class?
a) final
b) static
c) abstract
d) synchronized

Correct Answer: static

29. How do you make a class immutable in Java?


a) Declare class as final
b) Make fields private and final
c) Provide only getter methods
d) All of the above

Correct Answer: All of the above

30. Which functional interface in Java represents a function that takes two arguments and
returns a result?
a) Supplier
b) Consumer
c) BiFunction
d) Predicate

Correct Answer: BiFunction

You might also like