Subscribe Jobs Via E-Mail


HP Placement Papers 2016-2017 | HP Interview Questions 2017

HP Placement Papers 2016-2017 | HP Interview Questions 2017. We are offering latest placement papers and Interview questions for people who are going to attend HP interview. If you are going to attend HP Company Interview then start preparing interview questions below. If you are about to attend HP Recruitment Drive, You are at the right place you got all you need to crack the HP Placement Process.

We will provide all companies Placement papers,Interview Questions, Interview Pattern , Test Paper syllabus in our site and also we provide previous papers for all govt jobs 2017 and bank jobs 2017.  

You will get HP latest placement process 2017-2018 and updated Placement process here. Sample HP Placement Papers 2017-2018 are way to prepare for the HP Interview. Most frequently asked HP interview questions 2017-2018 are listed below. 

Normally the interview process starts with you submitting the profile form in HP careers portal. If your profile gets shortlisted, you will receive a call or e-mail with all the information regarding the Written test date and telephonic interview date and Technical,HR interview dates.

You May Also Want To Check: Upcoming HP Freshers Recruitment 2017

1) HP acquired this company in 2002. Which is the company
a)Compaq b)Dell c)option 3 d) Option4

Ans: a

2) what does 3G denote
a) 3rd generation mobile communication b) 3rd generation computer languages c) option 3 d) option4

Ans: a

3)an application program that is used by the users to get the inofrmation from the backend of some application like databases:
a) application server b)proxy server c)database server d)option 4

Ans: database server

4) which of the following is not true about the e-mail
a) it can be accessed by a client program using POP
b) it can be accessed by a client program using imap protocol
c) option 3
d) option 4

5) Some quesion regarding the company and who developed it ( the thing to remember is that Apple produce Macintosh computers).

5) What is X.25?
a)option 1 b)option 2 c)option 3 d)option 4

Ans: find out??:-)

C/C++ Section:
Questions on C/C++, Programs O/P etc.

6) main( )
unsigned int i=3;
while( i >=0)
printf( "%d", i--);
how many times will the printf stmt be executed?

a)0 b)3 c)4 d)infinite
Ans: I think the answer is infinite, b'cos 'i' is an unsigned integer and it will not decrement below '0' and hence end up in an infinite loop.(yes, i checked and it is getting stuck in an infinite loop)

7) main( )
int x,y, z;
z= x+++y;
printf("%d %d %d", x, y z);

a)3 5 7 b)option 2 c)option 3 d)option 4

Ans: a

8) # define swap(a,b) temp=a; a=b; b=temp;
main( )
int i, j, temp;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);

Ans: On compiling i got ans 10, 0, 0. I did not understand the concept. Please expalin this to me.

You May Also Want To Check: Latest Interview Questions

Java section: 

Questions on Java Related Stuff.

9) Java was initially code named as:

a)Oak b)green c)miller d)option4

Ans: Oak

10) 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

Ans: c

11) Why is the synchronize used?

a) to initialize multiple objects b)to lock an object c)option3 d)option 4

Ans: b (probably)

Operating Systems: 

12) Which of the following is not associated with operating systems 

a) Swapper                 b) device drivers                 c) file system                 d) process mgmt

13) What is the size of virtual memory that must be associated 

a) Must be same as physical memory 
b)must be > physical memory 
c) Can be of any size 
d)it must be small enough to allocate process 

14) Which of following is true 
a) Time sharing is also multi programming 
b) Multi programming is also time sharing 

15) Global variables are stored at 
a) Heap             b) Stack             c) Data             d) Code 

Computer Organization: 

16) 32 registers are instructuion can hold upto 3 registers . the opcode is of 4 bits. what is minimum size of instruction. 
Ans: the minimum sizeof instruction has nothing to do with number of registers 

17) Some bit on pipelineling 

18)some bit related to SIMD,MIMD,MISD,SISID 

19) Minimum no of nand gates require to implement xor gate 

