English (526)
General Aptitude (3288)
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 11574A 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 6730An 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
2582Two 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
2902We 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 5938There 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 6634There 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
2503there 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
2414Alok 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 2956210 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 23988The 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 45215rich 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 19161
if the word 'ddosszm' is changed to 'central' then what will be the change for 'rtjbl' ?
plz send me karnataka bank previous exam question papers for officers post,my email id is vinuta_patil38@yahoo.in
present ages of sameer and anand are in the ratio of 5 : 4 respectively. Three years hence, the ratio of their ages will become 11 : 9 respectively. What is anand's present age in years?
if 2x-y=4 then 6x-y is
WRITE ABOUT A RECENT VISIT TO A RESTAURANT.
If substitution is as it's burnout. Didn't remember. But this is one.
Find the total number of squares in 1/4 of chess board ?
with 4/5 full tank vehicle travels 12 miles, with 1/3 full tank how much distance travels
There are five thieves, each loot a bakery one after the other such that the first one takes 1/2 of the total no. of the breads plus 1/2 of a bread. Similarly 2nd, 3rd,4th and 5fth also did the same. After the fifth one no. of breads remained are 3. Initially how many breads were there?
3 angles or 3 sides r given. Which will form a triangle?
f(X)= 2X-1 + f(X-1) if X is not equal to zeroandiff(X=0)=0, If f(f(X))=81 then the value of X=?
what types of question tricom will ask
In a certain city, 60% of the registered voters are congress supporters and the rest are BJP supporters. In an assembly election, if 75% of the registered congress supporters and 20% of the registered BJP supporters are expected to vote for candidate A, what percent of the registered voters are expected to vote for candidate A?
A student is ranked 13th from right and 8th from left. How many students are there in totality ?
Body anatomy and physiology and pathalogy condition