Which design pattern is used when you want to ensure a class has only one instance?
Answer: B
Singleton Pattern restricts a class to have only one instance and provides a global access point to it.
Q.242Easy
Which of the following is NOT a principle of object-oriented programming?
Answer: D
The four OOP principles are Inheritance, Encapsulation, Polymorphism, and Abstraction. 'Materialization' is not an OOP principle.
Q.243Easy
What is the purpose of the 'try-catch' block in Java?
Answer: B
try-catch blocks allow you to handle exceptions without crashing the program, providing graceful error handling.
Q.244Easy
Which protocol is used for secure data transmission over the internet?
Answer: B
HTTPS (HTTP Secure) encrypts data in transit using SSL/TLS. Other protocols lack this encryption.
Q.245Easy
What does the SELECT * query do in SQL?
Answer: B
SELECT * retrieves all columns and rows from a table. * is a wildcard meaning 'all columns'.
Advertisement
Q.246Easy
In a sequence, each term is obtained by adding the previous two terms. If the 1st term is 2 and 2nd term is 3, what is the 6th term?
Answer: B
Fibonacci-like sequence: T1=2, T2=3, T3=5, T4=8, T5=13, T6=21. Each term = sum of previous two terms.
Q.247Easy
If PAPER is coded as 16-1-16-5-18, then PENCIL would be coded as?
Answer: A
Each letter is coded as its position in the alphabet: P=16, A=1, P=16, E=5, R=18. Similarly, PENCIL: P=16, E=5, N=14, C=3, I=9, L=12.
Q.248Easy
Four friends A, B, C, and D have different salaries. C earns more than A but less than D. B earns more than D. Who has the highest salary?
Answer: B
From given conditions: A < C < D and D < B. This means B > D > C > A. Therefore, B has the highest salary.
Q.249Easy
If a train travels 240 km in 4 hours and then 180 km in 3 hours, what is its average speed for the entire journey?
Answer: C
Total distance = 240 + 180 = 420 km. Total time = 4 + 3 = 7 hours. Average speed = 7420 = 60 km/h.
Q.250Easy
Which of the following words is closest in meaning to 'CANDID'?
Answer: B
CANDID means honest, frank, and straightforward. Frank (option B) is a direct synonym meaning honest and open.
Q.251Easy
Read the passage and answer: 'Amazon's supply chain relies on predictive analytics to forecast demand. This AI-driven approach reduces inventory costs and improves delivery times.' Which statement best captures the main idea?
Answer: B
The passage states that AI-driven predictive analytics serves three purposes: forecasting demand, reducing inventory costs, and improving delivery times. Option B accurately captures all these points.
Q.252Easy
A train travels at 60 km/h for 2 hours, then at 80 km/h for 3 hours. What is the average speed?
Answer: A
Total distance = 60×2 + 80×3 = 120 + 240 = 360 km. Total time = 5 hours. Average speed = 5360 = 72 km/h
Q.253Easy
If 5 workers can complete a project in 12 days, how many days will 8 workers take?
Answer: A
Work is constant. 5 workers × 12 days = 8 workers × x days. x = (5×12)/8 = 860 = 7.5 days
Q.254Easy
The ratio of boys to girls in a class is 3:2. If there are 30 students, how many are girls?
Answer: A
Total parts = 3 + 2 = 5. Girls = (52) × 30 = 12
Q.255Easy
If the cost price of an item is ₹500 and profit is 20%, what is the selling price?