interview-questions

Dalvik VM vs Sun JVM

Possible Duplicate: What can you not do on the Dalvik VM (Androids VM) that you can in Sun VM? What ever interviews i have faced.In every interview when interviewers come on android topic they ask this question. "what is the difference between Dalvik VM vs Sun JVM?". i have given some answers like. http://stackoverflow.com/que...

I have a technical phone screen tomorrow; what sorts of questions should I prepare for? Specific to the language or general theory?

They gave me an idea of which languages I will be using (java, php, sql, php, python), but Im thinking the questions are going to be theory based. Does anyone have recent advice on this? ...

Great Android interview questions?

What interview questions would you ask to distinguish great Android developers from the masses? ...

Good interview questions for designers/requirement-writers

I'm trying to come up with a quick question or exercise to evaluate interviewees' design and communication skills for a requirements-writing position. I've considered asking for a quick recipe (like for a grilled cheese sandwich), but that doesn't quite feel right. (recipes describe how to make something; requirements describe the resul...

Interview Question: Find Median From Mega Number Of Integers

There is a file that contains 10G(1000000000) number of integers, please find the Median of these integers. you are given 2G memory to do this. Can anyone come up with an reasonable way? thanks! ...

What does mean this C++ code: "void Foo() throw;"?

Question from the one interview. Please explain what does this C++ code mean: void Foo() throw; ...

HTML Interview Question

Well I got this question in an interview test.Give two reasons why the page might take longer to download than necessary with this image. < IMG src="somethin.gif" width=10 height=10 border=0 > Well I came up with 3 instead of 2 reasons Xhtml validation problems,image resizing and unnecessary border=0.So what is wrong in here? . ...

Minimum window width in string x that contains all characters in string y

Find minimum window width in string x that contains all characters in string y. E.g. String x = "coobdafceeaxab" String y = "abc" Answer should be 5 because the shortest substring in x that contains all three letters in y is "bdafc". I can think of a naive solution with complexity n^2 * log(m), say n = len(x) and m = len(y). Can any...

Tricky questions and answers on oops and C# or dotnet

Hi guys, I am facing the interviews, always getting new things. But I want to know what are the most tricky question based on OOPS, C# and dot net with there answer. May be this thread will helpful to all who really willing to get knowledge. ...

Interview question - Finding numbers

Hi, I just got this question on a SE position interview, and I'm not quite sure how to answer it, other than brute force: Given a natural number N, find two numbers, A and P, such that: N = A + (A+1) + (A+2) + ... + (A+P-1) P should be the maximum possible. Ex: For N=14, A = 2 and P = 4 N = 2 + (2+1) + (2+2) + (4+2-1) N = 2 + 3 ...

interview gone wrong: whiteboard folies

Back in March, I had my first interview for software engineering within the company I work as tech support. I didn't manage to get the job as I was shot off at the whiteboard coding challenge, which I found overwhelmingly scary (although my code was not 100% well, it wasn't totally bizarre - in my opinion, it only served to show I wasn't...

How to sort an array using minimum number of writes?

My friend was asked a question in his interview: The interviewer gave him an array of unsorted numbers and asked him to sort. The restriction is that the number of writes should be minimized while there is no limitation on the number of reads. ...

How to define 'final' member functions for a class.

Is it possible to make my member functions final as in Java, so that the derived classes can not override them? ...

What's the origin of asking interviewees to manually parse a string as an int?

I'm wondering, what's the origin of asking interviewees to manually parse a string as an int? (without relying on any casting/type-conversion that may be built into the language). Is this a standard question, suggested from a book or list or something? Has anybody else here on SO gotten asked this particular question during an interv...

Find the 2nd largest element in an array with minimum # of comparisom.

For an array of size N, what is the # of comparisons required? ...

What is the function try block handler?

I came across this question recently - What is function try block handler? Also, where would it be useful? ...

array is of same type and linked list is of different type

In an interview when I ask the recent graduate students that what is the difference between array and linked list, the first answer normally is "In array you have same data types and in the linked list you can have different data types." When I told them to explain they will say that they have just read it somewhere or that they don't kn...

How to find average of top half of N numbers?

Given N arbitrary integers, how to find average of top half of these numbers? Is there an O(n) solution? If not is it possible to prove that it's not possible? ...

What happens if you specify max heap size greater than available RAM

Asked in an interview. What happens if you specify max heap size (Xmx) greater than available RAM? I also wonder what happens if you specify min heap size (Xms) greater than available RAM? ...

Examples of Design Patterns used in JDK

Possible Duplicate: Examples of GoF Design Patterns At an interview a while back I was asked for some examples of Design Patterns within the JDK. Off the top of my head I was able to identify Flyweight - as used in the String pool Singleton - in java.lang.Runtime Iterator - as used on Collections classes Not that many. Wh...