iGET

Placement Papers - MCQ Practice Questions

Practice free Placement Papers multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

638 questions | 100% Free

Q.561Hard

What will be the output of the following code? int x = 5; int y = ++x + x++; System.out.println(y);

Q.562Medium

Which of the following sorting algorithms is most efficient for nearly sorted data?

Q.563Medium

What will be printed? String s1 = new String('Amazon'); String s2 = new String('Amazon'); System.out.println(s1 == s2);

Q.564Medium

What is the primary purpose of a hash function?

Q.565Hard

Which of the following is a characteristic of a good hash function?

Q.566Easy

In the context of REST APIs, what does POST primarily do?

Q.567Medium

What is the main advantage of using microservices architecture?

Q.568Easy

Which design pattern is used when you want to ensure a class has only one instance?

Q.569Medium

What will be the output? List<Integer> list = new ArrayList<>(); list.add(1); list.add(2); list.add(3); list.remove(1); System.out.println(list);

Q.570Medium

What is the difference between ArrayList and LinkedList in Java?

Q.571Easy

Which of the following is NOT a principle of object-oriented programming?

Q.572Easy

What is the purpose of the 'try-catch' block in Java?

Q.573Hard

If a HashMap has 1000 entries and the load factor is 0.75, at what capacity will it resize?

Q.574Medium

What is the time complexity of accessing an element in a balanced Binary Search Tree?

Q.575Easy

Which protocol is used for secure data transmission over the internet?

Q.576Easy

What does the SELECT * query do in SQL?

Q.577Medium

A train travels from City A to City B at 60 km/h and returns from B to A at 40 km/h. If the total journey time is 10 hours, what is the distance between City A and City B?

Q.578Easy

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?

Q.579Easy

If PAPER is coded as 16-1-16-5-18, then PENCIL would be coded as?

Q.580Easy

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?