Data64 Previous Year Placement Paper Technical And Aptitude Questions with Answers
1. /* what is the program indicates */
#include
main()
{
char *q;
int *ip;
q=(char *)malloc(100);
ip=(int *)q;
free(ip);
}
a)it frees all allocated memory.
b)it frees 400 bytes of memory.
c)
d)segmentation fault.
2. What is output for the following program.
#include
main()
{
int a=10,b=5;
if(a=a&b)
b=a^b;
printf("a=%d,b=%d",a,b);
}
a)a=0,b=5 b)a=10 b=5 c)a=0,b=0 d)none
Ans: a a=0,b=5
3.A can do a work in 8 days, B can do a work in 7 days, C can do a work in 6 days. A works on the first day, B works on the second day and C on the third day resly.that is they work on alternate days. When will they finish the work. which day will they finish the work.
Ans: 7 7/168 days
4.A batsman scores 23 runs and increases his average from 15 to 16. find the runs to be made if he wants top inc the avg to 18 in the same match.
Ans: 39runs.
5.A man sells apples. First he gives half of the total apples what he has and a half apple. Then he gives half of the remaining and a half apple. He gives it in the same manner. After 7 times all are over. How many apples did he initially have.
Ans: 127 apples.
6. one bottle is half-full of oil and another bottle with twice the capacity is one quarter full of oil. if water is added so that both the bottles are full and the contents of both are then poured into a third bottle that is empty and large enough to hold the contents of both, what fractions of the contents in the third bottle is oil?
a)1/4 b)1/3 c)3/8 d)2/3
ans:b)1/3
7. don and his wife each receive an 8 percent annual raise. if don receives a raise rs.800 and his wife receives a raise of rs. 840, what is the difference between their annual income after their raises?
a)40 b)460 c)500 d)540
ans:d)540
8. if x+y+z=9 and both y and z are positive integers greater than zero, then the maximum value x can take is?
a.7 b.3 c.8 d. data insufficient
ans:a.7
9. if 5 tomatoes are worth 8 oranges,5 oranges are worth 4 apples, 7 apples are worth 3 pineapples and 7 pineapples cost rs.203,then he approx price of each tomato is
a.16 b.5 c.19 d. none of theses
ans: a.16
10. How many cubes have less than three faces painted ?
A) 80 B) 24 C) 28 D)48
Ans:D
1. /* what is the program indicates */
#include
main()
{
char *q;
int *ip;
q=(char *)malloc(100);
ip=(int *)q;
free(ip);
}
a)it frees all allocated memory.
b)it frees 400 bytes of memory.
c)
d)segmentation fault.
2. What is output for the following program.
#include
main()
{
int a=10,b=5;
if(a=a&b)
b=a^b;
printf("a=%d,b=%d",a,b);
}
a)a=0,b=5 b)a=10 b=5 c)a=0,b=0 d)none
Ans: a a=0,b=5
3.A can do a work in 8 days, B can do a work in 7 days, C can do a work in 6 days. A works on the first day, B works on the second day and C on the third day resly.that is they work on alternate days. When will they finish the work. which day will they finish the work.
Ans: 7 7/168 days
4.A batsman scores 23 runs and increases his average from 15 to 16. find the runs to be made if he wants top inc the avg to 18 in the same match.
Ans: 39runs.
5.A man sells apples. First he gives half of the total apples what he has and a half apple. Then he gives half of the remaining and a half apple. He gives it in the same manner. After 7 times all are over. How many apples did he initially have.
Ans: 127 apples.
6. one bottle is half-full of oil and another bottle with twice the capacity is one quarter full of oil. if water is added so that both the bottles are full and the contents of both are then poured into a third bottle that is empty and large enough to hold the contents of both, what fractions of the contents in the third bottle is oil?
a)1/4 b)1/3 c)3/8 d)2/3
ans:b)1/3
7. don and his wife each receive an 8 percent annual raise. if don receives a raise rs.800 and his wife receives a raise of rs. 840, what is the difference between their annual income after their raises?
a)40 b)460 c)500 d)540
ans:d)540
8. if x+y+z=9 and both y and z are positive integers greater than zero, then the maximum value x can take is?
a.7 b.3 c.8 d. data insufficient
ans:a.7
9. if 5 tomatoes are worth 8 oranges,5 oranges are worth 4 apples, 7 apples are worth 3 pineapples and 7 pineapples cost rs.203,then he approx price of each tomato is
a.16 b.5 c.19 d. none of theses
ans: a.16
10. How many cubes have less than three faces painted ?
A) 80 B) 24 C) 28 D)48
Ans:D
No comments:
Post a Comment