Contracts Engineer Interview Questions | Glassdoor

# Contracts Engineer Interview Questions

57

Contracts engineer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

Jan 27, 2012
 Describe a routine which returns the set of integers in {1..100} divisible without remainder by 3 but not by 9.12 AnswersI'm assuming the question wants us to find integers that are divisible by 3 but not by 9. This can be easily obtained using a mod function inside the following if statement: if(number % 3 == 0 && number % 9 != 0) Here is a short program I wrote in c++ to show how to solve this problem. Instead of returning the set of integer, I just printed them out on the screen: #include #include using namespace std; int main(int argc, char** argv) { int i = 0; vector list; vector::iterator it; for(i = 1; i <= 100; i++) { if(i%3 == 0 && i%9 != 0) { list.push_back(i); } } for(it = list.begin(); it != list.end(); it++) { cout << *it << endl; } return 0; } If I missed anything, please let me know. Happy coding and problem solving!That'll certainly work, Tyler, but the OP indicated he was interviewing for a Ruby On Rails - not C++ - gig.put those integers into an array, pick every third element, out of which discard every third element.Show More Responsespython [x for x in range(0,100) if x % 3 == 0 and x % 9 != 0]1) start from number = 3 Loop while(number <= 100) 2) display number 3) number = number+3, display number 4) number = number+6 Loop(1..100).map { |i| (i % 3).zero? && !(i % 9).zero? ? i : nil }.compact(1..100).select { |x| x%3 == 0 && x%9 != 0matt has the best answerA variation on Matt's answer: (1..100).select { |n| n % 3 == 0 }.reject { |n| n % 9 == 0 }The requirement doesn't say if the input has to be a Range. If it doesn't have to be, then we don't need to traverse each element but to simply calculate it. def get_nums_by_3_not_by_9(max) arr = [] x = max.to_i / 3 x.times do |i| next if i % 3 == 0 arr << i * 3 end return arr end(1..100).select do |n| n%3 ==0 and n%9 != 0 end(1..100).to_a.delete_if{|x| !(x%3==0 && x%9>0)} or (1..100).to_a.select{|x| x%3==0 && x%9>0} or (1..100).to_a.map{|x| x%3==0 && x%9>0 ? x : nil}.compact or (1..100).to_a.reject{|x| !(x%3==0 && x%9>0)}

### Chief Engineer/Innovator- But Accepted Senior Program Manager Contract to Hire Position at Heath Tecna was asked...

May 25, 2011
 the CFO asked me to describe a circumstance where I did not get along with a superior manager and how I handled it.1 AnswerI answered honestly about my last manager (only worked for 8 months) who harassed me and treated me very unprofessionally. Yet I did not stoop to his level, continued to treat him with respect and most importantly never allowed it to affect my workplace, or my project (and continued to get outstanding performance awards). I also made certain I described how my prior management training and experiences, my team and project leadership and how obtaining my Leadership Certificate significantly helped me with this situation b/c it contained classroom experiences/role playing in each Communicating Across Cultures, Dealing with Difficult People and Conflict Resolution Courses.

### Certification Engineer (Contract-to-hire) at Innovative Solutions & Support was asked...

Oct 20, 2013
 Asked about how I would deal with a team member who wasn't pulling their fair share.1 AnswerDeclined position before an offer was given or rejected due to a few personal reasons including my commute length. Positive experience though.

Feb 24, 2014

### Contract Test Engineer at Paychex was asked...

Nov 28, 2012
 How much SQL experience do you have?1 AnswerI haven't seen a need for SQL/HTML experience. The were also questions about black/white box testing experience. I've only seen blackbox testing so far.

### Software Engineer Contract at Apple was asked...

Nov 13, 2013
 Cover your basics if trying for them. Expect any unexpected question. People are very sound technologically.1 AnswerCover Java , Data structure basics.

### UI Engineer Contract to Hire at Bank of America was asked...

Jun 29, 2015
 How do you code a checker board?1 Answer
var \$table = \$(‘.table’); function html_header() { \$table.html(‘) } function checkerboard(nRows, mCols){ var checkerSquares = [nRows][mCols] for (i=0; i’); for (j=0; j’); \$table.html(‘ } function odd_row(n, m) { \$table.html(‘ \$(‘window’).html(‘

### Hardware Engineering Contract Position at MediaTek was asked...

Feb 16, 2010
 He had a diagram of a simple CPU with instruction memory and data memory, and a number of instructions in the instruction memory. He said there was a bug in one of the interconnects, either one of the pins is hooked up wrong, tied to 1, tied to 0, etc. He had me go through and debug by stepping through each instruction to find out where the problem was.1 Answerone of the buses had two bits swapped.

### Software Engineer (Contract) at Northwest Territorial Mint was asked...

Apr 7, 2014
 How do you swap two numeric values in two variables without using a third temporary variable?1 AnswerMy solution was to use exclusive-or operations: x = x ^ y y = x ^ y x = x ^ y The interviewer liked the solution, but then suggested another solution using addition and claimed that it would also work with floating point numbers: x = x + y y = x - y x = x - y However, I brought up that this solution has problems since you have the risk of underflow/overflow, and in the case of floating point numbers, you risk loss-of-significance errors. The interviewer did not offer to discuss.

### Android BSP Firmware Embedded Engineer - Contract Position at Flex was asked...

Apr 14, 2017
 Very detailed technical questions about specific functions within the Linux kernel.1 AnswerI stated I didn't remember all of the details but knew what had to be done and where and what resources would be needed to complete the task.
110 of 57 Interview Questions

More