interview-questions

Programming 'projects' for interviews?

Doing the interview round at present, and one place had a 'small test' for candidates. We were asked to write a requirements doc, specs, design doc, test plan, as well as code and build a small web app with database backend, document the tests, and be required to demo it at a future interview. I did some estimates and figured a week if...

Simple VB or C# questions for an interview?

I'm conducting an interview in 45 min (my second ever!) for a candidate who's pretty junior and states she knows VB and C#. I do not have any experience in either of those languages. Does anyone have any good simple interview questions for these languages that I can ask that will be informative without being too intimidating? Note: I'...

What are some questions to ask when choosing between two equal programmers?

I'd like to keep this objective and non-argumentative. Read below as to why this is NOT geared towards subjective answers. An obvious thing to look for when hiring a programmer is experience and knowledge. But what if they're equal? For instance, if you have two programmers that are both entry level with equally low experience and very...

What is the function of symbol table in front-end and back-end of compiler?

What is the function of symbol table in front-end and back-end of compiler? ...

Prolog - member predicate one-liner

Interview question! This is how you normally define the member relation in Prolog: member(X, [X|_]). % member(X, [Head|Tail]) is true if X = Head % that is, if X is the head of the list member(X, [_|Tail]) :- % or if X is a member of Tail, member(X, Tail). % ie. if member(X, Tail) is true. D...

How to implement a double linked list with only one pointer?

How to implement a double linked list with only one pointer? It takes O(1) time to find the prev and next Node. struct Node { int val; Node* p; }; ...

C# Improved algorithm

I have been asked at interview (C# 3.0) to provide a logic to remove a list of items from a list. I responded int[] items={1,2,3,4}; List<int> newList = new List<int>() { 1, 2, 3, 4, 5, 56, 788, 9 }; newList.RemoveAll((int i) => { return items.Contains(i); }); 1) The interviewer replied that the algorithm i had employed will gradual...

What does this code-snippet do?

Question: Given the following code snippet: bool foo(int n) { for(int i=3;i<sqrt(n)+0.5;i+=2) { if((n%i)==0){ return false; } } return true; } Can you figure out what is the purpose of the function foo ? Well,On first look it may seems that foo is checking for prime numbers but it is not...

What is a good 'FizzBuzz' question for a SQL programmer?

We are looking to hire a SQL programmer and need a good screening question similar to the FizzBuzz question but for SQL. While it is certainly possible to write a FizzBuzz solution using SQL, I think the effort is misplaced. The FizzBuzz question assesses coding fundamentals such as looping, conditionals, output, and basic math. With S...

Using a "take-home" coding component in interview process

In recent interviews I have been asking candidates to code through some questions on the whiteboard. I don't feel I'm getting a clear enough picture of the candidates technical ability with this approach. Granted, the questions might not be good enough, maybe the interview needs to be longer, etc, but I'm wondering if a different appro...

What to look for in a candidate with over 8 years of experience in C, C++, Linux Application Development?

I need to interview a candidate with over 8 years of experience in Linux using C/C++. What would be the best way to judge such a candidate? Do I need to test his understanding of algorithms? Do I need to test his programming skills by asking to write a program? How should I test his understanding of Linux? ...

Object Oriented Design Interview Question

Any advice on solving this problem? ...

How would you design a Calendar app similar to outlook (Interview Question)

Calendar should have functions like, User should be able to set an appointment based on time and date. Calendar will warn user if a conflicted appointment occur. Please describe what Classes, data structure and design pattern you will use. ...

Tech Interview Question-Is my approach correct?

Recently I was interviewed by a Software Company. I didnt make it through the first round itself. Maybe I was too slow in forming ideas or solving problems and wasnt good enough for the company that i interviewed for. I would like to have a second opinion about my interview and I cant find anyone better than the stackoverflow community...

DB Operations in asp.net with c#

I have a question from an interviewer: If two users open the same page, one person adding 105 record and another person deleting the same record, what happens in this scenario? How do I answer this? ...

Swapping two variable value without using 3rd variable

One of the very tricky question asked in an interview... we need to swap the values of two variables like a=10 and b=15 Generaly to swap two variables values, we need 3rd variable like.. temp=a a=b b=temp Now the requirement is, swaping value of two variable values without using 3rd variable? How can be accopmplish this? ...

Best Possible algorithm to check if two linked lists are merging at any point? If so, where?

Hello, This is an interview question for which I don't have an answer. Given Two lists, You cannot change list and you dont know the length. Give best possible algorithm to: Check if two lists are merging at any point? If merging, at what point they are merging? If I allow you to change the list how would you modify your algorithm? ...

What question should be asked to test the interview candidate's knowledge of references in C++ ?

Hi, If a candidate says that his knowledge in C++ is 7/10 and you want to test his knowledge of references in C++, what question will you ask? I thought of the following: Write a function declaration that takes a pointer as reference with default values and ask him to figure out a mistake and explain it. Pass a literal as argument to...

Interview questions to assess Linux C programmers

Hi Guys, I'm not quite a c programmer and I'm not joking that I'll interview a guy with 3 years experience in c under linux . in his cv, he said he is quite experienced with c programming under linux . so my question is if you are goning to this "c linux" guy, what question or questiones you will ask to make sure that this guy does hav...

which of the statement are true about the passport Authentication?

ASP.Net 3.5 using C# a.The passport sdk must be install. b.Passport authentication is a free service for all sites provided by the microsoft corporation. c.Passport Authentication provides persistent authentication across sessions. d.Passport Authentication requires a network path between the client and the microsoft p...