Monday, 23 May 2011

Technical interview "C" questions FAQ

What is the data structures used to perform recursion? Stack. Because of its LIFO (Last In First Out) property it remembers its caller, so knows whom to return when the function has to return. Recursion makes use of system stack for storing the return addresses of the function calls. Every recursive function has its equivalent iterative (non-recursive) function. Even when such equivalent iterative procedures are written, explicit stack is to be used.http://materialsforjob.blogspot.com What is a memory leak? Its an scenario where the program has lost a reference to an area in the memory. Its a programming term describing the loss of memory. This happens when the program allocates some memory but fails to return it to the system http://materialsforjob.blogspot.comprintf() Function-...

Tuesday, 17 May 2011

Amazon interview questions

Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can’t pass the value k to any function also. What are the 4 basics of OOP? Define Data Abstraction. What is its importance? Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 2 numbers. Find the missing numbers. Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren’t present. Given a string,find the first un-repeated character in it? Give some test cases You are given a dictionary of all valid words. You have the following 3 operations permitted on a word: delete a character, insert a character, replace a character. Now given two...

Monday, 16 May 2011

Technical Interview C++ Interview Questions

1. What is a class? Ans: class is a user defined data type,in which data members and member functions are defined.A class can also be defined as a classification/category of objects that have similar attributes and behaviour.For example, Automobile is a category of objects that have similar attributes, such as wheels, engine, doors, shape, color, cylinders etc., and behaviours, such as start, run, move, turn etc. Car is an instance of automobile which has different values for the attributes (4 wheels, one engine, 2 or 4 doors, 4/6/8 cylinders, etc), http://materialsforjob.blogspot.com/ 2.What is public, protected, private? Ans: public, protected, private are access specifiers that is used to implement encapsulation of data at various level. Private: * Can be data or method...

Tuesday, 10 May 2011

PHP Interview Questions and answers 2

sessions and cookiesFace to face technical interviews, questions related to sessions and cookies will pop up regularly. Since most of the developers are familiar with these sort of basic php questions they tend to ask more tricky questions, but if you have the correct idea then it is easy to answer any of those tricky questions. Let’s have a look on potential questions, Where is the sessions are stored? Sessions are stored in server side and it is accessed by a unique id which is known as the session-id where each user/visitor is assigned when they access your website. How the session-id is propagated within your website? Basically, there are 2 methods either store it in a cookie or propagated in the URL. Session security questions will not be asked in an entry level interviews...

Saturday, 7 May 2011

C++ developer interview questions

Will the following program execute?void main() { void *vptr = (void *) malloc(sizeof(void)); vptr++; } How about this one? void main() { char *cptr = 0?2000; long *lptr = 0?2000; cptr++; lptr++; printf(” %x %x”, cptr, lptr); }Will it execute or not? When the processor wakes up after power on, it goes to a particular memory location. What is that memory location called? What is the difference between Mutex and Binary semaphore? Write a program to set 2nd bit in a 32 bit register with memory location 0×200...

Sunday, 1 May 2011

Hardware architecture interview questions

Are you familiar with the term MESI? Are you familiar with the term snooping? Describe a finite state machine that will detect three consecutive coin tosses (of one coin) that results in heads. In what cases do you need to double clock a signal before presenting it to a synchronous state machine? You have a driver that drives a long signal & connects to an input device. At the input device there is either overshoot, undershoot or signal threshold violations, what can be done to correct this problem? For a single computer processor computer system, what is the purpose of a processor cache and describe its operation? Explain the operation considering a two processor computer system with a cache for each processor. What are the main issues associated with multiprocessor...

Search here for "Freshers Jobs"