Ans : 4 gates(check out) 


20) Two way communication is possible by means of means of which of the following 

Ans: unix_socket 

21) wc -l x>x prints out

Ans: wc command prints 0 

22) The background process that continusly run 

Ans: deamon process 


23) Fragmented packet is reunited at 

a) Destination 
b)at next gateway 
c)at highest MTU gateway 
d)at the next router 

24) The following address 

a) Class A             b) class B             c) class C             d) class D 

25) Network to host protocal is 

Ans: RARP 

Data Structures: 

26)given a doubly linked list .you are given with a node n and a pointer p associated with it. what are the operarions that to be performed to delete that node. 

27)swapping the elements of left child of a tree with that of right child . 


node* tree; 

if given tree is 

2 3 
4 5 6 7 

28) What is the output for about function applied? 

3 2 
7 6 5 4 

29)t(n)=4+t(n/2) ,t(0)=1. what is the complexity 

30) In hashing each element can be found with complexity of 

Ans: 1 

31) In a program all the addresses that are to be binded to the caller function are done by 

 a)compiler             b) linker             c) loader             d) run time allocator 

32) s->v[integer] 

Ans: a[2,3,5] 

33) char 1 byte , short of 2 bytes , integer of 4 byte, 

char a; 
char b; 
int a[2]; 
short d; 
int e; 
char i; 
} name; 

Note: consider c compiler unde unix for all c questions 

C Questions: 


int i=1; 

case 1: printf("case1"); 
case 2: printf("case 2"); 
default: printf("default"); 

Ans: when we compile we get warning that unreachable code and if we execute we get "case 1"  will be printed. 

35) Questions related to funtcital pointers 

36) Some question on const char*p , char* const p; 


37. find the average of first 40 natural numbers?

    Ans- 20.5.

38. A train  100 metres long takes 6 seconds to cross a man walking at 5 kmph in the   direction  opposite to that of the train. Find the speed of the train.?

Ans-55 kmph

39. In a game of 80 points; A can give B 5 points  and C 15  points. Then how many points  B can give C  in a game of 60 ?

Ans-8 points

40. A and B can do a piece of work in 18 days; Band C can do it in 24 days A and C can do it in 36 days. In how many days will A, Band C finish it together and separately?

Ans-144 days

41. The ratio between a two-digit number and the sum of the digits of that

number is 4 : 1.If the digit in the unit's place is 3 more than the digit in the ten’s place, what is the number?


42. Express each of the following as rate percent :

(i) 23/36                       (ii) 6 ¾             (iii) 0.004

43. Two dice are thrown together .What is the probability that the sum of the number on the two faces is divided by 4 or 6


44. If the a radio is sold for rs 490 and sold for rs 465.50.find loss%.


Question (9-10) Choose the word that best completes the analogy.


A. Pier

B. Berth

C. Depot

D. Station


A. Power

B. Weight

C. Strength

D. Thickness

47. In the question below, there is a sentence of which some parts have been jumbled up. Rearrange these parts which are labelled P, Q, R and S to produce the correct sentence. Choose the proper sequence.


Since the beginning of history

P :        have managed to catch

Q :       the Eskimos and Red Indians

R :       by a very difficulty method

S :        a few specimens of this aquatic animal

The Proper sequence should be:

A.        QRPS 

B.        SQPR

C.        SQRP 

D.        QPSR


48. Choose the word which best expresses the meaning of the given word.


A.        Quarrelsome   

B.        Rash

C.        Disrespectful  

D.        Noisy


49. choose the word which is the exact OPPOSITE of the given words.



A.        Divine

B.        Immortal

C.        Spiritual          

D.        Eternal


50. Each question consist of two words which have a certain relationship to each other followed by four pairs of related words, Select the pair which has the same relationship.


A.        Leonardo:music         

B.        Fresco:painter

C.        colours:pallet  

D.        art:appreciation


