Soliton-Placement Questions |   22060

Soliton-Placement Questions

 

Technical Section Containing following Questions


Find the Output of the following Program
1. The question is to find the power given a diagram of resistance and voltage.
2. The question is about finding the force given the mass of a car and the voltage taken by it with a specified time.
3. int main()

{

int arr[5]={27,17,7,9,1},i=0,j;

for(j=0;j<5;j++)

{

sample((i<4)?(arr+i+1):(arr+i));

i=i+2;

i=i%5;

}

printf(“%d sum=”,sum(arr));

}

int sample(int *num)

{

int *tempno;

tempno=num;

num++;

*num=*tempno;

}

int sum(int arr)

{

int sum=0,i;

for(i=0;i<4;i++)

{

sum=sum+arr[i]);

}

}

4. int main()

{

printf(“%d”,func(13));

retuen 0;

}

int func(int num)

{

static int num0=18;

functobecalled=(num0%5<5/2)?func1:((num0%5>5/2)?func2:NULL); if(functobecalled!=NULL)

{

num0=num0+2;

num0=num0+functobecalled(num+num0);

}

return num0;

}

int func1(int num)

{

static int num1=31;

functobecalled=(num1%5<5/2)?func1:((num1%5>5/2)?func2:NULL); num1=num1+2;

num1=num1+functobecalled(num+num1);

return num1;

}

int func2(int num)

{

static int num2=32;

functobecalled=(num2%5<5/2)?func1:((num2%5>5/2)?func2:NULL); num2=num2+2;

num2=num2+functobecalled(num+num2);

return num2;

}


Soliton Written Test Questions/Aptitude Questions

1.A rectangle is of length 8 inches, breath 11 inches and thickness 2 inches. When it is shaped to a cylindrical rod with the diameter is 10m. What is the height of the cylinder?

2.Consider two identical pack of cards A and B. When one card from A is taken and shuffled with the card B, the first top card of A is the Queen of hearts. What will be the probability that the top card of B to be King of hearts?

3.Consider a cube such that the product of the three faces of the cube forms the vertex.. The sum of all vertex is 1001. Then what will be the sum of numbers in all the faces of the cube.

4.A rocket launched accelerates at 3.5m/s^2 in 5.90 secs and2.98m/s^2 in the next 5.98 secs and then experiences a free fall. What time will the rocket be in air? 
Assume that the rocket is launched from the ground.

5.From the origin of an electric dipole, the charge is 25(micro coulomb) and after a distance of 62cm, the charge is -16(micro coulomb). At what point from the origin the value of electric dipole will be zero.

6.The angle of elevation to the tower is 30(degree) and then moved towards the tower of a distance 20m. Now the angle of elevation is 60(degree). What is the height of the tower?

 

feedback