Code Snippets Interview Questions
Questions Answers Views Company eMail

How to write QTP script to exit from loop? suppose I am using parametize functionality and in data table there is 3 password corresponding 3 username and second pasword is wrong. Now I want to exit after completion of second iteration and continue with third iteration.

2 7846

how to write a program to accept names and marks of 10 students from the user and display the names and markes of only the passed students. Marks greater than or equal to 35 is considered as pass.

4 9519

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 4073

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 9151

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

Aricent, Cisco, Directi, Qualcomm,

16 34718

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

Microsoft,

8 11951

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 12760

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

Implement a t9 mobile dictionary. (Give code with explanation )

Amazon, Peak6, Yahoo,

1 15339

programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h

1 4057

What is the main difference between STRUCTURE and UNION?

HCL,

13 187421

What is "far" and "near" pointers in "c"...?

3 6267


Un-Answered Questions { Code Snippets }

Write a python program to check if a number is a prime number?

475


Code for Creating a Form Using PlaceHolder Controls?

2356


What is the functionality of SetForegroundWindow?

568


Write a (n) algorithm that sorts n distinct integers, ranging in size between 1 and kn inclusive, where k is a constant positive integer. (Hint: Use a kn-element array.)

4453


What is a cdata section in xml?

328






Write a simple encryption program using string function which apply the substitution method.

5540


Code for IP Address Comparison and Conversion in C#?

3994


In java, why do we set thread priority, when we know that there is no guarantee by which a thread should be execute?

2074


Is there any way to open notepad within php?

1711


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 ?

2268


how to pass data between pages using Frames

2155


write a code that user can choose/alter Body Text Size

1614


Code for using a Hot Key in an ActiveX Control?

1366


can any one give me code to keyed a flat file and used chain in RPGLE to search any item

1710


write a program that reverses the input number of n.Formulate an equation to come up with the answer.

7043