First page Next page

Q109: struct n { int data; struct n* next}node; node *c,*t; c->data = 10; t->next = null; *c = *t; what is the effect of the last statement?
tags: microsoft sw programming

Q107: What is the scope of a static function in C ?
tags: microsoft sw programming C

Q196: What is the effective way of Device Independent Bitmap files management?
tags: microsoft hp programming sw windows

Q240: you have n resources and n threads .. what protocol do you use to ensure there is no deadlocking?
tags: google software

Q23: Why do you think you are smart.
tags: microsoft general

Q161: What is miss penalty and give your own ideas to eliminate it.
tags: microsoft intel amd nvidia hw comparch architecture hardware

Q10: Imagine you are standing in front of a mirror, facing it. Raise your left hand. Raise your right hand. Look at your reflection. When you raise your left hand your reflection raises what appears to be his right hand. But when you tilt your head up, your reflection does too, and does not appear to tilt his/her head down. Why is it that the mirror appears to reverse left and right, but not up and down?
tags: microsoft puzzle

Q42: I was given two lines of assembly code which found the absolute value of a number stored in twos complement form. I had to recognize what the code was doing. Pretty simple if you know some assembly and some fundamentals on number representation.
tags: microsoft sw programming hw

Q92: What is a far pointer (in DOS)
tags: microsoft sw programming

Q93: What is a balanced tree
tags: microsoft sw programming algorithms

Q118: Reverse the bits of an unsigned integer.
tags: microsoft sw programming

Q393: Write a C function to print the link list in reverse order.
tags: Microsoft C software sw programming

Q580: Write a function that given a list of items and weights return a random item in the list taking the weights into account
tags: amazon sw

Q227: There are a set of 'n' integers. Describe an algorithm to find for each of all its subsets of n-1 integers the product of its integers. For example, let consider (6, 3, 1, 2). We need to find these products : 6 * 3 * 1 = 18 6 * 3 * 2 = 36 3 * 1 * 2 = 6 6 * 1 * 2 = 12
tags: google math puzzle programming algorithm

Q91: Make the pointer aligned to a 4 byte boundary in a efficient manner
tags: microsoft sw programming

Q61: There are 3 ants at 3 corners of a triangle, they randomly start moving towards another corner.. what is the probability that they do not collide.
tags: microsoft sw math puzzle

Q59: A walk-through through the symbol table functions, lookup() implementation etc. - The interviewer was on the Microsoft Compiler team.
tags: microsoft sw programming

Q7: You've got someone working for you for seven days and a gold bar to pay them. The gold bar is segmented into seven connected pieces. You must give them a piece of gold at the end of every day. If you are only allowed to make two breaks in the gold bar, how do you pay your worker?
tags: microsoft puzzle

Q137: Difference between discretionary access control and mandatory access control?
tags: microsoft sun security networking

Q90: Declare a void pointer
tags: microsoft sw programming

Q570: Given a Data Structure having first n integers and next n chars. A = i1 i2 i3 ... iN c1 c2 c3 ... cN. Write an in-place algorithm to rearrange the elements of the array as A = i1 c1 i2 c2 ... in cn
tags: google sw

Q571: How many lines can be drawn in a 2D plane such that they are equidistant from 3 non-collinear points
tags: google puzzle math

Q56: Write a routine that prints out a 2-D array in spiral order!
tags: microsoft sw programming

Q94: Given a linked list with the following property node2 is left child of node1, if node2 < node1 else, it is the right child.
tags: microsoft sw programming

Q513: Given a 2-d int array in which the values WILL ALWAYS increase in both directions ie. a[i][n+1]>a[i][n] & a[z+1][y] > a[z][y]. Write a function to find whether a value is within this 2-d array in the fastest way possible.
tags: Microsoft software/sw C

Q117: Given a singly linked list, find the middle of the list.
tags: microsoft sw programming

Q27: What is your geographical preference?
tags: microsoft general

Q547: You have N threads and M resources. What protocol do you use to ensure no deadlocks occur?
tags: google sw

Q128: How do you use RSA for both authentication and secrecy?
tags: microsoft sw security

Q141: How is garbage collection done in java?
tags: microsoft sw programming java

Next page


b(ond)log