Cvent Interview Question

1. Difference between C++ and Java? 2. What is inner join , right outer join , left outer join. 3. If two tables are given Author and books , how many max and min records will you get if you apply inner join , right outer join , left outer join? 4. Which all browsers support PHP? 5. What is PHP? 6. If there are 3 coins, what is the possibility of getting the same output? 7. What if one of the coin is biased. Then probability of getting the same output? 8. Write a program to convert a binary number into a decimal no? 9. What do you know about cvent?

Interview Answers

Anonymous

Oct 15, 2012

private static void ConvertBinaryToDecimal(int[] arr) { int length = arr.Length; int counter = length - 1; double decimalNum = 0; for (int i = 0; i < length; i++) { if (arr[i] == 1) { decimalNum = decimalNum + Math.Pow(2, counter); } counter--; } Console.WriteLine(decimalNum); }

Anonymous

Oct 15, 2012

all the events are independent and hence multiply their probability If there are 3 coins, what is the possibility of getting the same output? 0.5 * 0.5 * 0.5 What if one of the coin is biased. Then probability of getting the same output? ans: in this case you should know the probability of getting a head or tail since its a biased coin and the probability of getting a Head or Tail cannot be 0.5 if the probability of getting a head is 0.8 (if the coin is biased) then prob of getting the same o/p = 0.8 * 0.8 * 0.8