14 questions · from 1 interviews

KPMG interview questions

Every question candidates reported from their KPMG interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.

KPMG coding and DSA questions

  1. 01

    Implement School and Hospital from Building Interface

    Given an interface named 'Building', implement concrete classes for 'School' and 'Hospital'.

    Easy · From KPMG | Java Backend Developer | September 2024

  2. 02

    Find 3rd Highest Number in List using Java Streams

    Given a list of integers, find the third highest number using Java Streams.

    From KPMG | Java Backend Developer | September 2024

  3. 03

    Best Time to Buy and Sell Stock

    Given an array prices where prices[i] is the price of a given stock on the i-th day, find the maximum profit you can achieve. You may complete at most one transaction (i.e., buy one and sell one share of the stock).

    Easy · From KPMG | Java Backend Developer | September 2024

  4. 04

    Two Sum Problem

    Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice.

    Easy · From KPMG | Java Backend Developer | September 2024

  5. 05

    Count Last Name Occurrences using Java Streams

    Given a list of full names (first name and last name separated by a space), count the occurrences of each unique last name using Java Streams.

    From KPMG | Java Backend Developer | September 2024

KPMG behavioural and HR questions

  1. 01

    Behavioral Questions (Prior Experience, Reasons for Leaving, Motivation)

    Discuss your prior work experience, reasons for leaving previous roles, and your motivations for joining KPMG.

    From KPMG | Java Backend Developer | September 2024

KPMG other questions

  1. 01

    What are Marker Interfaces?

    Explain what marker interfaces are in Java and provide examples.

    From KPMG | Java Backend Developer | September 2024

  2. 02

    What are Functional Interfaces?

    Explain what functional interfaces are in Java, their characteristics, and provide examples of their usage.

    From KPMG | Java Backend Developer | September 2024

  3. 03

    Immutable Classes in Java

    Explain what immutable classes are in Java, their benefits, and how to create one.

    From KPMG | Java Backend Developer | September 2024

  4. 04

    Explain LEFT OUTER JOINs

    Explain what a LEFT OUTER JOIN is in SQL and how it differs from other join types.

    From KPMG | Java Backend Developer | September 2024

  5. 05

    Primary Key vs. Unique Key

    Explain the differences between a primary key and a unique key in a database.

    From KPMG | Java Backend Developer | September 2024

  6. 06

    Spring Bean Lifecycle

    Describe the lifecycle of a Spring Bean, including initialization and destruction callbacks.

    From KPMG | Java Backend Developer | September 2024

  7. 07

    Polymorphism and Method Invocation

    Given Parent obj = new Child();, can obj be used to call a method that is defined only in the Child class and not in Parent?

    From KPMG | Java Backend Developer | September 2024

  8. 08

    Method Overriding and Exception Handling

    If a parent method throws IOException, and a child class overrides this method to throw Exception (a broader exception), will the child's method compile and run correctly?

    From KPMG | Java Backend Developer | September 2024

KPMG interview questions FAQ

What questions are asked in KPMG interviews?

Candidates reported 14 distinct questions across 1 KPMG interviews. 5 coding and DSA questions, 1 behavioural and HR questions, 8 other questions.