Programming Code Interview Questions
Questions Answers Views Company eMail

Write a program which has a function and that function should take 2 or 3 or any number of strings and it should return the largest common prefix of all those strings. If there is no common prefix it should return an empty string. for eg:- INPUT OUTPUT glo {glory,glorious,glod} gl {glad,glow} {calendar,phone} empty string

Mind Tree,

2 5307

Write a function which accepts list of nouns as input parameter and return the same list in the plural form. Conditions: i) if last letter is r then append s ii) if word ends with y then replace it by ies iii) call this function in main() and produce the required output. for eg:- if chair is input it should give chairs as output.

Mind Tree,

3987

program to reverse the order of words in a string.

Mind Tree,

2 9687

program to reverse the order of digits in a given number of any length.

Mind Tree,

1 6530

program to check if a number is "perfect number".

Mind Tree, SoftSol,

1 8813

program for addition of fraction(M/N + P/Q = Y/Z)

Mind Tree,

1 4955

program for string reverse(eg:- i am boy -> boy am i)

Black Pepper, Infosys, Mind Tree,

8 16749

program for straight line(y=mx+c)

Mind Tree,

5549

Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number.

Infosys, Mind Tree,

1 5638

Write a program to convert postfix expression to infix expression.

Mind Tree,

4110

Write a program to count 3Letter, 4Letter and 5Letter words from a file and print the number of 3Letter, 4Letter and 5Letter words. Delimiter is space, tab, hifen. Also we should not consider the line in the file after we encounter # in that line.

Mind Tree,

7496

Write a program to count the number of characters, number of words, number of line in file.

Mind Tree,

2 11801

Write a program to input an integer and - display the reverse - display the sum of each digit - should include logic that considers the input number as any number of digits long

Mind Tree,

2 12768

write a Program to copy the string using switch case.

Mind Tree, Wipro,

3435

write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

2219


Un-Answered Questions { Programming Code }

In LSMW , what does the following error mean and how to rectify it : Incorrect interface data for set 78 in method C . This error is occuring in idoc processing step of LSMW.

2128


how to track links visited in google using iframes

2278


I need your help, i need a Turbo C code for this problem.. hope u'll help me guys.? Your program will have a 3x3 array. The user will input the sum of each row and each column. Then the user will input 3 values and store them anywhere, or any location or index, temporarily in the array. Your program will supply the remaining six (6) values and determine the exact location of each value in the array. Example: Input: Sum of row 1: 6 Sum of row 2: 15 Sum of row 3: 24 Sum of column 1: 12 Sum of column 2: 15 Sum of column 3: 18 Value 1: 3 Value 2: 5 Value 3: 6 Output: Sum of Row 1 2 3 6 4 5 6 15 7 8 9 24 Sum of Column 12 15 18 Note: Your program will not necessary sort the walues in the array Thanks..

2802


write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used

4298


How to swap two ASCII numbers?

2438






What is the functionality of SetForegroundWindow?

568


Design an implement of the inputs functions for event mode

2957


what is runtime class?

2232


Write a Program to find the reverse of a given number.

486


Sir... please give some important coding questions asked by product companies..

1793


Code for Presenting Parent/Child Data in a Data Grid Row?

2107


plz send code for feature rich resume builder in j2ee frontend:J2EE Backend: DB2 Express

3183


In a gymnastic competition, scoring is based on the average of all scores given by the judges excluding the maximum and minimum scores. Let the user input the number of judges, after that, input the scores from the judges. Output the average score. Note: In case, more than two judges give the same score and it happens that score is the maximum or minimum then just eliminate two scores. For example, if the number of judges is 5 and all of them give 10 points each. Then the maximum and minimum score is 10. So the computation would be 10+10+10, this time. The output should be 10 because 30/3 is 10.

2376


Write a Program to find the sum of digits of a given number until the sum becomes a single digit.

515


Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.

4571