Junior Software Developer Interview Questions

4,171 junior software developer interview questions shared by candidates

Normalize a file path/directory: /// /// /// Normalizes the path, meaning that you reduce any unnecessary directory. /// For example, given the value notneeded1/notneeded2/../../hello you would /// return hello. /// /// /// input string /// Normalized string /* * Sample Directory structure * - home * -- documents * -- desktop * -- myMedia * ----- photos * ----- videos * ----- music * -- downloads * /home/myMedia/photos/../../documents -> /home/documents * /home/myMedia/photos/../documents/.. -> /home/myMedia * /home/myMedia/../documents -> /home/documents * ../home -> ../home * home/../../final -> ../final * /home/myMdeia/documents -> /home/myMdeia/documents * Case 1: * C:\ [current working directory] * cd hello [command operating on cwd] * C:\hello [final path] * Case 2: * C:\ [current working directory] * cd notneeded1/notneeded2/../../hello [command operating on cwd] * C:\hello [final path] */
avatar

Junior Software Developer (C++)

Interviewed at Accelya Group

3.4
Aug 15, 2024

Normalize a file path/directory: /// /// /// Normalizes the path, meaning that you reduce any unnecessary directory. /// For example, given the value notneeded1/notneeded2/../../hello you would /// return hello. /// /// /// input string /// Normalized string /* * Sample Directory structure * - home * -- documents * -- desktop * -- myMedia * ----- photos * ----- videos * ----- music * -- downloads * /home/myMedia/photos/../../documents -> /home/documents * /home/myMedia/photos/../documents/.. -> /home/myMedia * /home/myMedia/../documents -> /home/documents * ../home -> ../home * home/../../final -> ../final * /home/myMdeia/documents -> /home/myMdeia/documents * Case 1: * C:\ [current working directory] * cd hello [command operating on cwd] * C:\hello [final path] * Case 2: * C:\ [current working directory] * cd notneeded1/notneeded2/../../hello [command operating on cwd] * C:\hello [final path] */

In the pen-and-paper round, all candidates were given the same problem statement. I am not entirely certain if this was the exact wording, but the core requirement was to design a system using abstraction and inheritance principles. Specifically, I had to create an abstract class named Hospital, define abstract methods such as getDescription(), and declare the required variables. Then, I needed to create a Person class with a string variable name, extend it into a Patient class, and override the getDescription() method. Additionally, I was asked to implement simple logic such as retrieving the next patient based on priority. The focus of the question was mainly on understanding abstraction, method overriding, class hierarchy, and applying basic low-level design concepts rather than solving a pure data structures problem.
avatar

Junior Java Software Developer

Interviewed at EPAM Systems

4
Feb 19, 2026

In the pen-and-paper round, all candidates were given the same problem statement. I am not entirely certain if this was the exact wording, but the core requirement was to design a system using abstraction and inheritance principles. Specifically, I had to create an abstract class named Hospital, define abstract methods such as getDescription(), and declare the required variables. Then, I needed to create a Person class with a string variable name, extend it into a Patient class, and override the getDescription() method. Additionally, I was asked to implement simple logic such as retrieving the next patient based on priority. The focus of the question was mainly on understanding abstraction, method overriding, class hierarchy, and applying basic low-level design concepts rather than solving a pure data structures problem.

Viewing 4111 - 4120 interview questions

Glassdoor has 4,171 interview questions and reports from Junior software developer interviews. Prepare for your interview. Get hired. Love your job.