1. In 1978, a kg of paper was sold at Rs25/-. I f the paper rate
increases at 1.5% more than inflation rate which is of 6.5% a year
, then what wil be the cost of a kg of paper after 2 years?
a)29.12 (b) 29.72 (c) 30.12 (d) 32.65 (e) none of these
2. In A,B,C are having some marbles with each of them. A has giben
B and C the same number of marbles they already have to each of them.
then, B gave C and A the same no. of marbles they have, then C gave
A and B the same no. of marbles they have. At the
end A,B,and C have equal no. of marbles.
(i) If x,y,z are the marbles initially with A,B,C respectively.
then the no of marbles B have at the end
(a) 2(x-y-z) (b) 4(x-y-z) etc.
(ii)If the total no. of marbles are 72, then the no. of marbles with A at the starting
a. 20 b. 30 c. 32
3. If a car starts from A towards B with some velocity due to some
problem in the engine after travelling 30km.If the car goes with
4/5 th of its actuval velocity the car reaches B 45min later to the
actual time. If the car engine fails ofter travelling
45km, the car reaches the destination B 36min late to the actual
time , what is the initial velocity of car and what is the distance between A and B in km
ans) 20 & 130.
4. A person has Rs 100/- in his pocket, he can as 25 pencils or 15books.
He kept 15% of the money for travelling expenses and purchased 5
pencils.So how many books he can purchase with the remaining money.
5. A square plot of some size , at four corners equal squares of
some size are cut and is formed as open box. If this open box carries
128ml of oil. What is the size of the plate i.e. side
a.17 b.14 c.13
6.The very first process created by the kernal that runs
till the kernal process is haltes is
a)init
b)getty
c)
d)
e)none
(Ans is a)
7.Result of the following program is
main()
{
int i=0;
for(i=0;i<20;i++)
{
switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}
a)0,5,9,13,17
b)5,9,13,17
c)12,17,22
d)16,21
e)syntax error
(Ans is d )
8) What is the result
main()
{
char c=-64;
int i=-32
unsigned int u =-16;
if(c>i){
printf("pass1,");
if(c printf("pass2");
else
printf("Fail2");}
else
printf("Fail1);
if(i printf("pass2");
else
printf("Fail2")
}
a)Pass1,Pass2
b)Pass1,Fail2
c)Fail1,Pass2
d)Fail1,Fail2
e)none
(Ans is c)
9) In the process table entry for the kernel process, the process id value is
a) 0 b) 1 c) 2 d) 255 e) it does not have a process table entry
Ans) a
10) Which of the following API is used to hide a window
a) ShowWindow
b) EnableWindow
c) MoveWindow
d) SetWindowPlacement
e)None of the above
Ans) a
11) what will the following program do?
void main()
{
int i;
char a[]="String";
char *p="New Sring";
char *Temp;
Temp=a;
a=malloc(strlen(p) + 1);
strcpy(a,p); //Line no:9//
p = malloc(strlen(Temp) + 1);
strcpy(p,Temp);
printf("(%s, %s)",a,p);
free(p);
free(a);
} //Line no 15//
a) Swap contents of p & a and print:(New string, string)
b) Generate compilation error in line number 8
c) Generate compilation error in line number 5
d) Generate compilation error in line number 7
e) Generate compilation error in line number 1
Ans) b
No comments:
Post a Comment