interview-questions

Maximize the number of lines that end in a certain character

You are given a line of strings, each words are seperated by spaces. You can only insert new lines in the 5-10th column of your string. Your goal is to maximize the number of lines that end with the character x. How would you do this for example. Edit: The words can end with any character, Say you are given the text abcdfg cdx abcdx a...

Is it pages will compile in server?

I have been asked these question in interviews... Is it pages will compile in server? In server pages will compile or execute? When application object will create? Can anyone explain them in detail... ...

(student) interview questions - programming for a robotics lab

Hi all, my robotics lab is looking for programmers to work on some projects we have at the moment. We nailed down the requirements (mainly, c++ and experience with openGL and 3D), but due to obvious money constraints we can't afford to hire Great Developers. Instead we're going to settle for Talented Students, offering them projects ...

Fibonacci using 1 variable

I was asked the following question in an interview: Is there any way in which Fibonacci series can be generated using only 1 variable ? I didn't know what to answer. What should I have said? ...

what is the most efficent Python script to the below question?

Possible Duplicate: What is your solution to the FizzBuzz problem? Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz". Here is what I have right...

tricky interview question for experienced php web developer

Possible Duplicate: What PHP-specific questions would you ask in a job interview? I need to interview some experienced php web developers, some of them with zend certification. Just asking them some php/mysql questions is not enough so I need to test at least the following abilities: abstract thinking self initiative applica...

Algorithm to find top 10 search terms

I'm currently preparing for an interview, and it reminded me of a question I was once asked in a previous interview that went something like this: "You have been asked to design some software to continuously display the top 10 search terms on Google. You are given access to a feed that provides an endless real-time stream of search term...

What exactly is a framework?

What exactly is a framework? How to define a framework in simple terms? ...

Three ways to store a graph in memory, advantages and disadvantages

There are three ways to store a graph in memory; - nodes as objects and edges as pointers - a matrix containing all edge weights between numbered node x and node y - a list of edges between numbered nodes I know how to write all three, but I'm not sure I've thought of all of the advantages and disadvantages of each. What are the ad...

Can we use include (”TheWalkin.php”) two times in a PHP page “makeit.PHP”?

I it possible to include two times a page called walkin in a page makeit.php ...

Interview question: Objects eligible for garbage collection

Give the following code: class A { Boolean b; A easyMethod(A a){ a = null; return a; } public static void main(String [] args){ A a1 = new A(); A a2 = new A(); A a3 = new A(); a3 = a1.easyMethod(a2); a1 = null; // Some other code } } The question is h...

Java Interview Question: finalize() method

I was given the following phrase in an interview: The invocation of an Object's finalize() method is the last thing that happens before an object is garbaged collected. I had to answer by: True False I've chosen True but it was wrong. Can you please explain me why ? ...

What are some good graphics programming interview questions?

What are some good graphics programming interview questions? These could be math questions, OpenGL questions, DirectX questions, shader questions, etc. ...

How to merge two sorted portions of same array in O(n) time and O(1) space

Possible Duplicates: How to sort in-place using the merge sort algorithm? Regarding in-place merge in an array Given an array of size N, which is divided into two sets of sorted integers(0 to P and P+1 to N-1). How would you sort this array using constant extra space (O(1)) and in O(n) time. For e.g A = {1,3,5,7,2,4,6,8}, h...

How do you screen candidates?

We have been interviewing for an entry level programmer for almost a year now. We just can't seem to find anyone that codes (and is entry level). They all have nice resumes but when we bring them in for an interview we end up wasting our time and theirs. We have even recently moved to changing the interview format to quit the intervie...

Interview Questions - What should be asked in a Phone Interview?

I am desperate for a way to screen my interview candidates (and weed out the incompetent). What I am really looking for is a good solid coder (entry level). But asking a user to code in a phone interview does not work out so well. (And we have been told by HR that we cannot use online screening tools.) What kind of phone interview qu...

submitting a form with out using submit?

Hi I want to submit a form without using submit button how can i do that? ...

Implement Scrolling text in C

Hii , I was asked this question in one of my interviews with a MNC recently . The question was " We need to display a screen in which a text scrolls at the bottom of the screen and the remaining screen is empty . How would you accomplish this in C ? What data structures would you use ..?? " Any ideas please ...! ...

Match sub-string within a string with tolerance of 1 character mismatch

Hi, I was going through some Amazon interview questions on CareerCup.com, and I came across this interesting question which I haven't been able to figure out how to do. I have been thinking on this since 2 days. Either I am taking a way off approach, or its a genuinely hard function to write. Question is as follows: Write a function i...

Open Source Quiz Software?

I would like to find some open source quiz software that has progressive levels that can be used for technical interviews. I would be glad to contribute to it if all of the features I loo for aren't there and was hoping to not overlap work if someone has started a similar project before. I would need it to be able to be hosted on an inte...