Programming Code Interview Questions
Questions Answers Views Company eMail

How to convert string containing decimal point into integer in java? For example given a string like "3.14" as input how to get integer 3 as result.

7 30891

Write a C function to search a number in the given list of numbers. donot use printf and scanf

Honeywell, TCS,

5 14455

plz send me all data structure related programs

2 4830

what is the difference between int &r and int& r

3 8748

plz send me all data structure related programs

2 4834

inner join,outerjoin,trigger,stored procedure explain with code snippets?

IBM,

1 7951

How can u say that a given point is in a triangle? 1. with the co-ordinates of the 3 vertices specified. 2. with only the co-ordinates of the top vertex given.

1 4071

You are given any character string. Find the number of sets of vowels that come in the order of aeiou in the given string. For eg., let the given string be DIPLOMATIC. The answer returned must be "The number of sets is 2" and "The sets are "IO and AI". Vowels that form a singleton set must be neglected. Try to post the program executable in gcc or g++ or in java.

3 9146

Given n nodes. Find the number of different structural binary trees that can be formed using the nodes.

Aricent, Cisco, Directi, Qualcomm,

16 34701

How will u find whether a linked list has a loop or not?

Microsoft,

8 11947

An array of size 5X5 is given to us. The elements from 1 to 25 are to be inserted in the array, such that starting from a particular position for an element i, the next element i+1can be inserted only at the mentioned positions (u,v), and if these all positions are occupied then it returns giving a count of how many positions have been occupied in the array: (u,v) = (x+/-3 , y) (u,v) = (x , y+/-3) (u,v) = (x+/-2 , y+/-2). Example: if the starting element is 1 with the given positions (1,2), then next element 2 can be placed at any one of the positions marked with *. _ _ _ _ _ 1 _ _ _ * _ _ _ _ _ _ _ * _ _ * _ _ _ _

Nagarro,

6396

Definition of priority queue was given. We have to implement the priority queue using array of pointers with the priorities given in the range 1..n. The array could be accessed using the variable top. The list corresponding to the array elements contains the items having the priority as the array index. Adding an item would require changing the value of top if it has higher priority than top. Extracting an item would require deleting the first element from the corresponding queue. The following class was given: class PriorityQueue { int *Data[100]; int top; public: void put(int item, int priority); // inserts the item with the given priority. int get(int priority); // extract the element with the given priority. int count(); // returns the total elements in the priority queue. int isEmpty(); // check whether the priority queue is empty or not. }; We had to implement all these class functions.

Nagarro, Wollega University,

4398

Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37

Nagarro,

2051

how to store and retrive a set of values without using an array

FCS, HCL, Maximus,

8 12741

I am developing a web application using google map api.I want to update the map inside the div control within update panel. I got other controls updated but map doesn't get updated.I do not not want to update map whenever unnecessary controls are fired at server side.How could it be achieved?

2156


Un-Answered Questions { Programming Code }

how to insert fname,lname,designation values into database while click on the submit button using windows authentication mode?

2199


How to get Filename from Path?

530


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

2216


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

1785


write a program using virtual function to find the transposing of a square matrix?

2845






output for printf("printf");

1985


can you please write a program for deadlock that can detect deadlock and to prevent deadlock.

2748


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3131


Write a Program to find the number of words in a sentence.

532


1+1/2!+1/3!+...+1/n!

1945


Ask the user to input three positive integers M, N and q. Make the 2 dimensional array of integers with size MxN, where all the elements of I (I = 1,…,M) line will be members of geometrical progression with first element equal to the number of line (I) and denominator q.

3397


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.

3991


Write Down Steps Using SAX Parser

2189


How to find No of classes,Packages,No of Methods per Classes and Depth of Inheritance for selecting source code in windows form application using c# .net? (Source code is input Program. It may be Java or .net) Please help me..) Thanks..)

2233


What is the functionality of GetWindow?

581