IBM
1. In 1978, a kg of paper was sold at Rs25/-. If the paper rate increases at 1.5% more than the inflation rate which is 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 given B and C the same number of marbles each of them already have. Then, B gave C and A the same number of marbles they already have. Then C gave A and B the same number of marbles they already have. At the end A,B,and C have equal number of marbles.
(i) If x,y,z are the marbles initially with A,B,C respectively. Then the number of marbles B have at the end
(a) 2(x-y-z) (b) 4(x-y-z)(c) 2(3y-x-z)(d) x + y-z
Ans. (c)
(ii) If the total number of marbles are 72, then the number of marbles with A at the starting
(a) 20 (b) 30 (c) 32(d) 39
Ans. (d)
3. If a car starts from A towards B with some velocity. Due to some problem in the engine after travelling 30km, the car goes with 4/5 th of its actual velocity The car reaches B 45 min 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 15 books. 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. Ten questions on analogies.
eg: chief : tribe :: governer : state epaulette : shoulder :: tiara : head guttural : throat :: gastric : stomach inept : clever :: languid : active knife : butcher :: hammer : carpenter ::
6. The values of shares (in Rs).of A, B and C from January to June are as follows.
Month A B C January 30 60 80 February 35 65 85 March 45 75 65 April 40 75 82 May 55 75 85 June 50 75 80
i) During this period which share has undergone maximium fluctuation?ii) In which month it is possible to buy B and C selling A?iii) In which month the share values are very low?iv) By purchasing one share of A and 4 each of B and C in the beginning of the period, when shoudl these be sold to get maximum profit?
7. In a computer institute 9 languages can be taught. The module is of 6 months duration and of the six languages only one can be taught each month . In addition to that BASIC is always taught and should be in first month itself
WORD PERFECT is to be taught in the preceeding week of WORD STAR. FORTRAN can not be taught until COBAL is taught prior to that BINO, FIFO can never be taught in single module languages are BASIC, WORD STAR, WORD PERFECT, FORTRAN, COBAL, BINO, FIFO, LOTUS, C
i) If word star is in 3rd month , what could be in 6th month.ii) If COBAL is in the 2nd month and BINO in 6th month. FORTRAN will be taught in which month.
8. In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there
(a) 30 (b) 33 (c) 36 (d) none of these.
Ans. (d)
9. A square plate of some size is cut at four corners. Equal squares of the same size are cut and is formed as open box. If this open box carries 128 ml of oil. What is the size of the side of the plate?
(a) 17 (b) 14 (c) 13(d) None of these
10. In a square, all the mid points are joined. The inner square is shaded. If the area of the square is A, what is the area of the shaded area?
11. Two questions on basic angles i.e given a circle, a few chords or diameter is drawn etc.
12. If the follwoing statements are given
@(a,b)= (a+b)/2 /(a,b)= a/b *(a,b)= ab If a=1, b=2 then find
i) /(a,(@(a,b),*(a,b)))
ii) */(a,@(*(a,b)))
13. If the follwoing statements are given
(x#y) = x + y- xy (x*y) = (x + y)/2 i) Find the values of x, y will satisfy this equation (x#y)#(x*y) < (x#y)ii) Find the values of x, y will satisfy this equation (a*b)#(b*c)< (a#b)*(b*c)
14. Export PS1 results in(PS1 pwd)
a) primary prompt being your current directoryb) primary prompt and secondary prompts being the current directoryc) primary prompt prompt being your home directoryd) primary prompt and secondary prompts being the home directorye) None of the above.
15. If you type in the command
nohup sort employees > list 2 > error out &
and log off ,the next time you log in, the output will be
a) in a file called list and the error will de typed in a file error outb) there will be no file called list or error outc) error will be logged in a file called list and o/p will be in error outd) you will not be allowed to log ine) none of the above
16. In UNIX a files i-node ......?
Ans. Is a data structure that defines all specifications of a file like the file size, number of lines to a file, permissions etc.
17. The UNIX shell ....
a) does not come with the rest of the systemb) forms the interface between the user and the kernalc) does not give any scope for programmingd) deos not allow calling one program from with in anothere) all of the above
Ans. (b)
18. enum number { a= -1, b= 4,c,d,e} What is the value of e ?
(a) 7(b) 4(c) 5(d) 15(e) 3
19. The very first process created by the kernal that runs till the kernal process is halts is
a) initb) gettyc) both (a) and (b)d) none of these
Ans. (a)
20. Output 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,17b) 5,9,13,17c) 12,17,22d) 16,21e) Syntax error
Ans. (d)
21. What is the ouptut in the following program
main(){char c=-64;int i=-32unsigned int u =-16;if(c>i){printf("pass1,");if(ca) Pass1,Pass2b) Pass1,Fail2c) Fail1,Pass2d) Fail1,Fail2e) None of these
Ans. (c)
22. 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)
23. Which of the following API is used to hide a window
a) ShowWindowb) EnableWindowc) MoveWindowd) SetWindowPlacemente) None of the above
Ans. (a)
24. 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 number:9//p = malloc(strlen(Temp) + 1);strcpy(p,Temp);printf("(%s, %s)",a,p);free(p);free(a);} //Line number 15//
a) Swap contents of p & a and print:(New string, string)b) Generate compilation error in line number 8c) Generate compilation error in line number 5d) Generate compilation error in line number 7e) Generate compilation error in line number 1
Ans. (b)
25. In the following code segment what will be the result of the function,
value of x , value of y{unsigned int x=-1;int y;y = ~0;if(x == y)printf("same");elseprintf("not same");}
a) same, MAXINT, -1b) not same, MAXINT, -MAXINTc) same , MAXUNIT, -1d) same, MAXUNIT, MAXUNITe) not same, MAXINT, MAXUNIT
Ans. (a)
26. PATH = /bin : /usr : /yourhome The file /bin/calender has the following line in it
cal 10 1997
The file /yourhome/calender has the following line in it
cal 5 1997
If the current directory is /yourhome and calender is executed
a) The calendar for May 1997 will be printed on screenb) The calendar for Oct 1997 will be printed on screenc) The calendar for the current month( whatever it is) will be printedd) Nothing will get printed on screene) An error massage will be printed
27. What will be the result of the following program ?
char *gxxx(){static char xxx[1024];return xxx;}
main(){char *g="string";strcpy(gxxx(),g);g = gxxx();strcpy(g,"oldstring");printf("The string is : %s",gxxx());}
a) The string is : stringb) The string is :Oldstringc) Run time error/Core dumpd) Syntax error during compilatione) None of these
Ans. (b)
28. What will be result of the following program?
void myalloc(char *x, int n){x= (char *)malloc(n*sizeof(char));memset(x,\0,n*sizeof(char));}
main(){char *g="String";myalloc(g,20);strcpy(g,"Oldstring");printf("The string is %s",g);}
a) The string is : Stringb) Run time error/Core dumpc) The string is : Oldstringd) Syntax error during compilatione) None of these
29. Which of the following function is used to repaint a window immediately
a) Sendmessage(hWnd,WM_PAINt,......)b) InvalidateRect(.......)c) MoveWindowd) WM_COPYe) None
30. Which function is the entry point for a DLL in MS Windows 3.1
a) Mainb) Winmainc) Dllmaind) Libmaine) None
Ans. (b)
31. The standard source for standard input, standard output and standard error is
a) the terminalb) /dev/nullc) /usr/you/input, /usr/you/output/, /usr/you/error respectivelyd) None
Ans. (a)
32. What will be the result of the following program?
main(){char p[]="String";int x=0;if(p=="String"){printf("Pass 1");if(p[sizeof(p)-2]=='g')printf("Pass 2");elseprintf("Fail 2");}else{printf("Fail 1");if(p[sizeof(p)-2]=='g')printf("Pass 2");elseprintf("Fail 2");}}
a) Pass 1, Pass 2b) Fail 1, Fail 2c) Pass 1, Fail 2d) Fail 1, Pass 2e) syntax error during compilation
33. Which of the choices is true for the mentioned declaration ?
const char *p;andchar * const p;
a) You can't change the character in bothb) First : You can't change the characterr & Second : You can;t change the pointerc) You can't change the pointer in both d) First : You can't change the pointer & Second : You can't chanage the charactere) None
34. The redirection operators > and >>
a) do the same functionb) differ : > overwrites, while >> appendsc) differ : > is used for input while >> is used for outputd) differ : > write to any file while >> write only to standard outpute) None of these
Ans. (b)
35. The command grep first second third /usr/you/myfile
a) prints lines containing the words first, second or third from the file /usr/you/myfileb) searches for lines containing the pattern first in the filessecond, third, and /usr/you/myfile and prints themc) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints themd) replaces the word first with the word second in the files third and /usr/you/myfilee) None of the above
Ans. (b)
1) abcD+abcd+aBCd+aBCD then the simplified function is ( Capital letters are copliments of corresponding letters A=compliment of a) [a] a [b] ab [c] abc [d] a(bc)* [e] None (bc)*=compliment of bcAns: e-------------------------------------------
2) A 12 address lines maps to the memory of [a] 1k bytes [b] 0.5k bytes [c] 2k bytes [d] noneAns: b-------------------------------------------
3) In a processor these are 120 instructions . Bits needed to implement this instructions [a] 6 [b] 7 [c] 10 [d] noneAns: b-------------------------------------------
4) In 8085 microprocessor READY signal does.which of the following is incorrect statements [a]It is input to the microprocessor [b] It sequences the instructions. Ans : b-------------------------------------------
5) Return address will be returned by function to [a] Pushes to the stack by callAns : a-------------------------------------------
6) n=7623 {temp=n/10; result=temp*10+ result; n=n/10 }Ans : 3267-------------------------------------------
7) If A>B then F=F(G); else B>C then F=G(G);in this , for 75% times A>B and 25% times B>C then,is 10000 instructions are there ,then the ratio of F to G[a] 7500:2500 [b] 7500:625 [c] 7500:625 if a=b=c else 7500:2500-------------------------------------------
8) In a compiler there is 36 bit for a word and to store a character 8bits are needed. IN this to store a character two words are appended .Then for storing a K characters string, How many words are needed. [a] 2k/9 [b] (2k+8)/9 [c] (k+8)/9 [d] 2*(k+8)/9 [e] noneAns: a-------------------------------------------
9) C program code int zap(int n) { if(n<=1)then zap=1; --More-- else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15Ans: b-------------------------------------------
PART - B-------------------------------------------
1) Virtual memory size depends on [a] address lines [b] data bus [c] disc space [d] a & c [e] noneAns : a-------------------------------------------
2) Load a mul a store t1 load b mul b store t2 mul t2 add t1Then the content in accumulator isAns : a**2+b**4
Section-I1). Piggy backing is a technique for a) Flow control b) sequence c) Acknowledgement d) retransmitionans: c piggy backing
2). The layer in the OST model handles terminal emulationa) session b) application c) presentation d) transportans: b application3) ans: a odd numbers of errors
5) c 206) a 1207) b synchronise the access
9) b the operating system10) a 17733311) d used as a network layer protocall in network and windows system12) b has to be unique in the sub network 13)Q. there is an employer table with key feilds as employer no. data in every n'th row are needed for a simple following queries will get required results. a) select A employe no. from employe A , where exists from employe Bwhere A employe no. >= B employe having (count(*) mod n)=0 b) select employe no. from employe A, employe B whereA employe no. >= B employ no. grouply employe no. having (count(*) mod n=0 ) c) both a& b d)none of the above14)Q. type duplicates of a row in a table customer with non uniform key feildcustomer no. you can seea) delete from costomer where customer no. exists ( select distinct customer no. from customer having count )b) delete customer a where customer no. in(select customer b where custermer no. equal to b custemor no. ) and a rowid >b rowidc) delete customer a where custermor no. in ( select customer no. from customer a, customer b )d) none of the above
---------- Section I over with 15 quetions -------------------
SECTION-IISection II is not covered completly But it is very very easy. You can do it very easely.
1) ans: recursion 2) long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytesans: compiler dependentnote: order of a,b,c,d are doubt but answer is correct.3) x=2,y=6,z=6x=y==z;printf(%d",x) ?4) if(x>2)?3:4 5)6)
8) ------------14) c : class A,B and C can have member functions with same name.
SECTION-III
1) ans: b It does not work when rp is the last element in the linked list2) ans: a always3) ans: b 134) ans: b 16
7) ---8) ans:d 49) ans: c 510)ans: c semicolon missing
SECTION-IV
following are not in order: 2. M > D > Y ans: (a) 6. 10 in 4 seconds, ? in 6 minutes = 10x6x60/4 = 900 ans: (a) 8. 100(100000000+100000000)/10000 = 2x1000000 (ans).
10. Q is not equal to zero and k = (Q x n - s)/2 find n? (a) (2 x k + s)/Q (b) (2 x s x k)/Q (c) (2 x k - s)/Q (d) (2 x k + s x Q)/Q (e) (k + s)/Q
(from GRE book page no:411) data: A causes B or C, but not both F occurs only if B occurs D occurs if B or C occurs E occurs only if C occurs J occurs only if E or F occurs D causes G,H or both H occurs if E occurs G occurs if F occursNOTE: check following answers. 11. If A occurs which of the following must occurs I. F & G II. E and H III. D (a) I only (b) II only (c) III only (d) I,II, & III (e) I & II (or) II & III but not both ans: (e) 12. If B occurs which must occur (a) D (b) D and G (c) G and H (d) F and G (e) J ans: (a) 13. If J occurs which must have occured (a) E (b) either B or C (c) both E & F (d) B (e) both B & C ans: (b) 14. which may occurs as a result of cause not mentioned (1) D (2) A (3) F (a) 1 only (b) 2 only (c) 1 & 2 (d) 2 & 3 (e) 1,2,3 ans: (c) 15. E occurs which one cannot occurs (a) A (b) F (c) D (d) C (e) J ans: (b) 11 to 15:- ----------- e , a , b , c , b ---------------
1. convert 0.9375 to binary (c) a) 0.0111 b)0.1011 c)0.1111 d)none
2.( 1a00 * 10b )/ 1010 = 100 (b) a) a=0,b=0 b)a=0, b=1 c) d)none
3. in 32 bit memory machine 24 bits for mantissa and 8 bits for exponent. to increase the range of floating point. a) more than 32 bit is to be there. b) increase 1 bit for mantissa and decrease 1 bit for exponent c) increase 1 bit for exponent and decrease one bit for mantissa d)
4. this on logical gates
A---------------------------------- OR ------- ------- not ----- -- AND --- X ---- AND ------ ---------- B----------------- NOT -------------------------
X = ? a) A ^ B b) A + B c) A ^ (- B) d) ^ is for AND, + is for OR , - is for NOT. answer is c please check it.
5. in C "X ? Y : Z " is equal to a) if (X==0) Y ;else Z b) if (X!=0) Y ;else Z c) if (X==0) Y ; Z d)
6. foo() int foo(int a, int b){ if (a&b) return 1; return 0; }
a) if either a or b are zero returns always 0 b) if both a & b are non zero returns always 1 c) if both a and b are negarive....... d)
7. typedef struct nt{--------} node-type node-type *p a) p =( nodetype *)malloc( size of (node-type)) b) c) d)
8. function gives some error what changes as to be made void ( int a,int b){ int t; t=a; a=b; b=t; } a)define void as int and write return tt b)change everywhere a to *a and b to *b c) d)
9. which of the following is incorrect a) if a and b are defined as int arrays then (a==b) can never be true b) parameters are passed to functions only by values c) defining functions in nested loops d)
10. includevoid swap(int*,int*);main(){int arr[8]={36,8,97,0,161,164,3,9}for (int i=0; i<7; i++)for (int j=i+1; j<8;j++)if(arr[i] cnt = ?
a) 7 b) 15 c)1 d)
11. int main(){ FILE *fp; fp=fopen("test.dat","w"); fprintf(fp,'hello\n"); fclose(fp); fp=fopen ("test.dat","w"); fprintf (fp, "world"); fclose(fp); return 0; }
if text.dat file is already present after compiling and execution how many bytes does the file occupy
a) 0 bytes b)5 bytes c)11 bytes d)data is insufficient
12. f1(int*x,intflag) int *y; *y=*x+3; switch(flag){ case 0:......... .... ........ break; case 1: *x=*y; break; case 2: ............ ....... ....... break; } return(*y) main() { *x=5; i=f1(x,0); j=f1(x,1); printf("%.........",i,j,*x); }
what is the output? a) 8 8 8 b) 5 8 8 c) 8 5 8 d)
13. client server system (question about this i don't remember exact question)
PART 2: HERE A PROBLEM IS DEFINED YOU HAVE TO WRITE A PROGRAMME IN C OR C++
TWO SCHOOLS,HAVING DIFFERENT NO. OF CLASSES . EACH CLASS HAS DIFFERENT NO. OF SECTIONS.THE 2 SCHOOLS HAVE TO BE MERGED TOGETHR SO THAT A STUDENT OF SAME CLASS AND SECTION REMAIN SAME. FOR EXAMPLE, 1A STUDENTS OF BOTH SCHOOLS SHOULD BE IN 1A SECTION OF NEW SCHOOL
WRITE A PROGRAM FOR THE ABOVE USING 1) DYNAMIC MEMORY ALLOCATION 2) SRUCTURES 3)
part 1
it consists of number series.In some institutes alphabetical series is given instead of number series.Iam having number series so iam sending that.Please go through tha alphabetical tests also.1. 19,24,20,25,21,26,? ans:222. 11,14,12,15,13,16,? ans: 143. 10,2,8,2,6,2,? a:44. 8,9,11,14,,18,23,? a:295. 25,25,22,22,19,19,? a:166. 14,2,12,4,10,6,? a:87. 7,16,9,15,11,14,? a:138. 40,42,39,44,38,46,? a:379. 3,18,4,24,5,30,? a:610. 18,20,22,20,28,20,? a:2211. 18,20,10,12,4,6? a:012. 7,6,8,5,3,7,? a:413 9,18,21,25,20,? a:3014 3,3,4,8,10,36,? a:3315.30,28,25,20,34,28,? a:2116. 4,8,16,32,64,128,? a:25617. 8,16,24,32,40,48,? a:5618. 13,11,14,12,15,13,? a:1619. 6,18,36,108,216,648,? a:129620. 4,4,8,8,16,16,? a:3221. 2,6,18,54,162,486,? a:145822. 4,20,35,49,62,74,? a:8523. 10,18,15,23,20,28,? a:2524. 4,10,8,14,12,18,? a:1625 10,15,12,17,14,10,? a:16
part 2 consists of non-verbel reasoning(figures).So it is impossible for me to send those.(25 questions)
part 3 (quantitative)
1.A clerk multiplied a number by ten when it should have been divided by ten.The ans he got was 100.what should the ans have been?a:12.If Rs20/- is available to pay for typing a research report & typist A produces 42 pages and typist B produces 28 pages.How much should typist A receive?a:Rs12/-3.The average salary of 3 workers is 95 Rs. per week. If one earns Rs.115 and second earns Rs.65 how much is the salary of the 3rd worker.Ans.105.4.A 16 stored building has 12000 sq.feet on each floor. Company A rents 7 floors and company B rents 4 floors. What is the number of sq.feet of unrented floor space. Ans.600005. During a given week A programer spends 1/4 of his time preparing flow chart, 3/8 of his time coding and the rest of the time in debugging the programs. If he works 48 hours during the week , how many hours did he spend debugging the program.Ans. 18.6. A company installed 36 machines at the beginning of the year. In March they installed 9 additional machines and then disconnected 18 in August. How many were still installed at the end of the year. Ans. 277. A man owns 2/3 of the market research beauro business and sells 3/4 of his shares for Rs. 75000. What is the value of Business. Ans.1500008. If 12 file cabinets require 18 feet of wall space, how many feet of wall space will 30 cabinets require?Ans.459.A computer printer produced 176,400 lines in a given day. If the printer was in operation for seven hours during the day, how many lines did it print per minute?Ans.420
10. From its total income, A sales company spent Rs.20,000 for advertising, half of the remainder on commissions and had Rs.6000 left. What was its total income?Ans.3200011. On Monday a banker processed a batch of cheques, on Tuesday she processed three times as many, and on Wednesday she processed 4000 cheques. In the three days, she processed 16000 cheques. How many did she process on Tuesday?Ans.900012. The cost of four dozen proof machine ribbons and five dozen accouting machine ribbons was Rs.160/-. If one dozen accounting machine ribbons cost Rs.20/-, what is the cost of a dozen proof machine ribbons?Ans.Rs.1513. If a clerk can process 80 cheques in half an hour, how many cheques can she process in a seven and one half hour day?Ans.120014. In a library, there are two racks with 40 books per rack. On a given dya, 30 books were issued. What fraction remained in the racks?Ans.5/815. The average length of three tapes is 6800 feet. None of the tapes is less than 6400 feet. What is the greatest possible length of one of the other tapes?Ans.760016. A company rented a machine for Rs.700/- a month. Five years later the treasurer calculated that if the company had purchased the machine and paid Rs.100/- monthly maintenance charge, the company would have saved Rs.2000/-. What was the purchase price of the machine?Ans.Rs.3400017. Two computers each produced 48000 public utility bills in a day. One computer printed bills at the rate of 9600 an hour and the other at the rate of 7800 an hour. When the first computer finished its run, how many bills did the other computer still have to print?Ans.9000
18. If a salesman's average is a new order every other week, he will break the office record of the year. However, after 28 weeks, he is six orders behind schedule. In what proportion of the remaining weeks does he have to obtain a new order to break the record?Ans.3/419. On a given day, a bank had 16000 cheques returned by customers. Inspection of the first 800 cheques indicated that 100 of those 800 had errors and were therefore the available immediately for data processing. On this basis, hwo many cheques would be available immediately for data processing on that day?Ans.1400020. A company figured it needed 37.8 sq.feet of carpot for its reception room. To allow for waste, it decided to order 20% more material than needed. Fractional parts of sq.feet cannot be ordered. At Rs.9/- a sq.feet, how much would the carpet cost?Ans.a. Rs.324 b) Rs.405 c) Rs.410 d) Rs.414 e) Rs.68521. A tape manufacturer reduces the price of his heavy duty tape from Rs.30/- to Rs.28/- a reel and the price of a regular tape from Rs.24/- to Rs.23/- a reel. A computing centre normally spends Rs.1440/- a month for tapes and 3/4 of this is for heavy duty tapes. How much will they save a month under the new prices?Ans.Rs.8722. In a team of 12 persons, 1/3 are women and 2/3 are men. To obtain a team with 20% women how many men should be hired?Ans.823. The dimensions of a certain machine are 48" X 30" X 52". If the size of the machine is increased proportionately until the sum of its dimensions equals 156", what will be the increase in the shortest side?Ans. 6"24. In a certain company, 20% of the men and 40% of the women attended the annual company picnic. If 35% of all the employees are man, what percent of all the employees went to the picnic?Ans.33%25. It cost a college Rs.0.70 a copy to produce a Programme for the homecoming football game. If Rs.15,000/- was received for advertisements in the programme, how many copies at Rs.0.50 a copy must be sold to make a profit of Rs.8000/- ?Ans. 35000
*********************************************************************
In the first section there are 40 question's on letter series.Very easy upto 25 and then slightly involved after that againlast 10questons are easy.
For example:
1. aa , bb, cc, --2. a,c,e,g,-etc.,
1)int i=10;printf("%d%d%d",i,i++,++i);ans: compiler dependent2)printf("Enter two values a and b:"):scanf("%d%d",a,b);printf("%d+%d=%d",a,b,a+b);ans:core dumped3)Question on WM_SIZEans:WM_SIZE4)when destroy window what message would displyans:WM_DESTROY5)MS Windows 3.1 about multitasking ans:nonpreemptive6)windows 3.1 isans:application7) about switch switch statementans:16,218)question paper the first question ans isans:can't be compiled9)about send messages and post messagesans: c10)what is the command to intiate the windowsans:WinMain
paper 1.const char * char * const What is the differnce between the above tow?. 2.In Unix inter process communication take place using?. 3.What are the files in /etc directory?. 4.About i-node numbers 5.Max relaxable permisssion value with out giving write permission to others?. 6.About ln(linking) 7.A question on until until (who grep mary) do sleep(60) done 8.Linking across directories?. 9.process id for kernell process 10.very first process created by kernell 11.function to repaint a window immediately?. 12.Function entry for DLL in win3.1 13.win 3.1 is a 14.win 3.1 supports which type of multi tasking?. 15.Message displayed when a window is destroyed 16.About fork()? 17.About send message and post message 18.Message to limit the size of window 19.System call executable binary file intoa process 20.About GDI object?. 21.API used to hide window 22.Initialize contents of a dialog?.
1)two clocks meet at 12.Next time they meet againafterAns 65.452)Soldiers form a square .Initially 32 soldiersleft.Then 8 .After they could not form a square.Totalat the beginningoptions 100,81,49,673)Age of Grandfather is the ages of 4 grandchildrenwhere their ages are in consective.Find the age of GFI think 72 4)3 person waiting for the train Some conditionsgiven.Finally they ask the time.Ans is 4.375)Some Squirrel qs where it covers 1/4 th distancethen 1/2 i couldnt remember6)if mpown=121.Then m-1pown+1 is 10007)if speed in the ratio 5:4:3 then the time taken tocover the same distance is8)20men construct a wall 56m in some days similar oneans 49 (check aggarwal)
Technical
char *p=(char *)10op=?Running time of 8T(n/2)+q is ncubeScope of static and automatic var 2qsnodes in binary tree of length 4 is 15(2pown -1)how to convert 2d array to single dimension options are 1.convering a row 2 colunm 3 or both in to o'scomments-for documentaion or it increases file sizelike that.u have toi choose the correct oneTechnical qs are bit tricky..
Aptitude :
1. like 3 consecutive prime adds to some no what isthat ans: both 49 and 59.
2. one persont travlled 4 laps with the speed of10,20,40 ( or 30) and 60 kmph and what is the average speed. ans: 20 (sure)3.like one student takes 20 mins if he go with speed15kmph and at what speed he should go to reach in 15 mins ( nos are not same) ans: 16kmph( but not sure)4. there are 2 type of people group 'yes' who alwayssays yes ( they never say 'no') if they are notsure about they will remain sailent. and other grou name 'no' where the group of people always say 'no'if they are not sure they will remain silent. thats it now quetions are 1) what will be the answer if i ask are u belong togroup 'yes' options are: they remain silent ,say yes, say no,either yes or no, can't be determined 2) same quetion but if i ask are u belong to group'no' answers for both above quetions are not ( notdetermined) 3) what will the other person say if ask are ubelong to grou 'yes' and etc there were 5 quetions first 4 u can do it last onelittle bit tough. spend some time on this u can do it. 4) 5)
9.like from height of 8 mts on ball fell down and eachtime it bounces half the distnace back. so what will be the distancetravelled ans: 24 (sure) like 8+4+4+2+2+1+1+0.5+0.5+ and etc.. answer is not 2010.like 6 cubes are arranged adjacentlay and giventhe perimeter and aksed to find the perimeter of one cube. ans: if x is the total perimeter then (x/14)*4 leadsto the answer. but check it once u will be having plenty of time. answer is 52 (13*4)
11. some data is given like this 10kmph in still watership took some x mins and downstream some y mins in same time what is the stream value .... (q is not exat) ans: 3 (not sure)
12.some average problem like 16 students averageweight and teacher joins them .... ans: 23 (sure) do this (16x+40)/(x+1) will givethe value.
13. some probelm on square like to increase area by69% by what percent side should be incresed ans: square root of 169 i.e 13 ( not sure)
14. no of rational nos b/w 0 and 5 ans: infinite15. First day of 1999 is sunday what day is the lastday ans: monday
16.bullets probel some x no of bullets are shared by 3people equally . and each fired 4 bullets then the sum of remaining bullets isequal to intially divsion value ans: 18 (sure)
17. bread problem, one come and eat half no of breadsand somthing... ans: 63( check it)
18. like A can do in 6 day and B can do in 8 and C cando in 12 days but b left after working for 6 days forhow many no of day A and C shluld work ans: 11( i dont think so this is correct)
Technical
1. what is vector processingans: i dont no
2. what is data integrity ans: option a ( like the range of values is definedby data integrity)
3.which topology takes minimum wiring options: star,bus,ring and complete etc ans: find it from network text book ( may be bus orring)
4.best sorting if elements are already sortedans: insertion sort(sure)
5.software configuration management -----ans: option a ( but check it from SE text book thereare only 2 confusing answers)
6.In network the packers are flowing unnecessarly whatis the way to control it and .... options: SNMP, and some i dont remember.
7.some octal no to decimal conversion for given octal no the last digit was 7 ans: the option a ( the decimal last digit was 1)
8.x-=y+1 is equivalant to ans: x=x-y-1 (sure) because it is interpreted asx=x-(y+1)9. in a student form what is the relationship b/wstudent and course ans: actually it is many to one but they specifiedin a student form so think and write.
10.which is correct to append the ouput of ls and whoto some file x. ans:(who;ls)>>x (check it)
11.what is trigger in DBMS (know what it will do)
12.what happens when we open a file in r+ mode like whether file will be created if it s not therecan we write to file ...13. what is ROM ans: it contains boot up program and it is notaccesible that was one answer and anothe option was it is non volatile ( choose one among these 2)14. what is int (*a)[4] ans: pointer to an array of 4 integer (check it)
15. primary key of anothe table is present and soon.......... ans: foreign key
16. what is the diffirenece b/w 0123 and 123 in c? ans:40(sure)
17. which among the devices is spooled device ans: printer(correct)
18. if u get error in adapter which device will u use? ans: contact electronics student. one of the option was voltometer.
19. which is the real time application ans: robotics
HR quetions:1. why 2+2 is 4 why not 5.
ans: assume u took 2 apples from A and 2 moreapples from B and assume u are having 5 and give 2 to X and give 2 more to Y thennothing will be with u i.e u lossed. (give some answers but dont say that it islike that only )
2.how may stones did hanuman thowned on lanka? (diffirent but of same type) and one more how many trees are there in u'r campus...ans: dont say i dont no say some no for ex 1000 and say i.e correct . theywont say any thing for that because it is not possible to disprove that .
3. why IBM
and etc .........
1. In 1978, a kg of paper was sold at Rs25/-. If the paper rate increases at 1.5% more than the inflation rate which is 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 given B and C the same number of marbles each of them already have. Then, B gave C and A the same number of marbles they already have. Then C gave A and B the same number of marbles they already have. At the end A,B,and C have equal number of marbles.
(i) If x,y,z are the marbles initially with A,B,C respectively. Then the number of marbles B have at the end
(a) 2(x-y-z) (b) 4(x-y-z) (c) 2(3y-x-z) (d) x + y-z
Ans. (c)
(ii) If the total number of marbles are 72, then the number of marbles with A at the starting
(a) 20 (b) 30 (c) 32 (d) 39
Ans. (d)
3. If a car starts from A towards B with some velocity. Due to some problem in the engine after travelling 30km, the car goes with 4/5 th of its actual velocity The car reaches B 45 min 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 15 books. 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. Ten questions on analogies.
eg: chief : tribe :: governer : state epaulette : shoulder :: tiara : head guttural : throat :: gastric : stomach inept : clever :: languid : active knife : butcher :: hammer : carpenter ::
6. The values of shares (in Rs).of A, B and C from January to June are as follows.
Month A B C January 30 60 80 February 35 65 85 March 45 75 65 April 40 75 82 May 55 75 85 June 50 75 80
i) During this period which share has undergone maximium fluctuation? ii) In which month it is possible to buy B and C selling A? iii) In which month the share values are very low? iv) By purchasing one share of A and 4 each of B and C in the beginning of the period, when shoudl these be sold to get maximum profit?
7. In a computer institute 9 languages can be taught. The module is of 6 months duration and of the six languages only one can be taught each month . In addition to that BASIC is always taught and should be in first month itself
WORD PERFECT is to be taught in the preceeding week of WORD STAR. FORTRAN can not be taught until COBAL is taught prior to that BINO, FIFO can never be taught in single module languages are BASIC, WORD STAR, WORD PERFECT, FORTRAN, COBAL, BINO, FIFO, LOTUS, C
i) If word star is in 3rd month , what could be in 6th month. ii) If COBAL is in the 2nd month and BINO in 6th month. FORTRAN will be taught in which month.
8. In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there
(a) 30 (b) 33 (c) 36 (d) none of these.
Ans. (d)
9. A square plate of some size is cut at four corners. Equal squares of the same size are cut and is formed as open box. If this open box carries 128 ml of oil. What is the size of the side of the plate?
(a) 17 (b) 14 (c) 13 (d) None of these
10. In a square, all the mid points are joined. The inner square is shaded. If the area of the square is A, what is the area of the shaded area?
11. Two questions on basic angles i.e given a circle, a few chords or diameter is drawn etc.
12. If the follwoing statements are given
@(a,b)= (a+b)/2 /(a,b)= a/b *(a,b)= ab If a=1, b=2 then find
i) /(a,(@(a,b),*(a,b)))
ii) */(a,@(*(a,b)))
13. If the follwoing statements are given
(x#y) = x + y- xy (x*y) = (x + y)/2 i) Find the values of x, y will satisfy this equation (x#y)#(x*y) < (x#y) ii) Find the values of x, y will satisfy this equation (a*b)#(b*c)< (a#b)*(b*c)
14. Export PS1 results in(PS1 pwd)
a) primary prompt being your current directory b) primary prompt and secondary prompts being the current directory c) primary prompt prompt being your home directory d) primary prompt and secondary prompts being the home directory e) None of the above.
15. If you type in the command
nohup sort employees > list 2 > error out &
and log off ,the next time you log in, the output will be
a) in a file called list and the error will de typed in a file error out b) there will be no file called list or error out c) error will be logged in a file called list and o/p will be in error out d) you will not be allowed to log in e) none of the above
16. In UNIX a files i-node ......?
Ans. Is a data structure that defines all specifications of a file like the file size, number of lines to a file, permissions etc.
17. The UNIX shell ....
a) does not come with the rest of the system b) forms the interface between the user and the kernal c) does not give any scope for programming d) deos not allow calling one program from with in another e) all of the above
Ans. (b)
18. enum number { a=-1, b= 4,c,d,e} What is the value of e ?
(a) 7 (b) 4 (c) 5 (d) 15 (e) 3
19. The very first process created by the kernal that runs till the kernal process is halts is
a) init b) getty c) both (a) and (b) d) none of these
Ans. (a)
20. Output 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. (d)
21. What is the ouptut in the following program
main() {char c=-64; int i=-32 unsigned int u =-16; if(c>i) {printf("pass1,"); if(ca) Pass1,Pass2 b) Pass1,Fail2 c) Fail1,Pass2 d) Fail1,Fail2 e) None of these
Ans. (c)
22. 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)
23. 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)
24. 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 number:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line number 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)
25. In the following code segment what will be the result of the function,
value of x , value of y {unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); }
a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT
Ans. (a)
26. PATH = /bin : /usr : /yourhome The file /bin/calender has the following line in it
cal 10 1997
The file /yourhome/calender has the following line in it
cal 5 1997
If the current directory is /yourhome and calender is executed
a) The calendar for May 1997 will be printed on screen b) The calendar for Oct 1997 will be printed on screen c) The calendar for the current month( whatever it is) will be printed d) Nothing will get printed on screen e) An error massage will be printed
27. What will be the result of the following program ?
char *gxxx() {static char xxx[1024]; return xxx; }
main() {char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); }
a) The string is : string b) The string is :Oldstring c) Run time error/Core dump d) Syntax error during compilation e) None of these
Ans. (b)
28. What will be result of the following program?
void myalloc(char *x, int n) {x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); }
main() {char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); }
a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these
29. Which of the following function is used to repaint a window immediately
a) Sendmessage(hWnd,WM_PAINt,......) b) InvalidateRect(.......) c) MoveWindow d) WM_COPY e) None
30. Which function is the entry point for a DLL in MS Windows 3.1
a) Main b) Winmain c) Dllmain d) Libmain e) None
Ans. (b)
31. The standard source for standard input, standard output and standard error is
a) the terminal b) /dev/null c) /usr/you/input, /usr/you/output/, /usr/you/error respectively d) None
Ans. (a)
32. What will be the result of the following program?
main() {char p[]="String"; int x=0; if(p=="String") {printf("Pass 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } else { printf("Fail 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } }
a) Pass 1, Pass 2 b) Fail 1, Fail 2 c) Pass 1, Fail 2 d) Fail 1, Pass 2 e) syntax error during compilation
33. Which of the choices is true for the mentioned declaration ?
const char *p; and char * const p;
a) You can't change the character in both b) First : You can't change the characterr & Second : You can;t change the pointer c) You can't change the pointer in both d) First : You can't change the pointer & Second : You can't chanage the character e) None
34. The redirection operators > and >>
a) do the same function b) differ : > overwrites, while >> appends c) differ : > is used for input while >> is used for output d) differ : > write to any file while >> write only to standard output e) None of these
Ans. (b)
35. The command grep first second third /usr/you/myfile
a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above
Ans. (b)
apptitude:1. If A can do a particular work in 8 days. B can do the work in 6 days. By C joining with them, they can finish the work in 3 days. If Rs.540 was paid to them, what is the share of C?
2. By selling a product a seller is gaining 10% on selling price. If he sell that product Rs.80 less, he would have been losing 10%. What is the cost price?
3. If A dricer drives a car four times a lap 10,20 30,60 kmph what is his average speed.
4. If M persons are going for a party, then their share is $D. If three persons were absent, then how much share will be increased for each individual.(Solution : Average = D/M. Three absent New average = D/M-3 Increase = Newaverage - Average = D/M-3 - D/M )
5. If the radious is increased by 50%. How much will be the volume increased for a circle / Sphere in percentage.
6. One person is wearing Black and White shoes as his pair. If he is having 20 white and 20 Black shoes. What will be the less number of time he have try to take his correct pair of shoes.
7. The age of the grand father is the sum of his three grandsuns. The second is 2 year younger than first one and the third one is 2 year younger than the second one. Then what will be the age of the grandfather.
8. in a grass field, If there are 40 cows, they could eat for 40 days. If there are 30 cows, they could eat for 60 days. Than if 20 cows, How much day they could eat?
9. If the size of the fruit is two times the size of the seed. Then what is the volume of the seed. (derive general equation)
10. Speed of boat in still water 10 kmph.If the boat takes 24hr in up stream and 16hr in down stream to cross the same distance, then what will be the distance covered.
11. How many times do the hands of the clock coincide in a day?
12. If a person is standing in room, that is having mirrors in all the four walls. How many images of the person will appear.
Technical.
1. main() { printf("%u",main); } what will be the output?
2. main() { int 1,b; int con; 1=b=2; con (b==1) ? 1 : 0; printf("%d",con); } what will be the value of con?
3. Software Configuration Management process is --------------
4. Data Integrity constraint is ----------------------
5. Paging is ------------------------
6. What type of memory could be accessed in least time?
(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 given B and C the same number of marbles each of them already have. Then, B gave C and A the same number of marbles they already have. Then C gave A and B the same number of marbles they already have. At the end A,B,and C have equal number of marbles.
(i) If x,y,z are the marbles initially with A,B,C respectively. Then the number of marbles B have at the end
(a) 2(x-y-z) (b) 4(x-y-z)(c) 2(3y-x-z)(d) x + y-z
Ans. (c)
(ii) If the total number of marbles are 72, then the number of marbles with A at the starting
(a) 20 (b) 30 (c) 32(d) 39
Ans. (d)
3. If a car starts from A towards B with some velocity. Due to some problem in the engine after travelling 30km, the car goes with 4/5 th of its actual velocity The car reaches B 45 min 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 15 books. 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. Ten questions on analogies.
eg: chief : tribe :: governer : state epaulette : shoulder :: tiara : head guttural : throat :: gastric : stomach inept : clever :: languid : active knife : butcher :: hammer : carpenter ::
6. The values of shares (in Rs).of A, B and C from January to June are as follows.
Month A B C January 30 60 80 February 35 65 85 March 45 75 65 April 40 75 82 May 55 75 85 June 50 75 80
i) During this period which share has undergone maximium fluctuation?ii) In which month it is possible to buy B and C selling A?iii) In which month the share values are very low?iv) By purchasing one share of A and 4 each of B and C in the beginning of the period, when shoudl these be sold to get maximum profit?
7. In a computer institute 9 languages can be taught. The module is of 6 months duration and of the six languages only one can be taught each month . In addition to that BASIC is always taught and should be in first month itself
WORD PERFECT is to be taught in the preceeding week of WORD STAR. FORTRAN can not be taught until COBAL is taught prior to that BINO, FIFO can never be taught in single module languages are BASIC, WORD STAR, WORD PERFECT, FORTRAN, COBAL, BINO, FIFO, LOTUS, C
i) If word star is in 3rd month , what could be in 6th month.ii) If COBAL is in the 2nd month and BINO in 6th month. FORTRAN will be taught in which month.
8. In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there
(a) 30 (b) 33 (c) 36 (d) none of these.
Ans. (d)
9. A square plate of some size is cut at four corners. Equal squares of the same size are cut and is formed as open box. If this open box carries 128 ml of oil. What is the size of the side of the plate?
(a) 17 (b) 14 (c) 13(d) None of these
10. In a square, all the mid points are joined. The inner square is shaded. If the area of the square is A, what is the area of the shaded area?
11. Two questions on basic angles i.e given a circle, a few chords or diameter is drawn etc.
12. If the follwoing statements are given
@(a,b)= (a+b)/2 /(a,b)= a/b *(a,b)= ab If a=1, b=2 then find
i) /(a,(@(a,b),*(a,b)))
ii) */(a,@(*(a,b)))
13. If the follwoing statements are given
(x#y) = x + y- xy (x*y) = (x + y)/2 i) Find the values of x, y will satisfy this equation (x#y)#(x*y) < (x#y)ii) Find the values of x, y will satisfy this equation (a*b)#(b*c)< (a#b)*(b*c)
14. Export PS1 results in(PS1 pwd)
a) primary prompt being your current directoryb) primary prompt and secondary prompts being the current directoryc) primary prompt prompt being your home directoryd) primary prompt and secondary prompts being the home directorye) None of the above.
15. If you type in the command
nohup sort employees > list 2 > error out &
and log off ,the next time you log in, the output will be
a) in a file called list and the error will de typed in a file error outb) there will be no file called list or error outc) error will be logged in a file called list and o/p will be in error outd) you will not be allowed to log ine) none of the above
16. In UNIX a files i-node ......?
Ans. Is a data structure that defines all specifications of a file like the file size, number of lines to a file, permissions etc.
17. The UNIX shell ....
a) does not come with the rest of the systemb) forms the interface between the user and the kernalc) does not give any scope for programmingd) deos not allow calling one program from with in anothere) all of the above
Ans. (b)
18. enum number { a= -1, b= 4,c,d,e} What is the value of e ?
(a) 7(b) 4(c) 5(d) 15(e) 3
19. The very first process created by the kernal that runs till the kernal process is halts is
a) initb) gettyc) both (a) and (b)d) none of these
Ans. (a)
20. Output 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,17b) 5,9,13,17c) 12,17,22d) 16,21e) Syntax error
Ans. (d)
21. What is the ouptut in the following program
main(){char c=-64;int i=-32unsigned int u =-16;if(c>i){printf("pass1,");if(ca) Pass1,Pass2b) Pass1,Fail2c) Fail1,Pass2d) Fail1,Fail2e) None of these
Ans. (c)
22. 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)
23. Which of the following API is used to hide a window
a) ShowWindowb) EnableWindowc) MoveWindowd) SetWindowPlacemente) None of the above
Ans. (a)
24. 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 number:9//p = malloc(strlen(Temp) + 1);strcpy(p,Temp);printf("(%s, %s)",a,p);free(p);free(a);} //Line number 15//
a) Swap contents of p & a and print:(New string, string)b) Generate compilation error in line number 8c) Generate compilation error in line number 5d) Generate compilation error in line number 7e) Generate compilation error in line number 1
Ans. (b)
25. In the following code segment what will be the result of the function,
value of x , value of y{unsigned int x=-1;int y;y = ~0;if(x == y)printf("same");elseprintf("not same");}
a) same, MAXINT, -1b) not same, MAXINT, -MAXINTc) same , MAXUNIT, -1d) same, MAXUNIT, MAXUNITe) not same, MAXINT, MAXUNIT
Ans. (a)
26. PATH = /bin : /usr : /yourhome The file /bin/calender has the following line in it
cal 10 1997
The file /yourhome/calender has the following line in it
cal 5 1997
If the current directory is /yourhome and calender is executed
a) The calendar for May 1997 will be printed on screenb) The calendar for Oct 1997 will be printed on screenc) The calendar for the current month( whatever it is) will be printedd) Nothing will get printed on screene) An error massage will be printed
27. What will be the result of the following program ?
char *gxxx(){static char xxx[1024];return xxx;}
main(){char *g="string";strcpy(gxxx(),g);g = gxxx();strcpy(g,"oldstring");printf("The string is : %s",gxxx());}
a) The string is : stringb) The string is :Oldstringc) Run time error/Core dumpd) Syntax error during compilatione) None of these
Ans. (b)
28. What will be result of the following program?
void myalloc(char *x, int n){x= (char *)malloc(n*sizeof(char));memset(x,\0,n*sizeof(char));}
main(){char *g="String";myalloc(g,20);strcpy(g,"Oldstring");printf("The string is %s",g);}
a) The string is : Stringb) Run time error/Core dumpc) The string is : Oldstringd) Syntax error during compilatione) None of these
29. Which of the following function is used to repaint a window immediately
a) Sendmessage(hWnd,WM_PAINt,......)b) InvalidateRect(.......)c) MoveWindowd) WM_COPYe) None
30. Which function is the entry point for a DLL in MS Windows 3.1
a) Mainb) Winmainc) Dllmaind) Libmaine) None
Ans. (b)
31. The standard source for standard input, standard output and standard error is
a) the terminalb) /dev/nullc) /usr/you/input, /usr/you/output/, /usr/you/error respectivelyd) None
Ans. (a)
32. What will be the result of the following program?
main(){char p[]="String";int x=0;if(p=="String"){printf("Pass 1");if(p[sizeof(p)-2]=='g')printf("Pass 2");elseprintf("Fail 2");}else{printf("Fail 1");if(p[sizeof(p)-2]=='g')printf("Pass 2");elseprintf("Fail 2");}}
a) Pass 1, Pass 2b) Fail 1, Fail 2c) Pass 1, Fail 2d) Fail 1, Pass 2e) syntax error during compilation
33. Which of the choices is true for the mentioned declaration ?
const char *p;andchar * const p;
a) You can't change the character in bothb) First : You can't change the characterr & Second : You can;t change the pointerc) You can't change the pointer in both d) First : You can't change the pointer & Second : You can't chanage the charactere) None
34. The redirection operators > and >>
a) do the same functionb) differ : > overwrites, while >> appendsc) differ : > is used for input while >> is used for outputd) differ : > write to any file while >> write only to standard outpute) None of these
Ans. (b)
35. The command grep first second third /usr/you/myfile
a) prints lines containing the words first, second or third from the file /usr/you/myfileb) searches for lines containing the pattern first in the filessecond, third, and /usr/you/myfile and prints themc) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints themd) replaces the word first with the word second in the files third and /usr/you/myfilee) None of the above
Ans. (b)
1) abcD+abcd+aBCd+aBCD then the simplified function is ( Capital letters are copliments of corresponding letters A=compliment of a) [a] a [b] ab [c] abc [d] a(bc)* [e] None (bc)*=compliment of bcAns: e-------------------------------------------
2) A 12 address lines maps to the memory of [a] 1k bytes [b] 0.5k bytes [c] 2k bytes [d] noneAns: b-------------------------------------------
3) In a processor these are 120 instructions . Bits needed to implement this instructions [a] 6 [b] 7 [c] 10 [d] noneAns: b-------------------------------------------
4) In 8085 microprocessor READY signal does.which of the following is incorrect statements [a]It is input to the microprocessor [b] It sequences the instructions. Ans : b-------------------------------------------
5) Return address will be returned by function to [a] Pushes to the stack by callAns : a-------------------------------------------
6) n=7623 {temp=n/10; result=temp*10+ result; n=n/10 }Ans : 3267-------------------------------------------
7) If A>B then F=F(G); else B>C then F=G(G);in this , for 75% times A>B and 25% times B>C then,is 10000 instructions are there ,then the ratio of F to G[a] 7500:2500 [b] 7500:625 [c] 7500:625 if a=b=c else 7500:2500-------------------------------------------
8) In a compiler there is 36 bit for a word and to store a character 8bits are needed. IN this to store a character two words are appended .Then for storing a K characters string, How many words are needed. [a] 2k/9 [b] (2k+8)/9 [c] (k+8)/9 [d] 2*(k+8)/9 [e] noneAns: a-------------------------------------------
9) C program code int zap(int n) { if(n<=1)then zap=1; --More-- else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15Ans: b-------------------------------------------
PART - B-------------------------------------------
1) Virtual memory size depends on [a] address lines [b] data bus [c] disc space [d] a & c [e] noneAns : a-------------------------------------------
2) Load a mul a store t1 load b mul b store t2 mul t2 add t1Then the content in accumulator isAns : a**2+b**4
Section-I1). Piggy backing is a technique for a) Flow control b) sequence c) Acknowledgement d) retransmitionans: c piggy backing
2). The layer in the OST model handles terminal emulationa) session b) application c) presentation d) transportans: b application3) ans: a odd numbers of errors
5) c 206) a 1207) b synchronise the access
9) b the operating system10) a 17733311) d used as a network layer protocall in network and windows system12) b has to be unique in the sub network 13)Q. there is an employer table with key feilds as employer no. data in every n'th row are needed for a simple following queries will get required results. a) select A employe no. from employe A , where exists from employe Bwhere A employe no. >= B employe having (count(*) mod n)=0 b) select employe no. from employe A, employe B whereA employe no. >= B employ no. grouply employe no. having (count(*) mod n=0 ) c) both a& b d)none of the above14)Q. type duplicates of a row in a table customer with non uniform key feildcustomer no. you can seea) delete from costomer where customer no. exists ( select distinct customer no. from customer having count )b) delete customer a where customer no. in(select customer b where custermer no. equal to b custemor no. ) and a rowid >b rowidc) delete customer a where custermor no. in ( select customer no. from customer a, customer b )d) none of the above
---------- Section I over with 15 quetions -------------------
SECTION-IISection II is not covered completly But it is very very easy. You can do it very easely.
1) ans: recursion 2) long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytesans: compiler dependentnote: order of a,b,c,d are doubt but answer is correct.3) x=2,y=6,z=6x=y==z;printf(%d",x) ?4) if(x>2)?3:4 5)6)
8) ------------14) c : class A,B and C can have member functions with same name.
SECTION-III
1) ans: b It does not work when rp is the last element in the linked list2) ans: a always3) ans: b 134) ans: b 16
7) ---8) ans:d 49) ans: c 510)ans: c semicolon missing
SECTION-IV
following are not in order: 2. M > D > Y ans: (a) 6. 10 in 4 seconds, ? in 6 minutes = 10x6x60/4 = 900 ans: (a) 8. 100(100000000+100000000)/10000 = 2x1000000 (ans).
10. Q is not equal to zero and k = (Q x n - s)/2 find n? (a) (2 x k + s)/Q (b) (2 x s x k)/Q (c) (2 x k - s)/Q (d) (2 x k + s x Q)/Q (e) (k + s)/Q
(from GRE book page no:411) data: A causes B or C, but not both F occurs only if B occurs D occurs if B or C occurs E occurs only if C occurs J occurs only if E or F occurs D causes G,H or both H occurs if E occurs G occurs if F occursNOTE: check following answers. 11. If A occurs which of the following must occurs I. F & G II. E and H III. D (a) I only (b) II only (c) III only (d) I,II, & III (e) I & II (or) II & III but not both ans: (e) 12. If B occurs which must occur (a) D (b) D and G (c) G and H (d) F and G (e) J ans: (a) 13. If J occurs which must have occured (a) E (b) either B or C (c) both E & F (d) B (e) both B & C ans: (b) 14. which may occurs as a result of cause not mentioned (1) D (2) A (3) F (a) 1 only (b) 2 only (c) 1 & 2 (d) 2 & 3 (e) 1,2,3 ans: (c) 15. E occurs which one cannot occurs (a) A (b) F (c) D (d) C (e) J ans: (b) 11 to 15:- ----------- e , a , b , c , b ---------------
1. convert 0.9375 to binary (c) a) 0.0111 b)0.1011 c)0.1111 d)none
2.( 1a00 * 10b )/ 1010 = 100 (b) a) a=0,b=0 b)a=0, b=1 c) d)none
3. in 32 bit memory machine 24 bits for mantissa and 8 bits for exponent. to increase the range of floating point. a) more than 32 bit is to be there. b) increase 1 bit for mantissa and decrease 1 bit for exponent c) increase 1 bit for exponent and decrease one bit for mantissa d)
4. this on logical gates
A---------------------------------- OR ------- ------- not ----- -- AND --- X ---- AND ------ ---------- B----------------- NOT -------------------------
X = ? a) A ^ B b) A + B c) A ^ (- B) d) ^ is for AND, + is for OR , - is for NOT. answer is c please check it.
5. in C "X ? Y : Z " is equal to a) if (X==0) Y ;else Z b) if (X!=0) Y ;else Z c) if (X==0) Y ; Z d)
6. foo() int foo(int a, int b){ if (a&b) return 1; return 0; }
a) if either a or b are zero returns always 0 b) if both a & b are non zero returns always 1 c) if both a and b are negarive....... d)
7. typedef struct nt{--------} node-type node-type *p a) p =( nodetype *)malloc( size of (node-type)) b) c) d)
8. function gives some error what changes as to be made void ( int a,int b){ int t; t=a; a=b; b=t; } a)define void as int and write return tt b)change everywhere a to *a and b to *b c) d)
9. which of the following is incorrect a) if a and b are defined as int arrays then (a==b) can never be true b) parameters are passed to functions only by values c) defining functions in nested loops d)
10. include
a) 7 b) 15 c)1 d)
11. int main(){ FILE *fp; fp=fopen("test.dat","w"); fprintf(fp,'hello\n"); fclose(fp); fp=fopen ("test.dat","w"); fprintf (fp, "world"); fclose(fp); return 0; }
if text.dat file is already present after compiling and execution how many bytes does the file occupy
a) 0 bytes b)5 bytes c)11 bytes d)data is insufficient
12. f1(int*x,intflag) int *y; *y=*x+3; switch(flag){ case 0:......... .... ........ break; case 1: *x=*y; break; case 2: ............ ....... ....... break; } return(*y) main() { *x=5; i=f1(x,0); j=f1(x,1); printf("%.........",i,j,*x); }
what is the output? a) 8 8 8 b) 5 8 8 c) 8 5 8 d)
13. client server system (question about this i don't remember exact question)
PART 2: HERE A PROBLEM IS DEFINED YOU HAVE TO WRITE A PROGRAMME IN C OR C++
TWO SCHOOLS,HAVING DIFFERENT NO. OF CLASSES . EACH CLASS HAS DIFFERENT NO. OF SECTIONS.THE 2 SCHOOLS HAVE TO BE MERGED TOGETHR SO THAT A STUDENT OF SAME CLASS AND SECTION REMAIN SAME. FOR EXAMPLE, 1A STUDENTS OF BOTH SCHOOLS SHOULD BE IN 1A SECTION OF NEW SCHOOL
WRITE A PROGRAM FOR THE ABOVE USING 1) DYNAMIC MEMORY ALLOCATION 2) SRUCTURES 3)
part 1
it consists of number series.In some institutes alphabetical series is given instead of number series.Iam having number series so iam sending that.Please go through tha alphabetical tests also.1. 19,24,20,25,21,26,? ans:222. 11,14,12,15,13,16,? ans: 143. 10,2,8,2,6,2,? a:44. 8,9,11,14,,18,23,? a:295. 25,25,22,22,19,19,? a:166. 14,2,12,4,10,6,? a:87. 7,16,9,15,11,14,? a:138. 40,42,39,44,38,46,? a:379. 3,18,4,24,5,30,? a:610. 18,20,22,20,28,20,? a:2211. 18,20,10,12,4,6? a:012. 7,6,8,5,3,7,? a:413 9,18,21,25,20,? a:3014 3,3,4,8,10,36,? a:3315.30,28,25,20,34,28,? a:2116. 4,8,16,32,64,128,? a:25617. 8,16,24,32,40,48,? a:5618. 13,11,14,12,15,13,? a:1619. 6,18,36,108,216,648,? a:129620. 4,4,8,8,16,16,? a:3221. 2,6,18,54,162,486,? a:145822. 4,20,35,49,62,74,? a:8523. 10,18,15,23,20,28,? a:2524. 4,10,8,14,12,18,? a:1625 10,15,12,17,14,10,? a:16
part 2 consists of non-verbel reasoning(figures).So it is impossible for me to send those.(25 questions)
part 3 (quantitative)
1.A clerk multiplied a number by ten when it should have been divided by ten.The ans he got was 100.what should the ans have been?a:12.If Rs20/- is available to pay for typing a research report & typist A produces 42 pages and typist B produces 28 pages.How much should typist A receive?a:Rs12/-3.The average salary of 3 workers is 95 Rs. per week. If one earns Rs.115 and second earns Rs.65 how much is the salary of the 3rd worker.Ans.105.4.A 16 stored building has 12000 sq.feet on each floor. Company A rents 7 floors and company B rents 4 floors. What is the number of sq.feet of unrented floor space. Ans.600005. During a given week A programer spends 1/4 of his time preparing flow chart, 3/8 of his time coding and the rest of the time in debugging the programs. If he works 48 hours during the week , how many hours did he spend debugging the program.Ans. 18.6. A company installed 36 machines at the beginning of the year. In March they installed 9 additional machines and then disconnected 18 in August. How many were still installed at the end of the year. Ans. 277. A man owns 2/3 of the market research beauro business and sells 3/4 of his shares for Rs. 75000. What is the value of Business. Ans.1500008. If 12 file cabinets require 18 feet of wall space, how many feet of wall space will 30 cabinets require?Ans.459.A computer printer produced 176,400 lines in a given day. If the printer was in operation for seven hours during the day, how many lines did it print per minute?Ans.420
10. From its total income, A sales company spent Rs.20,000 for advertising, half of the remainder on commissions and had Rs.6000 left. What was its total income?Ans.3200011. On Monday a banker processed a batch of cheques, on Tuesday she processed three times as many, and on Wednesday she processed 4000 cheques. In the three days, she processed 16000 cheques. How many did she process on Tuesday?Ans.900012. The cost of four dozen proof machine ribbons and five dozen accouting machine ribbons was Rs.160/-. If one dozen accounting machine ribbons cost Rs.20/-, what is the cost of a dozen proof machine ribbons?Ans.Rs.1513. If a clerk can process 80 cheques in half an hour, how many cheques can she process in a seven and one half hour day?Ans.120014. In a library, there are two racks with 40 books per rack. On a given dya, 30 books were issued. What fraction remained in the racks?Ans.5/815. The average length of three tapes is 6800 feet. None of the tapes is less than 6400 feet. What is the greatest possible length of one of the other tapes?Ans.760016. A company rented a machine for Rs.700/- a month. Five years later the treasurer calculated that if the company had purchased the machine and paid Rs.100/- monthly maintenance charge, the company would have saved Rs.2000/-. What was the purchase price of the machine?Ans.Rs.3400017. Two computers each produced 48000 public utility bills in a day. One computer printed bills at the rate of 9600 an hour and the other at the rate of 7800 an hour. When the first computer finished its run, how many bills did the other computer still have to print?Ans.9000
18. If a salesman's average is a new order every other week, he will break the office record of the year. However, after 28 weeks, he is six orders behind schedule. In what proportion of the remaining weeks does he have to obtain a new order to break the record?Ans.3/419. On a given day, a bank had 16000 cheques returned by customers. Inspection of the first 800 cheques indicated that 100 of those 800 had errors and were therefore the available immediately for data processing. On this basis, hwo many cheques would be available immediately for data processing on that day?Ans.1400020. A company figured it needed 37.8 sq.feet of carpot for its reception room. To allow for waste, it decided to order 20% more material than needed. Fractional parts of sq.feet cannot be ordered. At Rs.9/- a sq.feet, how much would the carpet cost?Ans.a. Rs.324 b) Rs.405 c) Rs.410 d) Rs.414 e) Rs.68521. A tape manufacturer reduces the price of his heavy duty tape from Rs.30/- to Rs.28/- a reel and the price of a regular tape from Rs.24/- to Rs.23/- a reel. A computing centre normally spends Rs.1440/- a month for tapes and 3/4 of this is for heavy duty tapes. How much will they save a month under the new prices?Ans.Rs.8722. In a team of 12 persons, 1/3 are women and 2/3 are men. To obtain a team with 20% women how many men should be hired?Ans.823. The dimensions of a certain machine are 48" X 30" X 52". If the size of the machine is increased proportionately until the sum of its dimensions equals 156", what will be the increase in the shortest side?Ans. 6"24. In a certain company, 20% of the men and 40% of the women attended the annual company picnic. If 35% of all the employees are man, what percent of all the employees went to the picnic?Ans.33%25. It cost a college Rs.0.70 a copy to produce a Programme for the homecoming football game. If Rs.15,000/- was received for advertisements in the programme, how many copies at Rs.0.50 a copy must be sold to make a profit of Rs.8000/- ?Ans. 35000
*********************************************************************
In the first section there are 40 question's on letter series.Very easy upto 25 and then slightly involved after that againlast 10questons are easy.
For example:
1. aa , bb, cc, --2. a,c,e,g,-etc.,
1)int i=10;printf("%d%d%d",i,i++,++i);ans: compiler dependent2)printf("Enter two values a and b:"):scanf("%d%d",a,b);printf("%d+%d=%d",a,b,a+b);ans:core dumped3)Question on WM_SIZEans:WM_SIZE4)when destroy window what message would displyans:WM_DESTROY5)MS Windows 3.1 about multitasking ans:nonpreemptive6)windows 3.1 isans:application7) about switch switch statementans:16,218)question paper the first question ans isans:can't be compiled9)about send messages and post messagesans: c10)what is the command to intiate the windowsans:WinMain
paper 1.const char * char * const What is the differnce between the above tow?. 2.In Unix inter process communication take place using?. 3.What are the files in /etc directory?. 4.About i-node numbers 5.Max relaxable permisssion value with out giving write permission to others?. 6.About ln(linking) 7.A question on until until (who grep mary) do sleep(60) done 8.Linking across directories?. 9.process id for kernell process 10.very first process created by kernell 11.function to repaint a window immediately?. 12.Function entry for DLL in win3.1 13.win 3.1 is a 14.win 3.1 supports which type of multi tasking?. 15.Message displayed when a window is destroyed 16.About fork()? 17.About send message and post message 18.Message to limit the size of window 19.System call executable binary file intoa process 20.About GDI object?. 21.API used to hide window 22.Initialize contents of a dialog?.
1)two clocks meet at 12.Next time they meet againafterAns 65.452)Soldiers form a square .Initially 32 soldiersleft.Then 8 .After they could not form a square.Totalat the beginningoptions 100,81,49,673)Age of Grandfather is the ages of 4 grandchildrenwhere their ages are in consective.Find the age of GFI think 72 4)3 person waiting for the train Some conditionsgiven.Finally they ask the time.Ans is 4.375)Some Squirrel qs where it covers 1/4 th distancethen 1/2 i couldnt remember6)if mpown=121.Then m-1pown+1 is 10007)if speed in the ratio 5:4:3 then the time taken tocover the same distance is8)20men construct a wall 56m in some days similar oneans 49 (check aggarwal)
Technical
char *p=(char *)10op=?Running time of 8T(n/2)+q is ncubeScope of static and automatic var 2qsnodes in binary tree of length 4 is 15(2pown -1)how to convert 2d array to single dimension options are 1.convering a row 2 colunm 3 or both in to o'scomments-for documentaion or it increases file sizelike that.u have toi choose the correct oneTechnical qs are bit tricky..
Aptitude :
1. like 3 consecutive prime adds to some no what isthat ans: both 49 and 59.
2. one persont travlled 4 laps with the speed of10,20,40 ( or 30) and 60 kmph and what is the average speed. ans: 20 (sure)3.like one student takes 20 mins if he go with speed15kmph and at what speed he should go to reach in 15 mins ( nos are not same) ans: 16kmph( but not sure)4. there are 2 type of people group 'yes' who alwayssays yes ( they never say 'no') if they are notsure about they will remain sailent. and other grou name 'no' where the group of people always say 'no'if they are not sure they will remain silent. thats it now quetions are 1) what will be the answer if i ask are u belong togroup 'yes' options are: they remain silent ,say yes, say no,either yes or no, can't be determined 2) same quetion but if i ask are u belong to group'no' answers for both above quetions are not ( notdetermined) 3) what will the other person say if ask are ubelong to grou 'yes' and etc there were 5 quetions first 4 u can do it last onelittle bit tough. spend some time on this u can do it. 4) 5)
9.like from height of 8 mts on ball fell down and eachtime it bounces half the distnace back. so what will be the distancetravelled ans: 24 (sure) like 8+4+4+2+2+1+1+0.5+0.5+ and etc.. answer is not 2010.like 6 cubes are arranged adjacentlay and giventhe perimeter and aksed to find the perimeter of one cube. ans: if x is the total perimeter then (x/14)*4 leadsto the answer. but check it once u will be having plenty of time. answer is 52 (13*4)
11. some data is given like this 10kmph in still watership took some x mins and downstream some y mins in same time what is the stream value .... (q is not exat) ans: 3 (not sure)
12.some average problem like 16 students averageweight and teacher joins them .... ans: 23 (sure) do this (16x+40)/(x+1) will givethe value.
13. some probelm on square like to increase area by69% by what percent side should be incresed ans: square root of 169 i.e 13 ( not sure)
14. no of rational nos b/w 0 and 5 ans: infinite15. First day of 1999 is sunday what day is the lastday ans: monday
16.bullets probel some x no of bullets are shared by 3people equally . and each fired 4 bullets then the sum of remaining bullets isequal to intially divsion value ans: 18 (sure)
17. bread problem, one come and eat half no of breadsand somthing... ans: 63( check it)
18. like A can do in 6 day and B can do in 8 and C cando in 12 days but b left after working for 6 days forhow many no of day A and C shluld work ans: 11( i dont think so this is correct)
Technical
1. what is vector processingans: i dont no
2. what is data integrity ans: option a ( like the range of values is definedby data integrity)
3.which topology takes minimum wiring options: star,bus,ring and complete etc ans: find it from network text book ( may be bus orring)
4.best sorting if elements are already sortedans: insertion sort(sure)
5.software configuration management -----ans: option a ( but check it from SE text book thereare only 2 confusing answers)
6.In network the packers are flowing unnecessarly whatis the way to control it and .... options: SNMP, and some i dont remember.
7.some octal no to decimal conversion for given octal no the last digit was 7 ans: the option a ( the decimal last digit was 1)
8.x-=y+1 is equivalant to ans: x=x-y-1 (sure) because it is interpreted asx=x-(y+1)9. in a student form what is the relationship b/wstudent and course ans: actually it is many to one but they specifiedin a student form so think and write.
10.which is correct to append the ouput of ls and whoto some file x. ans:(who;ls)>>x (check it)
11.what is trigger in DBMS (know what it will do)
12.what happens when we open a file in r+ mode like whether file will be created if it s not therecan we write to file ...13. what is ROM ans: it contains boot up program and it is notaccesible that was one answer and anothe option was it is non volatile ( choose one among these 2)14. what is int (*a)[4] ans: pointer to an array of 4 integer (check it)
15. primary key of anothe table is present and soon.......... ans: foreign key
16. what is the diffirenece b/w 0123 and 123 in c? ans:40(sure)
17. which among the devices is spooled device ans: printer(correct)
18. if u get error in adapter which device will u use? ans: contact electronics student. one of the option was voltometer.
19. which is the real time application ans: robotics
HR quetions:1. why 2+2 is 4 why not 5.
ans: assume u took 2 apples from A and 2 moreapples from B and assume u are having 5 and give 2 to X and give 2 more to Y thennothing will be with u i.e u lossed. (give some answers but dont say that it islike that only )
2.how may stones did hanuman thowned on lanka? (diffirent but of same type) and one more how many trees are there in u'r campus...ans: dont say i dont no say some no for ex 1000 and say i.e correct . theywont say any thing for that because it is not possible to disprove that .
3. why IBM
and etc .........
1. In 1978, a kg of paper was sold at Rs25/-. If the paper rate increases at 1.5% more than the inflation rate which is 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 given B and C the same number of marbles each of them already have. Then, B gave C and A the same number of marbles they already have. Then C gave A and B the same number of marbles they already have. At the end A,B,and C have equal number of marbles.
(i) If x,y,z are the marbles initially with A,B,C respectively. Then the number of marbles B have at the end
(a) 2(x-y-z) (b) 4(x-y-z) (c) 2(3y-x-z) (d) x + y-z
Ans. (c)
(ii) If the total number of marbles are 72, then the number of marbles with A at the starting
(a) 20 (b) 30 (c) 32 (d) 39
Ans. (d)
3. If a car starts from A towards B with some velocity. Due to some problem in the engine after travelling 30km, the car goes with 4/5 th of its actual velocity The car reaches B 45 min 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 15 books. 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. Ten questions on analogies.
eg: chief : tribe :: governer : state epaulette : shoulder :: tiara : head guttural : throat :: gastric : stomach inept : clever :: languid : active knife : butcher :: hammer : carpenter ::
6. The values of shares (in Rs).of A, B and C from January to June are as follows.
Month A B C January 30 60 80 February 35 65 85 March 45 75 65 April 40 75 82 May 55 75 85 June 50 75 80
i) During this period which share has undergone maximium fluctuation? ii) In which month it is possible to buy B and C selling A? iii) In which month the share values are very low? iv) By purchasing one share of A and 4 each of B and C in the beginning of the period, when shoudl these be sold to get maximum profit?
7. In a computer institute 9 languages can be taught. The module is of 6 months duration and of the six languages only one can be taught each month . In addition to that BASIC is always taught and should be in first month itself
WORD PERFECT is to be taught in the preceeding week of WORD STAR. FORTRAN can not be taught until COBAL is taught prior to that BINO, FIFO can never be taught in single module languages are BASIC, WORD STAR, WORD PERFECT, FORTRAN, COBAL, BINO, FIFO, LOTUS, C
i) If word star is in 3rd month , what could be in 6th month. ii) If COBAL is in the 2nd month and BINO in 6th month. FORTRAN will be taught in which month.
8. In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there
(a) 30 (b) 33 (c) 36 (d) none of these.
Ans. (d)
9. A square plate of some size is cut at four corners. Equal squares of the same size are cut and is formed as open box. If this open box carries 128 ml of oil. What is the size of the side of the plate?
(a) 17 (b) 14 (c) 13 (d) None of these
10. In a square, all the mid points are joined. The inner square is shaded. If the area of the square is A, what is the area of the shaded area?
11. Two questions on basic angles i.e given a circle, a few chords or diameter is drawn etc.
12. If the follwoing statements are given
@(a,b)= (a+b)/2 /(a,b)= a/b *(a,b)= ab If a=1, b=2 then find
i) /(a,(@(a,b),*(a,b)))
ii) */(a,@(*(a,b)))
13. If the follwoing statements are given
(x#y) = x + y- xy (x*y) = (x + y)/2 i) Find the values of x, y will satisfy this equation (x#y)#(x*y) < (x#y) ii) Find the values of x, y will satisfy this equation (a*b)#(b*c)< (a#b)*(b*c)
14. Export PS1 results in(PS1 pwd)
a) primary prompt being your current directory b) primary prompt and secondary prompts being the current directory c) primary prompt prompt being your home directory d) primary prompt and secondary prompts being the home directory e) None of the above.
15. If you type in the command
nohup sort employees > list 2 > error out &
and log off ,the next time you log in, the output will be
a) in a file called list and the error will de typed in a file error out b) there will be no file called list or error out c) error will be logged in a file called list and o/p will be in error out d) you will not be allowed to log in e) none of the above
16. In UNIX a files i-node ......?
Ans. Is a data structure that defines all specifications of a file like the file size, number of lines to a file, permissions etc.
17. The UNIX shell ....
a) does not come with the rest of the system b) forms the interface between the user and the kernal c) does not give any scope for programming d) deos not allow calling one program from with in another e) all of the above
Ans. (b)
18. enum number { a=-1, b= 4,c,d,e} What is the value of e ?
(a) 7 (b) 4 (c) 5 (d) 15 (e) 3
19. The very first process created by the kernal that runs till the kernal process is halts is
a) init b) getty c) both (a) and (b) d) none of these
Ans. (a)
20. Output 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. (d)
21. What is the ouptut in the following program
main() {char c=-64; int i=-32 unsigned int u =-16; if(c>i) {printf("pass1,"); if(ca) Pass1,Pass2 b) Pass1,Fail2 c) Fail1,Pass2 d) Fail1,Fail2 e) None of these
Ans. (c)
22. 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)
23. 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)
24. 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 number:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line number 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)
25. In the following code segment what will be the result of the function,
value of x , value of y {unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); }
a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT
Ans. (a)
26. PATH = /bin : /usr : /yourhome The file /bin/calender has the following line in it
cal 10 1997
The file /yourhome/calender has the following line in it
cal 5 1997
If the current directory is /yourhome and calender is executed
a) The calendar for May 1997 will be printed on screen b) The calendar for Oct 1997 will be printed on screen c) The calendar for the current month( whatever it is) will be printed d) Nothing will get printed on screen e) An error massage will be printed
27. What will be the result of the following program ?
char *gxxx() {static char xxx[1024]; return xxx; }
main() {char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); }
a) The string is : string b) The string is :Oldstring c) Run time error/Core dump d) Syntax error during compilation e) None of these
Ans. (b)
28. What will be result of the following program?
void myalloc(char *x, int n) {x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); }
main() {char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); }
a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these
29. Which of the following function is used to repaint a window immediately
a) Sendmessage(hWnd,WM_PAINt,......) b) InvalidateRect(.......) c) MoveWindow d) WM_COPY e) None
30. Which function is the entry point for a DLL in MS Windows 3.1
a) Main b) Winmain c) Dllmain d) Libmain e) None
Ans. (b)
31. The standard source for standard input, standard output and standard error is
a) the terminal b) /dev/null c) /usr/you/input, /usr/you/output/, /usr/you/error respectively d) None
Ans. (a)
32. What will be the result of the following program?
main() {char p[]="String"; int x=0; if(p=="String") {printf("Pass 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } else { printf("Fail 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } }
a) Pass 1, Pass 2 b) Fail 1, Fail 2 c) Pass 1, Fail 2 d) Fail 1, Pass 2 e) syntax error during compilation
33. Which of the choices is true for the mentioned declaration ?
const char *p; and char * const p;
a) You can't change the character in both b) First : You can't change the characterr & Second : You can;t change the pointer c) You can't change the pointer in both d) First : You can't change the pointer & Second : You can't chanage the character e) None
34. The redirection operators > and >>
a) do the same function b) differ : > overwrites, while >> appends c) differ : > is used for input while >> is used for output d) differ : > write to any file while >> write only to standard output e) None of these
Ans. (b)
35. The command grep first second third /usr/you/myfile
a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above
Ans. (b)
apptitude:1. If A can do a particular work in 8 days. B can do the work in 6 days. By C joining with them, they can finish the work in 3 days. If Rs.540 was paid to them, what is the share of C?
2. By selling a product a seller is gaining 10% on selling price. If he sell that product Rs.80 less, he would have been losing 10%. What is the cost price?
3. If A dricer drives a car four times a lap 10,20 30,60 kmph what is his average speed.
4. If M persons are going for a party, then their share is $D. If three persons were absent, then how much share will be increased for each individual.(Solution : Average = D/M. Three absent New average = D/M-3 Increase = Newaverage - Average = D/M-3 - D/M )
5. If the radious is increased by 50%. How much will be the volume increased for a circle / Sphere in percentage.
6. One person is wearing Black and White shoes as his pair. If he is having 20 white and 20 Black shoes. What will be the less number of time he have try to take his correct pair of shoes.
7. The age of the grand father is the sum of his three grandsuns. The second is 2 year younger than first one and the third one is 2 year younger than the second one. Then what will be the age of the grandfather.
8. in a grass field, If there are 40 cows, they could eat for 40 days. If there are 30 cows, they could eat for 60 days. Than if 20 cows, How much day they could eat?
9. If the size of the fruit is two times the size of the seed. Then what is the volume of the seed. (derive general equation)
10. Speed of boat in still water 10 kmph.If the boat takes 24hr in up stream and 16hr in down stream to cross the same distance, then what will be the distance covered.
11. How many times do the hands of the clock coincide in a day?
12. If a person is standing in room, that is having mirrors in all the four walls. How many images of the person will appear.
Technical.
1. main() { printf("%u",main); } what will be the output?
2. main() { int 1,b; int con; 1=b=2; con (b==1) ? 1 : 0; printf("%d",con); } what will be the value of con?
3. Software Configuration Management process is --------------
4. Data Integrity constraint is ----------------------
5. Paging is ------------------------
6. What type of memory could be accessed in least time?
0 Comments:
Post a Comment
<< Home