Placement Papers — Amazon Questions
TCS, Infosys, Wipro, Cognizant actual papers
5 Questions 12 Topics Take Test
Advertisement
Showing 1–5 of 5 questions in Amazon Questions
Q.1 Hard Amazon Questions Amazon
A system processes 1000 requests per second. If 8% of requests fail and need retry, and each retry takes 2 seconds, approximately how many total seconds are needed to process 10,000 requests including retries (assuming sequential processing)?
A 10 seconds
B 11.6 seconds
C 12.5 seconds
D 13.8 seconds
Correct Answer:  B. 11.6 seconds
EXPLANATION

10,000 requests at 1000/sec = 10 seconds. Failed requests = 10,000 × 0.08 = 800. Retry time = 800 × 2/1000 = 1.6 seconds. Total ≈ 10 + 1.6 = 11.6 seconds.

Take Test
Q.2 Hard Amazon Questions Amazon
If a HashMap has 1000 entries and the load factor is 0.75, at what capacity will it resize?
A 750
B 1000
C 1333
D Cannot be determined
Correct Answer:  C. 1333
EXPLANATION

Resize occurs when entries exceed capacity × load factor. If 1000 entries at 0.75 load factor, capacity = 1000/0.75 = 1333

Take Test
Q.3 Hard Amazon Questions Amazon
Which of the following is a characteristic of a good hash function?
A Deterministic behavior
B Uniform distribution
C Collision resistance
D All of the above
Correct Answer:  D. All of the above
EXPLANATION

Good hash functions are deterministic (same input gives same output), uniformly distribute values, and minimize collisions.

Take Test
Q.4 Hard Amazon Questions Amazon
What will be the output of the following code?

int x = 5;
int y = ++x + x++;
System.out.println(y);
A 11
B 12
C 13
D 14
Correct Answer:  B. 12
EXPLANATION

++x makes x=6 (pre-increment). Then x++ uses 6 and increments to 7. So y = 6 + 6 = 12.

Take Test
Q.5 Hard Amazon Questions Amazon
Statement: All managers are leaders. Some employees are managers. Conclusion: All employees are leaders.
A Definitely true
B Definitely false
C Cannot be determined
D Probably true
Correct Answer:  C. Cannot be determined
EXPLANATION

Some employees are managers, but not all. So we cannot conclude that all employees are leaders.

Take Test
IGET
iget AI
Online · Ask anything about exams
Hi! 👋 I'm your iget AI assistant.

Ask me anything about exam prep, MCQ solutions, study tips, or strategies! 🎯
UPSC strategy SSC CGL syllabus Improve aptitude NEET Biology tips