Hi here is the MSYS written test pattern. The pattern is different for java and C students. 10 aptitude questions are general for both kind. If you choose java then, 5 questions from java. If you choose C then, 10 question from C.
I have given here some questions that I have remembered with ans. Totally 30 minutes.
Aptitude part:
1. The distance between the two places A and B is 110km. A man started from A at 8 am with a speed of 20kmph. Another man started from B at 9 am with a speed of 25kmph. At what time they cross each other.
Ans: Let x hours later they cross after 8 am
20x + 25(x-1) =110 => 45x = 135 => x=3
So they cross 3 hours after 8 am. i.e., at 11 am.
2. Two vessels contains milk and water in the ratio of 5:2 and 8:5. Find the ratio in which these mixtures be mixed to obtain a new mixture containing milk and water in the ratio 9:4?
Ans: 7:2
3. The ratio of two numbers is 3:4 and their sum is 420. Find the second number?
Ans: 3x + 4x =420 => x = 60
? 4 x 60 = 240
4. A can do a work in 25 days and B can do it in 20 days. They started work together for 5 days. In how many days B can complete the remaining work?
Ans: 11 days.
5. p=7/13, q=5/10, r=2/3 comparison?
Ans: q
6. A problem based on compound interest.
7. A problem based on volume.
8. A problem based on train.
9. Find the next series( easy only)
10. When a person sells two similar items, one at a gain of 20% and other at a loss of 20% then what is his total percentage of gain or loss %?
Ans: Loss only. Loss = 4%
Technical part-java:
1. public static void main(String args[])
{
int x=4,y=8,z;
z=x^y;
System.out.println("the value %d="+z);
}
What is the output of the program?
Ans: the value %d=12
2. public static void main(String args[])
{
int x=4,y=8,z;
z=x|y;
System.out.println("the value %d="+z);
}
What is the output of the program?
Ans: the value %d=12
3. public static void main(String args[])
{
int x=4,y=8,z;
z=x&y;
System.out.println("the value %d="+z);
}
What is the output of the program?
Ans: the value %d=0
4. public static void main(String args[])
{
int x=4,y=8,z;
System.out.println("the value %d="+z);
}
What is the output of the program?
Ans: Compilation error => variable z might not have been initialized
5. public static void main(String args[])
{
int x=4;
int y=x>>2;
System.out.println("the value %d="+y);
}
What is the output of the program?
Ans: the value %d=1