Programming Code Interview Questions
Questions Answers Views Company eMail

Write a code snippets to find greatest and least of any number of inputs without taking the help of array

Infosys, Wipro,

1 4789

1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.

IBPS, Infosys, TCS,

8 60542

Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list)

Nagarro,

3 14902

Counting in Lojban, an artificial language developed over the last fourty years, is easier than in most languages The numbers from zero to nine are: 0 no 1 pa 2 re 3 ci 4 vo 5 mk 6 xa 7 ze 8 bi 9 so Larger numbers are created by gluing the digit togather. For Examle 123 is pareci Write a program that reads in a lojban string(representing a no less than or equal to 1,000,000) and output it in numbers.

4 8987

Where now stands that small knot of villages known as the Endians, a mighty forest once stood. Indeed, legand has it that you could have stoodon the edge of the wood and seen it stretch out for miles, were it not for the trees getting in the way. In one section of the forest, the trees stood in a row and were of hight from 1 to n, each hight occurring once and once only. A tree was only visible if there were no higher trees before it in the row. For example, if the heights were 324165, the only visible trees would have been those of height 3,4 & 6. Write a Program that takes an array of integers representing the heights of the trees in the row as input and prints the list of the visible trees.

ABC, Nagarro,

2 8149

How do I write a program to print proper subset of given string . Eg :input: abc output:{},{a},{b},{c},{a,b},{a,c},{b,c}, {a,b,c}.I desperately need this program please mail me to saravana6m@gmail.com

Deshaw, Infosys,

11 35706

How to get the version(major,minor,revision ) of VB6.0 delphi code .I am able to fetch dll file of vb6.0 but not vba file .Can u send me the code snippet in delphi to get the value for vb6.0.

3454

i wrote from two tables (employee and department) 1.select * from employee,department; (it is cartesian product) but 2.select * from employee department; (?????????????????) by default it displays the employee table,what is the reason it is not taking department ??? mail @ mak2786@gmail.com Arunkumar

1 3902

How to reverse a String without using C functions ?

Matrix, TCS, Wipro,

33 102277

How we will connect multiple client ? (without using fork,thread)

TelDNA,

3 7022

how to print a message to console without using main() function?(do not use even static blocks also.)

Google, Zoho,

14 26087

To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates.

Amazon, BITS, Microsoft, Syncfusion, Synergy, Vector,

19 125088

to remove the repeated cahracter from the given caracter array. i.e.., if the input is SSAD output should of SAD

Synergy,

6 8094

How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?

Eastcom Systems,

1945

Find the largest number in a binary tree

Infosys,

7 28117


Un-Answered Questions { Programming Code }

Write a Program for matrix multiplication.

506


hai, i want to know how the connectionpool manager work in the java or netbeans.Anybody having the exact code plz give to me i have no idea about that so help me plz

2605


Write a program that print in screen a tree with its height taken from user by entering number of 4 digits and find the odd numbers then calculate the sum of odd numbers so he get the height of tree?

2915


Coding for Synchronizing Cache Access in ASP.NET?

3126


write a program that creates a sequenced array of numbers starting with 1 and alternately add 1 and then 2 to create the text number in the series , as shown below. 1,33,4,6,7,9,............147,148,150 Then , using a binary search , searches the array 100 times using randomly generated targets in the range of 1 to 150

3269






Code for IP Address Comparison and Conversion in C#?

3994


write a program that can LOCATE and INSERT elements in array using c++ programming languages.

3443


an on-line examination application using html jsp servlet and jdbc. including session management and cookies

4472


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

3274


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

3721


How to find the list of users who have two codes su01 and pfcg? thank in advance all.

1697


A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect

2407


write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation

2407


Bubble Sort. java thereafter the user will be asked to inpout the size of the list,sort the list in ascending order and display the sorted list in a horizontal manner???

2518


Code for Using Keyboard Events?

2136