interview-questions

custom implementation of interface methods

Hello all, I have a doubt in this scenario, I have posted some example code here.... public interface a{ public void m1(); public void m2(); public void m3(); . . . public void m100(); } public class A implements a{ public void m3(){ // implementation code ...

How to prepare an interview for Ruby on Rails developer position?

Background about myself: I have about 3 years experience working in Java/J2EE. I am currently pursuing MS in Software Engineering at a reputed university. I have done several classwork projects on Ruby on Rails and can be considered at Intermediate level expertise with ROR. I have an interview coming up next week for a Ruby on Rails de...

Is there an industry standard programming assessment test?

I am about to conduct some interviews for a new role at our company and would like to know if there is an industry standard assessment test or organisation that provides this. I recall writing an entry test a few years ago that had an acronym as a name, but I cannot remember what it was. Thanks. ...

What can be Questions and Answers for Interview on job position on Objects Recognition and Computer Vision?

What can be Questions and Answers for Interview on job position for objects recognition and Computer vision? Please only Qs with links to As. Please keep being on topic (no general Qs). ...

drawing circle without floating point calculation

This is common interview question (according to some interview sites) but I can find no normal answers in Internet - some are wrong and some point to complex theory I expect not looked for in interview (like Bressenham algorithm). The question is simple: The circle equation is: x^2 + y^2 = R^2. Given R, draw 0,0-centered circle ...

How to remove characters from a string?

Hi, (my first post was not clear and confusing so I've edited the question) I was studying string manipulation. You can use strlen() or substr() but cannot rely on other functions that are predefined in libraries. Given string $string = "This is a pen", remove "is" so that return value is "Th a pen" (including 3 whitespaces). Remo...

PHP Interview questions

Hi, does anyone have any thoughts on what would be considered good technicaly interviews for new php programmers. Im not meaning the little questions that are intended to know language specific intricacies but more on larger interview questions that potential employees may take an hour or 2 to solve in their own time and then come back ...

Need an algorithm for this problem

There are two integer sequences A[] and B[] of length N,both unsorted. Requirement: through the swapping of elements between A[] and B[]( can randomly exchange, not with same index), make the difference between {the sum of all elements in A[]} and {the sum of all elements in B[]} to be minimum. PS: actually,it is an interview question...

How can I tell if a candidate is a good Sharepoint Architect / Developer ?

I need to interview some people for a position as a Sharepoint Architect / Developer role. While I am proficient in .NET, I have worked very little with Sharepoint, so I am unsure how to test the candidates Sharepoint skills. Do you have any suggestions for tests I can throw at the candidates ? Please suggest questions I can ask the c...

PHP job interview questions?

Hello, I'm going to attend a job interview on Friday this week. It's an interview for a position of PHP programmer (the company doesn't do websites so I guess they just need somebody to administer their website). I'm expecting there will be more people at the interview and that we will be given some simple questions or tasks in PHP so ...

Best algorithm for finding the combination of a word?

Possible Duplicate: How to find all possible subsets of a given array? so say you have ab you can have a,b,ab whats the best way of doing this? ...

Interview question: about Java serialization and singletons

In an interview the interviewer asked me the following question: is it possible to serialize a singleton object? I said yes, but in which scenario should we serialize a singleton? And is it possible to design a class whose object can not be serialized? ...

What are good interview questions for SSRS and Business Intelligence?

We're looking to hire a business intelligence developer - knowledgeable in SSAS, SSRS, data warehousing, etc. My job in the interview process will be specifically to vet the candidate on SQL Reporting Services. Assuming a 60 minute interview, what sort of questions or challenges might be effective in determining a developer's level of k...

Interview Question: .Any() vs if (.Length > 0) for testing if a collection has elements

In a recent interview I was asked what the difference between .Any() and .Length > 0 was and why I would use either when testing to see if a collection had elements. This threw me a little as it seems a little obvious but feel I may be missing something. I suggested that you use .Length when you simply need to know that a collection ha...

One-way flight trip problem.

You are going on a one-way indirect flight trip that includes billions an unknown very large number of transfers. You are not stopping twice in the same airport. You have 1 ticket for each part of your trip. Each ticket contains src and dst airport. All the tickets you have are randomly sorted. You forgot the original departure ai...

Algorithms for finding the intersections of intervals

I am wondering how I can find the number of intervals that intersect with the ones before it. we want to know he number of pairs (i, j), with i < j, such that Internal i ∩ interval j = ∅. For example for the intervals [2, 4], [1, 6], [5, 6], [0, 4], the output should be 2. from [2,4] [5,6] and [5,6] [0,4]. So now we have 1 set of inter...

How to determine whether a linked list contains a loop?

Possible Duplicates: find whether a loop in a linked list without two pointers How to determine if a linked list has a cycle using only two memory locations. Best algorithm to test if a linked list has a cycle During a preparation for a job interview, I encountered the following question: How can you determine whether a l...

Find three numbers appeared only once

In a sequence of length n, where n=2k+3, that is there are k unique numbers appeared twice and three numbers appeared only once. The question is: how to find the three unique numbers that appeared only once? for example, in sequence 1 1 2 6 3 6 5 7 7 the three unique numbers are 2 3 5. Note: 3<=n<1e6 and the number will range from 1 ...

Problem with late binding!

Hi everyone, i was asked this question in an interview. late binding is dynamically identifying the symbol during the runtime as far as my knowledge is concerned.please correct me if i am wrong. i was asked a question like what are some of the problem that we would face when we use late binding in c++. i was actually out of my own ide...

read-only memory and heap memory

hi, AFAIK, string literals are stored in read only memory in case of C language. where is this actually present on the hardware. as per my knowledge heap is on RAM.correct me if i am wrong. how different is heap from read only memory? is it OS dependant? ...