Creativo - the topper's choice

www.creativo.co.in ( Placement papers of all companies are here )

Monday, May 01, 2006

Siemens

SIEMENS INFO THIS PAPER CONSISTS 6 PARTS. all are multiple choice q's
1)general2)c/unix3)c++/motif4)database5)x-windows6)ms-windowswe have written q's not acc. to each part.total 50. q's. time issufficient.if u have basic idea about all of the u can easily answer the paper.paper------1)which of following operator can't be overloaded.a)== b)++ c)?! d)<=2)#include 6.Most

1. Which of following operator can't be overloaded.
a) ==b) ++ c) ?! d) <= 2. For the following C program #includemain(){printf("Hello World");}
The program prints Hello World without changing main() ,the output shouldbe
intialisationHello WorldDesruct
The changes should be
a) IOstream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<x;2)abc[0]-->x;3)abc.x;4)(abc)-->x;
a )1, 2, 3b) 2 & 3c) 1 & 2d) 1, 3, 4

21. Automatic variables are destroyed after fn. ends because
a) Stored in swapb) Stored in stack and poped out after fn. returnsc) Stored in data aread) Stored in disk
22. Relation between x-application and x-server (x-win)
23. What is UIL(user interface language) (x-win)
24)Which of the following is right in ms-windows
a) Application has single qvalue system has multiple qvalueb) Application has multiple qvalue system has single qvalue c) Application has multipleqvalue system has multiple qvalued) None
25. Widget in x-windows is
26. Gadget in x_windows is
27. Variable DESTDIR in make program is accessed as
a) $(DESTDIR)b) ${DESTDIR}c) DESTDIR
28. The keystroke mouse entrie are interpreted in ms windows as
a) Interruptb) Messagec) Eventd) None of the above
29. Link between program and outside world (ms -win)
a) Device driver and hardware diskb) Application and device driverc) Application and hardware deviced) None
30. Ms -windows isa)multitaskingb)multiuserc) bothof the aboved) none of the above
31. Dynamic scoping is
32. After logout the process still runs in the background by giving the command
33. Which process dies out but still waits
a) Exitb) Wakeupc) Zombied) Sleep
34. In dynamic memory allocation we use
a) Doubly linked listb) Circularly linkedc) B treesd) L treese) None

35. To find the key of search the data structure is
a) Hash keyb) Treesc) Linked listsd) Records

36. Which of the following is true
a) Bridge connects dissimiler LANand protocol insensitiveb) Router connects dissimiler LANand protocol insensitivec) Gateway connects dissimiler LANand protocol insensitived) None of the above
37. Read types of tree traversals.
38. Read about SQL/Databases
39.A DBMS table is given along with simple SQL statements. Find the output.
40. Simple programs on pointers in c



Sec 2: Programming - 30 min
The questions are not in order...paper code- #TC 07
1) main(){ int x; printf("\n%d",x=0,x=20,x=40);}ans: 0
2) question om Macro sunstitution ( very easy)
3)main(){ int a[]={1,2,5,6,9,10}; int *b=&a[4]; printf("\n%d",b[-3]);}ans:6
4)main(){ int x=0,y=1; if(x=y) y= 7;elsey=2;value of y?}ans:7
5)question on switch.... case A:case B... some code.
ans:runtime error
6)main(){ int n=39,count=0; while( i & 1) //some condition like this { count++; i>>1; }}value of count?ans:4
7)main(){ int x=128; printf("\n%d",1+x++);}ans:129
8)printf(const char,...);main(){ some code}ans:complier error
9)main(){
FILE *f1; FILE *f2; f1=fopen("myfile","w"); f2=fopen("myfile","w"); fputc('A',f1); fputc('B',f2); fclose(f1); fclose(f2);}what does f1 n f2 conatins?ans:check out this
10)if i/p is code friday monday sunday in commad line thenmain(int argc,char *argv[]){ printf("\n%c",**++argv);}ans:may be f (check out not sure...)
11)#define max 10main(){ printf("\n%d",max++);}ans:compiler error
12)main(){ int a[]={1,2,9,8,6,3,5,7,8,9}; int *p=a+1; int *q=a+6; printf("\n%d",q-p);}ans:5
13)main(){ int i=3; while(i--){ int i=100; i--; printf("\n%d",i); }
}o/p?ans: 99,99,99(this is not infinite loop)
14)what does (*a)[10] means?ans: a is pointer to an array of 10 inegers
15)a big program involving malloc, strlen, strcmp...ans:runtime erro

0 Comments:

Post a Comment

<< Home