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 11311A 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 6552An 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
2467Two 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
2808We 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 5766There 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 6402There 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
2392there 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
2299Alok 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 2888610 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 23437The 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 44318rich 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 18909
Wo kay chej hi jo saal may 1 baar aata hai months may 2 baar aata hai weeks may 4 baar aata hai or din may 6 baar
The square of a two digit number is divided by half the number. After 36 is added to the quotient, this sum is then divided by 2. The digits of the resulting number are the same as those in the original number, but they are in reverse order. The ten's place of the original number is equal to twice the difference between its digits. What is the number?
How would you measure 4 liters using jugs of 3l and 5l? Give a few solutions to this problem?
In 80 coins one coin is counterfeit what is minimum number of weighings to find out counterfeit coin
If a car starts from A towards B with some velocity due to some problem in the engine after travelling 30km.If the car goes with 4/5 th of its actuval velocity the car reaches B 45min later to the actual time. If the car engine fails ofter travelling 45km, the car reaches the destination B 36min late to the actual time , what is the initial velocity of car and what is the distance between A and B in km ans) 20 &
6 women can do 75 units of work in 8 days by working 5hrs/day. In how many days can 4 women do 30 units of work by working 8hrs/day ?
A fuel dealer mixes two brands of fuel which cost in the ratio 2:3 A solution of 30% Brand A with Brand B yields profit of 10% when sold at RS 297. What is cost of brand B?
Why we use Caffine in HPLC calibration?
What do you think are your personal strengths and what are the areas where you need to improve as an individual?
what should i do i can't remove my weakness?
please e-mail me rbi grade - b officers exam old question papers
Reversing the digits of father's age we get son's age. One year ago father was twice in age of that of his son? find their current ages?
Starting from point A, Jayant walked 15m towards west. He turned left and walked 20 m. He then turned left and walked 15m. After this he turned right and walked 12m. in which direction is Jayant from X and how far has he walked from point X?
Package information is stored in a) DB2 Directory b) DB2 system tables c) DB2 catalog tables d) None of the above
The cost of 16 articles is equal to sell price of 12 articles. The gain percent is ?