What interview questions should people expect as a junior C and C++ developer? Code questions or more of theory? Solutions in pseudo-code or in C code?
Maybe I'm misinterpreting the word "junior", but I have no idea what would anyone ask me if I have no C work experiences. I'm bit afraid of tricky questions with pointers, so I'd like to...
Hi,
The questions shown below is an interview question
Q)You are given have a datatype, say X in C.
The requirement is to get the size of the datatype, without declaring a
variable or a pointer variable of that type,
And, of course without using sizeof operator !
I am not sure if this question was asked before in SO.
Thanks and ...
I'm a Python and iPhone developer, with some previous C# experience. I've been asked to do an initial screen of some candidates so someone with more experience in Android is going to be following up.
I did some searching on Stackoverflow and Google but wasn't able to find a good list of interview questions for an Android developer. Does...
I'm having a hard time wrapping my head around non-static nested classes in Java. Consider the following example, which prints "Inner" and then "Child".
class Outer {
class Inner {
Inner() { System.out.println("Inner"); }
}
}
public class Child extends Outer.Inner {
Child(Outer o) {
o.super();
Syste...
Given a linked list of numbers. Swap every 2 adjacent links. For example, if a linked list given to you is:
a->b->c->d->e->f
Output expected:
b->a->d->c->f->e
Every 2 alternate links have to be swapped.
I have written a solution here. Can you suggest me some other solution. Can you comment on my solution and help me better writ...
Yesterday I took part in an interview for a Java position in a company and one of the questions was
Does Java pass by reference or by
value?
In the heat of the moment I (mistakenly) confidently said it passed by reference, possibly because I come from a C/C++ background. Unfortunately after the interview I'd realised my terrible ...
Today in my interview, the interviewer asked: printf is a function and every function returns something; int, void, float, etc. Now what does printf return as it's a function?
...
I've been interviewing a lot of .NET programmers lately and I haven't met one that knows what IDisposable is or what it is used for. Is it really unreasonable to expect someone with 4-6 years experience to know that?
...
Hi All,
Recently I attended interview in java, the interviewer asked a question like below:
I have a request which go throgh A,B,C modules and response go back throgh A , in module A I need to talk to database and again in module C I need to talk to database, so in this situation how many connections you will open and where do you clos...
There are a lot of good interview questions (even "puzzles") for software developers here on SO, but I was wondering if anyone had some good questions for a front-end developer position. We're looking for someone who knows HTML+CSS+JS.
Some of the obvious questions:
Have you worked with javascript libraries? - follow-up: which, and wh...
I was today asked in an interview over the Thread concepts in Java? The Questions were...
What is a thread?
Why do we go for threading?
A real time example over the threads.
Can we create threads in Spring framework service class.
Can flex call a thread?
I did not answer any questions apart from definition of Thread, that too I jus...
I faced a rather simple question in an interview
Why do we use class keyword for declaring classes?
Could anyone just tell me as to how to answer it?
...
I am preparing for my interview tomorrow -- I need the answer to this question:
How can you print 1 to 10 & 10 to 1 by using recursion with single variable
...
What are some good java interview questions and answers regarding generics and annotations?
...
Given a phone keypad as shown below:
1 2 3
4 5 6
7 8 9
0
How many different 10-digit numbers can be formed starting from 1? The constraint is that the movement from 1 digit to the next is similar to the movement of the Knight in a chess game.
For eg. if we are at 1 then the next digit can be either 6 or 8
if we are at 6 then the ne...
We can use closest(selector) to find the first ancestor element that matches the selector. It travels up the DOM tree until it finds a match for the selector. But what if I want to travels down the DOM tree until it finds a match for the selector? Is there any jQuery function for doing this? Or do I need to implement this using breadth-f...
US coin values:
.01, .05, .10, .25 (*)
What is an algorithm to determine what configuration(s) of US coins can be used to match every value from .01-.99 using the fewest coins possible?
...
Possible Duplicate:
Interview Q: given an array of numbers, return array of products of all other numbers (no division)
I came across an interview task/question that really got me thinking ... so here it goes:
You have an array A[N] of N numbers. You have to compose an array Output[N] such that Output[i] will be equal to mul...
Hey guys,
I have couple of interviews coming up for internships at google,ms, and etc.
So I am wondering what are some good sites to use to prepare and brush up on my knowledge.
Thanks
...
I am a software developer with 10+ years commercial experience, I am comfortable with nearly all of imperative languages. But I realized that most of employers prefer not candidates who is able to deliver good software but those who is trained to answer questions like "what are ten differences between pointers and references in C++" or "...