Home Company Questions Hexaware Interview Questions Hexaware Interview Questions - 11

Login Form




Hexaware Interview Questions - 11 Print E-mail

1. If X is the set of prime numbers less than 6 and Y is set of odd numbers less than 6 . If x is from X and y is from Y then the total no of combinations of x*y are ..

Answer : 9


2. A dice is thrown three times. What is the prabability of not getting 6 on the face of the dice.


3. If 0<x<1 then arrange in ascending order x^2, sqrtx, x


4. If 3/10 of x is y is 10 , What is the value of x


5. Product of two numbers is 900. The sum of two numbers is 30 greater than the difference of two numbers.

Answer : 60


6. A number is given and find the missing digits in that no if it is divisible by 75.


7. If a number is increased by 10% then which of the following will not have the value

Answer : 7.5
 
 
8. Program
 
 
 void main()
 {
 int a=3,c=4,c=5;
 a=b+c;
 c=a+b;
 b=a+c;
 printf("%d %d %d",a+b,b+c,c+d);
 a=b*c;
 c=a*b;
 printf(%d %d",a.c);
 }
 
 What is the output?
 
 
 9. Write a program to print '*' like this
 
 *
 ***
 *****
 *******
 n times
 
 
 
 10. Pass by reference and Pass by value