Programming Code Interview Questions
Questions Answers Views Company eMail

Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.

ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,

21 45793

Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.

Mentor Graphics, Microsoft,

2 21373

Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.

Fusion Systems GmbH,

6 19189

Give a one-line C expression to test whether a number is a power of 2.

Microsoft,

10 23781

Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.

Wipro,

2 9960

Give a very good method to count the number of ones in a 32 bit number. (caution: looping through testing each bit is not a solution)

Microsoft,

7 28210

program to Reverse a linked list

Aricent, Microsoft, Ness Technologies,

12 56982

write a program to Insert in a sorted list

Microsoft,

4 13458

Program to Delete an element from a doubly linked list.

College School Exams Tests, Infosys,

4 32138

Write a function to find the depth of a binary tree.

Adobe, Amazon, EFI, Imagination Technologies,

13 86033

Write a routine that prints out a 2-D array in spiral order

Microsoft,

3 16508

Write, efficient code for extracting unique elements from a sorted list of array. e.g. (1, 1, 3, 3, 3, 5, 5, 5, 9, 9, 9, 9) -> (1, 3, 5, 9).

Intel, Microsoft, TCS,

13 35145

Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if there is any element in the second list that is an element of the first list (fixed list)

Disney, Google, ZS Associates,

3 13254

Print an integer using only putchar. Try doing it without using extra storage.

2 19634

How to swap two variables, without using third variable ?

AB, ADP, BirlaSoft, Cisco, Cygnet Infotech, HCL, Hewitt, Honeywell, HP, IBM, Infosys, Manhattan, Microsoft, Mobius, Percept, Satyam, SofTMware, TCS, Wipro, Yamaha,

104 222998


Un-Answered Questions { Programming Code }

plz send code for manage group of hotels in j2ee frontend:J2EE Backend: DB2 Express

2404


What is the code of Password Recovery or Forget your password? Plz tell in c # language.

3555


How can I Draw an ellipse in 3d space and color it by using graph3d?

2119


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2006


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4127






Write a routine to implement the polymarker function

4367


Write code that allows to create only one instance of a class?

482


create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file

2206


What is the functionality of GetWindowTextLength?

593


write a program in java to solve a system of n-variabled simultaneous equations using the guassian elimination method. let the maximum possible value of n be 100. run the program using hypothetical values for a set of 10- variables simultaneous equations. print out the program, the input equation and the results generated by the program.

4192


Code for Easily Using Hash Table?

2377


I have this code in leftmenu.ascx page..now on leftmenu.ascx.cs page i want to access id values. but i dont want to check manually like Accommodation,Arts etc.. In cs file my code is like string str[]; //this array contains some values say 10 strings for(i=0;i<100;i++) { if(str[i]==id id.visible=true } i.e.i want to travel for each element of str and each value of id.if they match then id.visible=true how to do?

3802


What is the functionality of FindWindow?

559


develop a program to calculate and print body mass index for 200 employees

2202


I am trying to pass the string firstName from a Servlet called SampleServet. I am running this on eclipse and it tells me that "the value for annotation attribute must be a constant expression. I don't understand why it is giving me this error. @PersonAnnotation(name = SampleServlet.firstName) public class AnnotationClass{

1802