Senior Software Developer Interview Questions

71,771 senior software developer interview questions shared by candidates

Q1 - Opened an incomplete piece of code on Hackerrank. Some classes and functions were written incompletely - Shape, Square, Circle, Line. It involved concepts of virtual function, pointers, polymorphism, deleting an object when its scope ends, etc. Basic stuff.
avatar

Senior Software Developer

Interviewed at Bloomberg

4
Jul 6, 2017

Q1 - Opened an incomplete piece of code on Hackerrank. Some classes and functions were written incompletely - Shape, Square, Circle, Line. It involved concepts of virtual function, pointers, polymorphism, deleting an object when its scope ends, etc. Basic stuff.

This is a C++ question. Implement a class StockMarket in C++ that has the two following functions: class StockMarket { public: void addTrade(string stockName, int share); - This function keeps track the number of shares transacted for a stock by adding the trade information void printTop(int numberOfStock); - This function prints the top numberOfStock stocks that has the highest number of transacted shares } And here's a sample calling sequence that uses the above class: StockMarket stockMarket; stockMarket.addTrade("GOOGLE", 50); stockMarket.addTrade("APPLE", 150); stockMarket.addTrade("GOOGLE", 100); stockMarket.addTrade("MSFT", 250); stockMarket.addTrade("GOOGLE", 200); stockMarket.printTop(2); Expected output: GOOGLE 350 MSFT 250
avatar

Senior Software Engineer

Interviewed at Bloomberg

4
Aug 30, 2017

This is a C++ question. Implement a class StockMarket in C++ that has the two following functions: class StockMarket { public: void addTrade(string stockName, int share); - This function keeps track the number of shares transacted for a stock by adding the trade information void printTop(int numberOfStock); - This function prints the top numberOfStock stocks that has the highest number of transacted shares } And here's a sample calling sequence that uses the above class: StockMarket stockMarket; stockMarket.addTrade("GOOGLE", 50); stockMarket.addTrade("APPLE", 150); stockMarket.addTrade("GOOGLE", 100); stockMarket.addTrade("MSFT", 250); stockMarket.addTrade("GOOGLE", 200); stockMarket.printTop(2); Expected output: GOOGLE 350 MSFT 250

Question on creating an array of first names and ordinal number combination from the input and sorting the String array chronologically, if duplicate first names found, sort based on the ordinal number (roman numerals). There were a few constraints mentioned for the sorting to be done. Another question on writing the various XPaths for a given XML files
avatar

Senior Software Engineer

Interviewed at Bloomberg

4
Jul 7, 2016

Question on creating an array of first names and ordinal number combination from the input and sorting the String array chronologically, if duplicate first names found, sort based on the ordinal number (roman numerals). There were a few constraints mentioned for the sorting to be done. Another question on writing the various XPaths for a given XML files

Viewing 2281 - 2290 interview questions

Glassdoor has 71,771 interview questions and reports from Senior software developer interviews. Prepare for your interview. Get hired. Love your job.