Sr Software Engineer Interview Questions

67,387 sr software engineer interview questions shared by candidates

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

Given stream of number find all the pairs of numbers that have sum as target sum. Given a list of banks with start and end time, check whether the test order will be handled by any of the bank or combination of the bank.
avatar

Senior Software Engineer

Interviewed at Bloomberg

4
Feb 23, 2021

Given stream of number find all the pairs of numbers that have sum as target sum. Given a list of banks with start and end time, check whether the test order will be handled by any of the bank or combination of the bank.

Viewing 2131 - 2140 interview questions

Glassdoor has 67,387 interview questions and reports from Sr software engineer interviews. Prepare for your interview. Get hired. Love your job.