CMC Ltd Technical
Placement Paper-3:
1) Unix OS is a
a) multi-task
b) Mutual task
c) Multiple processes
d) a & c
2) The TV Satellite Transmission is a
a) Half-Duplex
b) Full Duplex
c) One-way duplex
d) Non of the above
3) Which among is the OOPL
a) c b) java c) Cobol
d) Pascal
4) what will be the output of
main()
{
int a=5,c;
int ptr;
ptr=&a;
c=*ptr * a;
printf("%d,%d",c,a);
}
a) 5,5
b)25,25 c) 25,5 d) Error
5) What can a Friend Keyword do?
a) Free the memory
b) Provide access to private & public variables
c) Provide access to Private, Protected, public variables.
d) Never allowed to access any constructor
6) Abstract Class can
be
a) Accessed as Constructors
b) Used for hiding information of class
c) Class is Abstract class
d) None of the above
7) The present LAN-card Supports
a)32kbphs b)
64kbphs c)128kbphs d) 256kbphs
8) What is CDMA Technology?
a) Electronic calculator
b) Cellular phones
c) Rocket
d) Car
9) What is GC in JAVA?
a) De-allocates the memory
b) De-allocates the objects & its reference
c) Finalizing of Memory
d) Non-of the above
10 which among is thread class?
a) sleep()
b) IsAliva()
c) IsLive()
d) none of the above
11) main()
{
int
x=10,y=5,p,q;
p=x>9;
q=x>3&&y!=3;
printf("p=%d q=%d",p,q);
}
Ans: 1, 1
12. main()
{
int
x=11,y=6,z;
z=x==5 ||
!=4;
printf("z=%d",z);
}
Ans:1
13) main()
{
int
c=0,d=5,e=10,a;
a=c>1?d>1||e>1?100:200:300;
printf("a=%d",a);
}
Ans:300
14) main()
{
int i=-5,j=-2;
junk(i,&j);
printf("i=%d,j=%d",i,j);
}
junk(i,j)
int i,*j
{
i=i*i;
*j=*j**j;
}
Ans: -5, 4;
15. #define NO
#define
YES
main()
{
int i=5,j;
if(i>5)
j=YES;
else
j=NO;
printf("%d",j);
}
Ans: Error message
16. main()
{
int a=0xff;
if(a<<4>>12)
printf("leftist)
else
printf("rightist")
}
Ans: rightist
17. main ()
{
int i=+1;
while(~i)
printf("vicious circles")
}
Ans: continuous
loop
0 comments:
Post a Comment