HP Placement Paper

Hi all, this is just a sneek-peek of the HP paper.
20 C Q, 15 C++ Q, 15 UNIX Q, 15 general aptitude.

1) i=23, j=4, c=0;
   c=i++-++j;
   o/p?

2)#define CUBE(x) x*x*x
  #define MUL3(x,y) 3*x*y
  #define ADD(x) x+y
some statement maikng use of the preprocessors defined above............find o/p.

3)virtual destructors r used 4 ??

4)2 questions on friend functions & classes

5)"bash" is a kind of shell in UNIX

6)primitive flavours of unix
  options : a. BSD &Sys V b. LINUX & BSD c................

7)which of the folllowing is used 4 redirection in UNIX?
  >, |, <, ^

8)volatile int i;
  in d above statement, is "volatile"
  a. a type declaration b. type qualifier c. storage class d. none of the above

9)char c[]="123456789";
  i=4;
  printf("%c %c", c[i], i[c]);
  o/p?
  one more question on these lines.

10)in apt, one problem on work-time, some 5-6 probs on number series, simple stuff
    2 analytical Q's with sub questions.

11)wot is d UNIX terminology 4 multi-tasking?
   a. time slicing b. pre-emptive ....... c. time division d..................

12)int *ptr;
    p=0;
    p++;
    printf("%u", p);
    o/p?
    a. 0 b. garbage value c. 4 d. none of the above

13)double i=0.0;
    switch(i)
    {
           case 0.0:
 printf("jgdj");
           case 1.0:
 printf("ptoy");
 break;
           default:
 printf("hdfv");
     }
     o/p?

14)in UNIX if u try accessing a directory 4 which u dont have permission, wot message is     displayed?
   a. permission denied b. invalid user c. access denied d...................


Comments (0)

Post a Comment
* Your Name:
* Your Email:
(not publicly displayed)
Reply Notification:
Approval Notification:
Website:
* Security Image:
Security Image Generate new
Copy the numbers and letters from the security image:
* Message:

Email to Friend

Fill in the form below to send this article to a friend:

Email to Friend
* Your Name:
* Your Email:
* Friend's Name:
* Friend's Email:
* Security Image:
Security Image Generate new
Copy the numbers and letters from the security image
* Message: