English (525)
General Aptitude (3287)
Puzzles (488)
Personal Skills (0) Ques--Input a number and then find the next higher number such that for both the number (inputted and the next higher number) in binary representation contains equal number os ones. Example: Input:3(0000000000000011) Ouput:5(0000000000000101) I want a solution in C/C++ language
2 11457A table containing decimal nos. from 1 to 100 and their roman Equivalent was given. We were required to write a function : char* ConverToRoman(int number) : to convert the given number( 1<=number<=100) into its numerical equivalent. I want a solution in C/C++ language
1 6642An array was given and we were required to write a function : int CalculateThirdHighest(int a[ ]) : which calculates the third highest number in the array. While coding in C remember to calculate the length of array using formulae length of array=sizeof(a)/sizeof(int). Because the number of elements of array were not passed as argument. i want a solution in C/C++ language
2515Two sentences are given and we were required to print the common word in the two sentences. Words were delimited by space, full stop, ? , ! and , . The trick in the question was that common word should be printed only once so if ur first sentence contains two word "how" and second contains "how" then in output how should be printed only once for this u can replace each matched word in second sentence by spaces . i want a solution in C/C++ language
2848We were required to write a program to check whether the given number was of the form 3^n. ( i.e. 3 to the power n). I knew that it can be done by bit manipulation but couldn't make out the logic. i want a solution in C/C++ language
1 5853There are two sorted arrays a1 and a2 of size n1 and size n2 respectively. array a1 is full array a2 has exactly n1(size of array a1) empty space. example a1[]=1234 a2[]=56789_ _ _ _ Write a function to merge these two arrays to form a sorted array without any extra memory use. i want a solution in c/c++ language
2 6520There is a lucky draw held every day. If there is a winning number eg. 1876, then all possible numbers like 1867 ,1687,1768 etc are the numbers that match irrespective of the position of the digits. Thus all these numbers qualify fr the lucky draw prize. Assume there is no zero digit in any numbers. Write a program to show all the possible winning numbers if a "winningnumber" is passed as an argument to the function. i want a solution in c/c++ language
2441there is a matrix N x N .Its elements consist of either value =1 or value=0. If there is a any zero in the row, then the output matrix should have all zeroes in that row. If there is a single zero in any column then that column should have all zeroes n the output matrix. write the function to perform these operations. i want a solution in c/c++ language
2353Alok and Bhanu play the following min-max game. Given the expression N = X - Y - Z where X, Y and Z are variables representing single digits (0 to 9), Alok would like to maximize N while Bhanu would like to minimize it. Towards this end, Alok chooses a single digit number and Bhanu substitutes this for a variable of her choice (X, Y or Z). Alok then chooses the next value and Bhanu, the variable to substitute the value. Finally Alok proposes the value for the remaining variable. Assuming both play to their optimal strategies, the value of N at the end of the game would be
8 2926010 green balls. You are allowed to move the balls between the boxes so that There are two boxes, one containing 10 red balls and the other containing when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is
7 23730The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries ans also write code at the same rate.Suppose 12 such programmers take 12 minutes to write 12 lines of code in total. How many lines of code can be written by 72 programmers in 72 minutes?
TCS,
12 44772rich man keeps me in pocket,poor man throws me away,kids eat me,i'm an english word -u-e-l who am i?
2 19045
Find the speed of the boat in still water if the river runs at 4 km/hr. The time taken by a Suresh to row the boat upstream is 3 as the time taken by him to row it downstream.
Find the missing number in the series: 2, 5, __ , 19 , 37, 75
If Rs.1260 is divided between between A, B and C in the ratio 2:3:4, what is C's share?
There is square of side 6 cm .A circle is inscribed inside the square Find the ratio of area of circle to the squqre .
THERE ARE 3 MIXTURES WHEN MIXED IN THE RATIO OF 3:4:5 PRICE WAS 240.WHEN MIXED WITH 6:4:9 PRICE WAS 340.WHAT'S THE PRICE WHEN MIXED IN 5:6:8 RATION PRICE IS
I HAVE APPEARED FOR ALLAHABAD BANK ON 21-02-10, I WANT TO KNOW THE SECTIONAL CUT OFF'S FOR CATEGORY.
Every station in N rail road issue every other station's ticket. some stations are added.Now they have to issue 46 more tickets. say the No.of stations after and before added.
If a person walks at 14 km/hr instead of 10 km/hr, he would have walked 20 km more. The actual distance travelled by him is?
what is the angle between two hands of a clock when time is 8-30
How many mashes are there in a sq. m of wire gauge. Each mesh being 8mm long X 5mm width
What is the difference between control module
Sunny ate 100 apples in five days, each day eating 6 more than the previous day. How many apples did he eat on the first day?
A train overtakes two persons walking along a railway track. The first one walks at 4.5 km.hr . the other one walks at 5.4 km/hr. the train needs 8.4 and 8.5 seconds respectively to overtake them, What is the speed of the train if both the persons are walking in the same direction as the train?
full detail for antisurgevalve how to work?
A trip takes 6 hours to complete. After traveling 1/4 of an hour, 1 3/8hours, and 2 1/3 hours, how much time does need to complete the trip? There are 30 socks in a drawer. 60% of the socks are red and the rest are blue. What is the minimum number of socks that must be taken from the drawer without looking in order to be certain that atleast two blue socks have been chosen?