Automated Traders Desk Interview Questions
- 0of 0 votes
AnswersDesign Lift System for 75 floor buildings. Every floor equal, how many lifts should there be and where should which lift stop. { he will make you approach this as a problem, think of your targets, think of average people in each floor, average round trip time, and then solution has to be fair to everybody and yet simple not too complicated. }
- dev May 26, 2011| Report Duplicate | Flag | PURGE
Automated Traders Desk - 0of 0 votes
AnswersConsider the following IDL interface:
- The Hercules April 04, 2008
interface Time_Server
{
// Return the time on the server
string get_timestamp();
};
Write a client that for each command line argument(1) queries the naming service to resolve an object with the name provided on the command-line, (2)uses the object obtained via the naming service to query the time and (3) repeats the process after 60 seconds. Your code should not leak resources, continue to work despite exceptions, print all successful results to standard output & report all errors to standard error.
[There is some supporting code from Automated Trader's desk under the same directory]| Report Duplicate | Flag | PURGE
Automated Traders Desk Software Engineer / Developer C Coding - 0of 0 votes
AnswersConsider a TCP/IP server that passively waits for client connections. Once a client connects the server reads data from the client one character at a time. If the server receives character 'Q' it sends it back to the client the number of client currently connected(as a string). If the character is 'T', the server should send back the local timee, as a string in HHMMSS format. Characters '\r' and '\n' are ignored, all other characters result in the server returning the string BADREQUEST. The server is, or should be, able to handle multiple concurrent clients
- The Hercules April 04, 2008| Report Duplicate | Flag | PURGE
Automated Traders Desk Software Engineer / Developer Networking / Web / Internet - 0of 0 votes
AnswersOnsite Interview (coding test) --
- The Hercules April 04, 2008
Q4) Implement a Singleton pattern as a template such that, for any given class Foo, I can call Singleton<Foo>::instance() & get a pointer to a singleton of type Foo. Assume the existence of a class Lock which has acquire() & release() methods. The implementation should be thread safe & exception safe| Report Duplicate | Flag | PURGE
Automated Traders Desk Software Engineer / Developer C++ Object Oriented Design Threads - 0of 0 votes
AnswersOnsite Interview (coding test) --
- The Hercules April 04, 2008
Q3) Now write a derived class Undo_Buffer that derives from Buffer. It will provide the ability to undo the last change to the buffer. It should have a member variable, last_buffer, which is a copy of the internal unsigned char array from the last change to the buffer. For example, if the buffer has "0123456" and undo_buffer[3] = 'z' is called, then the Undo_Buffer class holds the new change value of "012z456".
Undo_Buffer should provide a method undo() which will revert the buffer to the last saved buffer. There does not need to be any access to the last_buffer, except to provide the functionality of undo.| Report Duplicate | Flag | PURGE
Automated Traders Desk Software Engineer / Developer C Coding - 0of 0 votes
AnswersOnsite Interview --
- The Hercules April 04, 2008
Directions
1) Write compiling (& working) code on linux
2) 2 hours.
3) Total questions 6 Mandatory 4(but 3 oky)
Q2) Write a simple buffer class that provides a fixed length of unsigned char. While you should not use the STL to implement the class the class should be written in such a way that it can be used in an STL collection (i.e std::list<Buffer> should work). Instances of Buffer should be allowed to be instantiated with an initial buffer size. Provide a reqize(size_t) method that will shrink or grow the buffer. Provide access to individual elements of the buffer (i.e the ability to get/set the nth element of the buffer)| Report Duplicate | Flag | PURGE
Automated Traders Desk Software Engineer / Developer C Coding - 2of 0 votes
AnswersOnsite Interview --
- The Hercules April 04, 2008
Directions
1) Write compiling (& working) code on linux
2) 2 hours.
3) Total questions 6. Mandatory 4 (but 3 acceptable)
Q1) Write a recursive funciton "sum" that computes the sum of all integers between 0 & n. For example, presented the number 10, it would return -15. Next, write a "main" that will drive the function by calling it for each "valid" argument in the program's argument list. If an argument is not an integer then print out an error message, wiht the double quotation marks.For example calling the program with
a.out 23 -12 foo 7
should result in output like
Sum of all integers between 0 & 23 is 276
Sum of all integers between 0 & -12 is -78
"foo" is not a number
Sum of all integers between 0 & 7 is 28| Report Duplicate | Flag | PURGE
Automated Traders Desk Software Engineer / Developer C Coding