•Established: 12 March 2015
•Team: 15 People
•Head Quarters: Bhavnagar, Gujarat
•Office Locations: Bengaluru
•Customers: 3500+ in 70+ Countries. We impact more than 40 lakh buyers Globally
MILOPLE Sample Questions
Algorithms
1. Program to calculate the sum of 1/1+1/2+1/3+1/4+……….+1/N.
2. Count and Print the no.of occurrences of M,I,L,O,P,L and E characters in its own source file.
3. Write a program to sort a doubly linked list.
4. Write a program to decide whether an array is in ascending or descending or not ordered.
5. Write most optimum program to sort array of 50 lack numbers where all the numbers are between 1 to 100.
Tester’s Test
1. A Website is opening very slow. Prepare a step by step guide to solve the issue.
2. You need to go for a tour for 30 days and travel Delhi, Patna, Chennai, Mumbai, Bhavnagar and jaipur Write your plan and checklist for preparation of the tour.
3. Write Test cases for Email account registration form.
Programming Test
1. How many times the while loop will get executed?
#include<stdio.h>
Int main()
{
Int j=1;
While( j<=253)
{
Printf(“%c %d\n”,j, j);
J++;
}
Return 0;
}
2. What will be output of the program?
#include<stdio.h>
Int main()
{
Int i=2;
For(;i<=7;i++)
Printf(“%d\n”,i);
return 0;
}
3. What will be output of the program?
#include<stdio.h>
Int main()
{
Int a=500,b=100,c;
If(!a>=400)
b=300;
c=200;
a=b+c+c;
c=a-b-b-b;
for(b=100;a>=600;c++)
b=300;
Printf(“b=%d c=%d\n”,b,c);
return 0;
}
4. What will be output of the program?
#include<stdio.h>
Int main()
{
Short int i=0;
for(i<=4 && i>=-2; ++i; i>0)
Printf(“%u,”,i);
return 0;
}
5. What will be output of the program?
#include<stdio.h>
Int main()
{
int k, num=30;
k=(num<10) ? 100:200 ;
Printf(“%d \n”,num);
return 0;
}
6. What will be output of the program?
#include<stdio.h>
Int main()
{
int i=5;
while(i -->=0)
Printf(“%d,”,i);
i=5;
printf(“\n”);
while(i -->=0)
Printf(“% i,”,i);
while(i -->=0)
Printf(“%d,”,i);
return 0;
}
7. What will be output of the program?
#include<stdio.h>
int main()
{
int a[5]={5, 1, 15,20, 25};
int i, j, m;
i=++a[1];
j= a[1]++;
m= a[i++];
Printf(“%d,%d, %d”,i, j, m);
return 0;
}
8. If source.text file contains Be a Milopler, What will be output of the program?
#include<stdio.h>
int main()
{
FILE *fs,*ft;
Char c[10];
Fs= fopen(“source.txt”, “ r” );
c[0]= getc(fs);
fseek(fs,0,SEEK_END);
fseek(fs,-3L,SEEK_CUR);
fgets(c,5,fs);
puts(c );
return 0;
}
9. What will be output of the program
#include<stdioh>
typedef void v;
typedef int i ;
int main( )
{
v fun( i, i);
fun(2, 3);
return 0;
}
v fun(i a, i b)
{
i s=2;
float i;
printf(“ %d, “, sizeof(i ));
printf(“ %d”, a*b*s);
}
10. What will be output of the program?
#include<stdio.h>
int main()
{
Char p[ ]= “ %d \n”;
P[1 ]=’ c’;
Printf(p, 65);
return 0;
}
11. What will be output of the program?
Class A
{
final public int GetResult(int a, int b){ return 0; }
}
Class B extends A
{
public int GetResult(int a, int b){ return 1; }
}
Public class Test
{
Public static void main(String args[ ])
{
B b= new B( );
System.out.println( “ x= “ + b. GetResult(0 ,1));
}
}
12. What will be output of the program?
Public class X
{
public static void main(String [ ] args)
{
try
{
badMethod( );
System.out.print(“ A”);
}
Catch (RuntimeException ex)
{
System.out.print(“ B”);
}
Catch (Exception ex1)
{
System.out.print(“C”);
}
finally
{
System.out.print(“D”);
}
System.out.print(“ E”);
}
Public static void badMethod( )
{
Throw new RuntimeException( );
}
}