51. question has an underlined word followed by four answer choices. You will choose the word that is a necessary part of the underlined word.


A.        tongue

B.        slang

C.        writing

D.        words


52. Fill the blank in the middle of the series or end of the series.

CMM, EOO, GQQ, _____, KUU

A.        GRR   

B.        GSS

C.        ISS     

D.        ITT


53. Find the statement that must be true according to the given information.          

Vincent has a paper route. Each morning, he delivers 37 newspapers to customers in his neighborhood. It takes Vincent 50 minutes to deliver all the papers. If Vincent is sick or has other plans, his friend Thomas, who lives on the same street, will sometimes deliver the papers for him.

A.        Vincent and Thomas live in the same neighborhood.

B.        It takes Thomas more than 50 minutes to deliver the papers.

C.        It is dark outside when Vincent begins his deliveries.

D.        Thomas would like to have his own paper route.


54. The question presents a situation and asks you to make a judgment regarding that particular circumstance. Choose an answer based on given information.

Mrs. Carson took a taxi to meet her three friends for lunch. They were waiting for her outside the restaurant when she pulled up in the car. She was so excited to see her friends that she left her tote bag in the taxi. As the taxi pulled away, she and her friends took notice of the license plate number so they would be able to identify the car when they called the taxi company.

#1: The four women seem to agree that the plate starts out with the letter J.

#2: Three of them agree that the plate ends with 12L.

#3: Three of them think that the second letter is X, and a different three think that the third letter is K.

The four license plate numbers below represent what each of the four women thinks she saw. Which one is most likely the license plate number of the taxi?

A.        JXK 12L

B.        JYK 12L

C.        JXK 12I

D.        JXX 12L


55. Here are some words translated from an artificial language.

agnoscrenia means poisonous spider

delanocrenia means poisonous snake

agnosdeery means brown spider

Which word could mean "black widow spider"?

A.        deeryclostagnos         

B.        agnosdelano

C.        agnosvitriblunin         

D.        trymuttiagnos


56. Here are some words translated from an artificial language.

migenlasan means cupboard

lasanpoen means boardwalk

cuopdansa means pullman

Which word could mean "walkway"?

A.        poenmigen      

B.        cuopeisel

C.        lasandansa      

D.        poenforc


Questions on C

57. Find the output of the program








58. Which of following is correct:

            a)For loops can be nested

            b)For Loops may use the same Index

c)For loops


59. Find the output




  int a=6,y=3,z;

  float t=4.55;




a. 3 

b. 3.00000 

c. 3.55   


Ans: D

60. Find the type of error when the program is compiled


#define int printf("#int(intv)");



int x;

float g;

g=int x




61. What will the following program print

Main ()


Static char a[3][4]={"abcd","mnop" ,"fghi"}



a)will not compile successfully 

b)prints a

c)prints m 

d)prints garbage

Ans: b

62. Find the output



Int i=100;

Int M();



Int M(x)

Int x;




a)prints 100 

b)prints 101

c)prints error

d)prints 1013  

63. Find the output



Int i=7









a)i+=10 is executed by child only

b)i+=10 is executed by parent only

c)The child can start executing only after the termination of the parent process.

d)none of the above

64. # What will be printed as the result of the operation below:



        int x=20,y=35;

        x=y++ + x++;

        y= ++y + ++x;



Answer : 5794   

65. # What will be printed as the result of the operation below:

    int x;

    int modifyvalue()




    int changevalue(int x)




    void main()


        int x=10;





        printf("First output:%dn",x);



        printf("Second output:%dn",x);


        printf("Third output:%dn",x);


   Answer: 12 , 13 , 13

66. # WHat will be the result of the following code?

    #define TRUE 0 // some code



        // some code


Answer: This will not go into the loop as TRUE is defined as 0.

67. When we mention the prototype of a function?

     A.   Defining         

     B.   Declaring

     C.   Prototyping    

     D.   Calling


