Code Snippets Interview Questions
Questions Answers Views Company eMail

program for straight line(y=mx+c)

Mind Tree,

5729

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 6104

Write a program to convert postfix expression to infix expression.

Mind Tree,

4349

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,

7677

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

Mind Tree,

2 12268

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 13189

write a Program to copy the string using switch case.

Mind Tree, Wipro,

3625

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

2449

source code for delete data in array for c

TCS,

1 5620

1. Write a program that performs the following. The user inputs a number and then enters a series of numbers from 1 to that number. Your program should determine which number (or numbers) is missing or duplicated in the series, if any. For example, if the user entered 5 as the initial number and then entered the following sequences, the results should be as shown. Input Sequence Output ---------------------- --------------- 1 2 3 4 5 Nothing bad However, if 7 were the high number, the user would see the results on the right for the following number entries: Input Sequence Output ---------------------- --------------- 1 3 2 4 5 Missing 6 Missing 7 And if 10 were the high number and the user entered the numbers shown on the left, note the list of missing and duplicate numbers: Input Sequence Output ---------------------- --------------- 1 2 4 7 4 4 5 10 8 2 6 Duplicate 2 ( 2 times) Missing 3 Duplicate 4 ( 3 times ) Missing 9

1 12672

Could u please tell me any UNIX scripts that 'll lead to find the network latency of the servers.?or else any unix command to find the network latency of a server?Thnx in advance...

Cap Gemini,

1859

How to palindrom string in c language?

Google,

6 9844

In QTP one function can return more than one value?

Mind Tree,

3 7114

write a c-program to display the time using FOR loop

HCL,

3 9202

Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.

ADP, Amazon, HCL, IBM, Infosys, Satyam, TCS, Vimukti Technologies,

5 15832


Un-Answered Questions { Code Snippets }

plz send code for Ecorps in j2ee frontend:J2EE Backend: DB2 Express

2559


how to create a Custom Scrollbar

2240


What is XML DOM Document?

445


Which keyword is alias for count keyword in php?

1825


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

2033


How to swap two ASCII numbers?

2661


What are nested elements in XML?

439


What is a well formed XML document?

427


Write a program to convert postfix expression to infix expression.

4349


Write a python program to count the number of vowels in a string?

633


How to get Dynamically Linked Comboboxes Set?

2198


Code for Two Classes for Doing Gzip in Memory?

2997


1.Why does only one copy of a servlet object get created? What happens if you want to remove an old servlet object currently running but do not want to stop the entire servlet engine? 2.How does one servlet object deal with interactions from many browser? (e.g. if your servlet ran an email site, how can it keep track of hundreds of users logging in, reading their mail, etc.)

2539


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2513


write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.

4248