HP Placement Paper 2011 - II 1. what will be the o/p #include<stdio.h> main() { inta[3]; int *x; int*y; a[0]=0;a[1]=1;a[2]=2; x=a++; y=a; printf(“%d %d\n”, x,(++y)); } a. 0,1 b. 1,1 c. error d. 1,2 2. consider the following program listing #include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100 3. Consider the prog and select answer #include<stdio.h> void main ( ) { int k=4,j=0: switch (k) { case 3; j=300; case 4: j=400: case 5: j=500; } printf (“%d\n”,j); } A. 300 B. 400 C. 500 D. 0 4. A dog taken four leaps for every five leaps of hare but three leaps of the dog is equal to four leaps of the hare. Compare speed? (A) 12:16 (B) 19:20 (C) 16:15 (D) 10:12 5. A watch ticks 90 times in 95 seconds. And another watch ticks 315 times in 323 secs. If they start together, how many times will they tick together in first hour? (A) 100 times (B) 101 times (C) 99 times (D) 102 times Directions (Q. 6 - 10): In each of the following questions a no. Series is given. After the series, a no. is complete the series starting with the no. given and following the same property as in the given no. series. Then answer the questions below it. 6. 5 25 20 100 95 475 1 (a) (b) (c) (d) (e) What should come in place of (c)? 1) 5 2) 10 3) 2 4) 0 5) -5 7. 36 96 156 126 96 111 25 (a) (b) (c) (d) (e) What should come in place of (d)? 1) 135 2) 85 3) 35 4) 75 5) 125 8.. 45 270 54 216 72 144 15 (a) (b) (c) (d) (e) What should come in place of (b)? 1) 90 2) 18 3) 72 4) 82.24 5) 24 9. 714 115 20 3 0 0 5033 (a) (b) (c) (d) (e) What should come in place of (a)? 1) 5040 2) 811.77 3) 714 4) 120 5) 22 10. 65 52 1040 832 16640 13312 75 (a) (b) (c) (d) (e) What should come in place of (d)? 1) 1200 2) 15560 3) 5040 4) 60 5) 19200 11. What is Open System and Closed System in Computer terminology 12. .How do you implement TREE in Java ? How do you implement the same using C or C++ ? 13. What will happen if we give GOBACK instead of STOPRUN in a cobol program which is not called by some other program? 14. Java was initially code named as: a)Oak b)green c)miller 15. what is not true about the following statements about java. a) it is compiled using javac compiler b) the compiled files have .class extension. c) such files cannot be transfered from one comp to another. d) they use the java interpreter 16. Which of the following values of 'n' satisfies the in-equality n2 - 24n + 143 < 0? 1) n < 11 2) n > 13 3) 11 < n < 13 4) 11 > n > 13 5) None of these 17. .If 2x+y = 11, 2y+z = 12 and z+2x = 8, find the value of 2x + 3y +4z. 1) 29 2) 33 3) 25 4) 39 5) None of these 18. .What kind of sorting is this: SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,……..n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 19. Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE; 20. Look at the Code: #include void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage | |||||||||||||||||||||
|
Friday, 2 December 2011
HP Placement Paper 2011 - II and All Placement Papers | Place 4 Search
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2011
(124)
-
▼
December
(50)
- Freshers Walk-In at DCKAP Technologies Chennai - B...
- GoSEO Freshers Off-Campus Web Masters @ Chennai | ...
- SYNTEL FRESHERS Campus Recruitment Program for Ind...
- XERAGO Freshers Off-Campus : BE / B.Tech / MCA : ....
- Bahwan Cyber Tek Recruitment For Java Developer : ...
- 6minds Technologies Recruitment For PHP Developer ...
- Management Aptitude Test - MAT Exam 2012 | Place 4...
- Indian Administrative Service - IAS Exam | Place 4...
- NDA Exam Recruitment of candidates to Army, Navy a...
- Graduate Aptitude Test in Engineering - GATE 2012
- Common Admission Test - CAT 2012 | Place 4 Search
- AIEEE 2012 - 11th All India Engineering Entrance E...
- The All India Engineering Entrance Examination (AI...
- INFOSYS Hiring Freshers BE / BTech / ME / MTech/ ...
- PC Solutions Pvt Ltd Recruits Software Engineer/T...
- Win Fashion Technologies Recruits Dot Net Develope...
- Larsen Toubro Infotech Ltd Recruits Freshers Excit...
- Infosys Placement Paper 2012 and All Placement Pap...
- Infosys Placement Paper 2011 - I and All Placement...
- Infosys Placement Paper 2011 - II and All Placemen...
- Infosys Placement Paper 2011 - III and All Placeme...
- Infosys Placement Paper I and All Placement Papers...
- Infosys Placement Paper II and All Placement Paper...
- Infosys Placement Paper III and All Placement Pape...
- Infosys Placement Paper IV and All Placement Paper...
- iGATE Placement Papers 2011 - I and All Placement ...
- iGATE Placement Papers 2011 - II and All Placement...
- IBM Technical Interview Questions 2011 and All Pla...
- IBM Placement Paper 2011 and All Placement Papers ...
- IBM Placement Paper 2011 - I and All Placement Pap...
- IBM Placement Paper 2011 - II and All Placement Pa...
- HP Technical Interview Questions 2011 and All Plac...
- HP Placement Paper 2011 - I and All Placement Pape...
- HP Placement Paper 2011 - II and All Placement Pap...
- HP Placement Paper 2010 and All Placement Papers |...
- Honeywell Placement Paper 2011 (HTSL) and All Plac...
- Honeywell Placement Paper 2011 - II (HTSL) and All...
- Honeywell Placement Paper 2010 (HTSL) and All Plac...
- Hexaware Placement Paper 2012 January and All Plac...
- Hexaware Placement Paper 2011 - I and All Placemen...
- Hexaware Placement Paper 2011 - II and All Placeme...
- HDFC Bank Placement Paper 2012 ans All Placement P...
- HDFC Bank Placement Paper 2011 ans All Placement P...
- HCL Placement Paper 2012 and All Placement Papers ...
- HCL Placement Paper 2011 - I and All Placement Pap...
- HCL Placement Paper 2011 - II and All Placement Pa...
- Google Placement Paper 2011 - I and All Placement ...
- Google Placement Paper 2011 and All Placement Pape...
- Dell Placement Paper 2011 and All Placement Paper ...
- Dell Placement Paper 2010 and All Placement Paper ...
-
▼
December
(50)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.