68. Which of the following range is a valid long double ?

    A.    3.4E-4932 to 1.1E+4932   

    B.    3.4E-4932 to 3.4E+4932

    C.    1.1E-4932 to 1.1E+4932   

     D.   1.7E-4932 to 1.7E+4932


69. How many bytes are occupied by near, far and huge pointers (DOS)?

     A.   near=2 far=4 huge=4 

     B.   near=4 far=8 huge=8

     C.   near=2 far=4 huge=8 

     D.   near=4 far=4 huge=8


70. In mathematics and computer programming, which is the correct order of     mathematical operators ?

A.        Addition, Subtraction, Multiplication, Division

B.        Division, Multiplication, Addition, Subtraction

C.        Multiplication, Addition, Division, Subtraction

D.        Addition, Division, Modulus, Subtraction


71. Which of the following are unary operators in C?

1. !

2. sizeof

3. ~


A 1, 2 

B. 1, 3

C. 2, 4

D. 1, 2, 3


72. In which stage the following code


gets replaced by the contents of the file stdio.h

A.        During editing

B.        During linking

C.        During execution       

D.        During preprocessing


73. What does the following declaration mean?

int (*ptr)[10];

A.        ptr is array of pointers to 10 integers

B.        ptr is a pointer to an array of 10 integers

C.        ptr is an array of 10 integers

D.        ptr is an pointer to array


74. Which of the following operations can be performed on the file "NOTES.TXT" using the below code?

FILE *fp;

fp = fopen("NOTES.TXT", "r+");

A.        Reading          

B.        Writing

C.        Appending     

D.        Read and Write


75. How will you print \n on the screen?

A.        printf("\n");     

B.        echo "\n";

C.        printf('\n');      

D.        printf("\n");


76. Which of the following function is used to find the first occurrence of a given string in another string?

A.        strchr()

B.        strrchr()

C.        strstr() 

D.        strnset()


Questions on Computer

77. What is the cause of thrashing? How does the system detect thrashing? Once it detects thrashing, what can the system do to eliminate this problem? –

78. What is DRAM?

79. What is a Real-Time System?

80. While running DOS on a PC, which command would be used to duplicate the entire diskette?

Ans- Diskcopy

81. What is the difference between a ‘thread’ and a ‘process’?

82. What is Marshalling?

83. Explain Memory Partitioning, Paging, Segmentation.

84. Which of the following is a block device

   A.     mouse

   B.     printer

   C.     terminals

   D.     disk

   E.      None of the above


85. The problem of thrashing is affected significantly by:

   A.     program structure

   B.     program size

   C.     primary-storage size

   D.     all of the above

   E.      None of the above


86. Advantage(s) of using assembly language rather than machine language is (are):

   A.     It is mnemonic and easy to read.

   B.     Addresses any symbolic, not absolute

   C.     Introduction of data to program is easier

   D.     all of the above

   E.      None of the above


87. When a computer is first turned on or restarted, a special type of absolute loader is executed, called a

   A.     "Compile and Go" loader

   B.     Boot loader

   C.     Bootstrap loader

   D.     Relating loader

   E.      None of the above


88. Which, of the following checks, cannot be carried out on the input data to a system?

   A.     consistency check

   B.     Syntax check

   C.     Range check

   D.     All of the above

   E.      None of the above


89. A public key encryption system

   A.     allows anyone to decode the transmission

   B.     allows only the correct sender to decode the data

   C.     allows only the correct receiver to decode the data

   D.     does not encode the data before transmitting it

   E.      None of the above


90. Capacity planning

   A.     requires detailed system performance information

   B.     is independent of the operating system

   C.     does not depend on the monitoring tools available

   D.     is not needed in small installations

   E.      None of the above


91. A form of code that uses more than one process and processor, possibly of different type, and that may on occasions have more than one process or processor active at the same time, is known as

   A.     multiprogramming

   B.     multi threading

   C.     broadcasting

   D.     time sharing

   E.      None of the above


92. Which command is used to copy all files having the string chap and any two characters after that to the progs directory?

   A.     cp chap?? progs

   B.     cp chap* progs

   C.     cp chap[12] /progs/*.*

   D.     cp chap?? /progs/*

   E.      None of the above


93. Which of the following special shell variables is used to process number of the last background job?

   A.     $!

   B.     $#

   C.     $0

   D.     $*

   E.      None of the above


94. Which of the following command addresses all users who are currently hooked on?

   A.     write

   B.     mail

   C.     wall

   D.     mesg

   E.      None of the above


95. Which of the following command addresses all users who are currently hooked on?

   A.     write

   B.     mail

   C.     wall

   D.     mesg

   E.      None of the above


96. The filed separator in cut command is specified with

   A.     -a option

   B.     -d option

   C.     -r option

   D.     -x option

   E.      None of the above


97. What is a Database system?

98. What are the disadvantage in File Processing System?

99. What is an Entity set?

100. What is DDL (Data Definition Language)?

101. What is SDL (Storage Definition Language)?

102. A primary key should be defined as:

   A.     NULL.

   B.     NOT NULL.

   C.     Either of the above can be used.

   D.     None of the above are correct.


103. A station in a network forwards incoming packets by placing them on its shortest output queue. What routing algorithm is being used?

   A.     hot potato routing

   B.     flooding

   C.     static routing

   D.     delta routing

   E.      None of the above


104. Frames from one LAN can be transmitted to another LAN via the device

   A.     Router

   B.     Bridge

   C.     Repeater         

   D.     Modem


105. Which of the following condition is used to transmit two packets over a medium at the same time?

   A.     Contention

   B.     Collision

   C.     Synchronous

   D.     Asynchronous

   E.      None of the above


106.Which of the following technique is used for Time-To-Line (TTL)?

A.        a technique used in best-effort delivery system to avoid endlessly looping     packets.

B.        a technique used by protocols in which a lower level protocol accepts a message from a higher level protocol and places it in the data portion of the low level frame

C.        One of the pieces that results when an IP gateway divides an IP datagram into smaller pieces for transmission across a network that cannot handle the original datagram size.

D.        All of the above

E.         None of the above


107. What command is used with vi editor to delete a single character?

   A.     x

   B.     y

   C.     a

   D.     z

   E.      None of the above


108. A default catch block catches

   A.     all thrown objects

   B.     no thrown objects

   C.     any thrown object that has not been caught by an earlier catch block

   D.     all thrown objects that have been caught by an earlier catch block


109.Format flags may be combined using

   A.     the bitwise OR operator (|)

   B.     the logical OR operator (||)

   C.     the bitwise AND operator (&)

   D.     the logical AND operator (&&)


110. The generic type in a template function

   A.     must be T

   B.     can be T

   C.     cannot be T for functions you create, but may be for C++'s built-in functions

   D.     cannot be T


111. The number 5.5e3 is a _____ constant

   A.     character literal

   B.     named literal

   C.     numeric literal

   D.     string literal


112. Which of the following declares and initializes an Integer variable named numltems?

   A.     int numltems = 0;

   B.     int numltems = '0';

  C.      integer numltems = 0;

  D.      numltems int = 0;

  E.       numltems integer = 0;


113.Which of the following tells C++ to display numbers with two decimal places?

   A.     setdecimal(2)  

   B.     setiosflags(2)

   C.     setiosflags(2.00)         

   D.     setprecision(2)


114. Which of the following are never inherited?

   A.     public data members

   B.     constructor functions

   C.     void functions

   D.     overloaded + operators


115.In the expression p --> val,p is a(n)

   A.     address           

   B.     pointer

   C.     structure         

   D.     header


116. You define a structure type globally because

   A.     you save many lines of code by not rewriting an identical structure definition         in each function that uses it

   B.     you will never change its definition

   C.     it is required in C++

   D.     all of the above