Вы находитесь на странице: 1из 17

HP Solved Placement Paper 1

This section consist of some aptitude and technical questions generally asked in written
test:

a) Aptitude Questins with Answers

1. Lucia is a wonderful grandmother. Her age is between 50 and 70.Each of her sons have
as many sons as they have brothers. Their combined number gives Lucia’ s age. What is
the age?
a) 60
b) 65
c) 64
d) 66

Answer: c
Explanation:
Let the no. of Lucia’ s sons = n
No. of brothers for each son = n-1
No. of sons for each of Lucia’ s son = n-1
Lucia’ s age = n-1 * n-1
= a perfect square between 50 and 70
= 64

2. Two trains running in opposite directions cross a man standing on the platform in 27
seconds and 17 seconds respectively and they cross each other in 23 seconds. The ratio of
their speeds is:
a) 1 : 3
b) 3 : 2
c) 3 : 4
d) None of these
Answer: b

3. A train passes a station platform in 36 seconds and a man standing on the platform in 20
seconds. If the speed of the train is 54 km/hr, what is the length of the platform?
a) 240 m
b) 120 m
c) 300 m
d) None of these
Answer: a
4. A can do a work in 15 days and B in 20 days. If they work on it together for 4 days, then
the fraction of the work that is left is:
a) 1/4
b) 1/10
c) 7/15
d) 8/15
Answer: d

5. On selling 17 balls at Rs. 720, there is a loss equal to the cost price of 5 balls. The cost
price of a ball is:
a) Rs. 45
b) Rs. 50
c) Rs. 55
d) Rs. 60
Answer: d

6. Grass in lawn grows equally thick and in a uniform rate.It takes 40 days for 40 cows and
60 days for 30 cows to eat the whole of the grass.How many days does it take for 20 cows
to do the same?
a) 125
b) 110
c) 120
d) 130
Answer: c

Explanation:
g - grass at the beginning
r - rate at which grass grows, per day
y - rate at which one cow eats grass, per day
n - no of cows to eat the grass in 96 days
g + 40*r = 40 * 40 * y------- 1
g + 60*r = 30 * 60 * y------- 2
g + n*r = 20 * n * y-------- 3
from 1 and 2
r=10y g=120r
from 3
nr=120r
Solving, n = 120

7. When a plot is sold for Rs. 18,700, the owner loses 15%. At what price must that plot be
sold in order to gain 15%?
a) Rs. 21,000
b) Rs. 22,500
c) Rs. 25,300
d) Rs. 25,800
Answer: c
8. A, B and C can do a piece of work in 20, 30 and 60 days respectively. In how many days
can A do the work if he is assisted by B and C on every third day?
a) 12 days
b) 15 days
c) 16 days
d) 18 days
Answer: 2

b) Technical Questions wih Answers

1. How many such pairs of letters are there in the word DISTURB, each one has as many
letters between its two letters in the word as there are between them in the English
alphabet?
a) 4
b) 5
c) 3
d) 2
e) None of these
Answer: a

2. What are the types of linkages?


a) Internal and External
b) External, Internal and None
c) External and None
d) Internal
Answer: b

3. Which of the following is not a type of constructor?


a) Copy constructor
b) Friend constructor
c) Default constructor
d) Parameterized constructor
Answer: b

4. If C and G interchange their positions, which of the following will indicate A’ s position?
a) To the immediate right of G
b) 4th to the right of C
c) 2nd to the left of G
d) to the immediate left of C
e) none of these
Answer: d

5. Which of the following statements should be used to obtain a remainder after dividing
3.14 by 2.1?
a) rem = 3.14 % 2.1;
b) rem = modf(3.14, 2.1);
c) rem = fmod(3.14, 2.1);
d) Remainder cannot be obtain in floating point division.
Answer: c

6. main( )
{
unsigned int i=3; freshersworld.com
while( i >=0)
printf( “ %d” , i– );
}
how many times will the printf stmt be executed?

a) 0
b)3
c)4
d)infinite
Answer: d

7. Which of the following type of class allows only one object of it to be created?
a) Virtual class
b) Abstract class
c) Singleton class
d) Friend class
Answer: c

8. Which of the following stores pictures or graphics?


a) Frame Buffer
b) Sdram
c) Mbr
d) Mar

9. Choose the odd man out


a) IDM
b) SIM
c) GSM
d) GPRS
10. Find the output of the following C program.
Main
{int x,j,k;
J=k=6;x=2;
X=j*k;
Printf(“ %d” ,x);

11. Which of the following is the correct size of a long integer?


a) Compiler dependent
b) 8 bytes
c) 4 bytes
d) 2 bytes

12. From the below mentioned option, which is not an IM client?


a) MSN
b) AOL
c) XINGC
d) JABBER

13. How much space does an IP Address occupies?


a) 8 bytes
b) 6 bytes
c) 16 bytes
d) 4 bytes

14. Choose the correct option, which cannot be used across Files?
a) Static
b) Volatile
c) Constant
d) Extern

15. Choose the odd man out:


a) TOMCAT
b) JBOSS
c) BLUESTONE
d) WEBSPHERE

c) Verbal Aptitude Questions

1. Choose the correct antonym of: ADEPT


a) Incompetent
b) Dexterous
c) Whiz
d) Savvy

2. Choose the correct synonym of : EDACITY


a) Aversion
b) Gluttony
c) Voraciousness
d) Relish

3. Choose the correct option which will be compulsory a part of the below given word.
Language
a) Words
b) Tongue
c) Writing
d) Slang

4. Complete the following series


CMM, EOO, GQQ, ? KUU
a) ITT
b) GRR
c) ISS
d) GSS

5. Express the following as rate percent.


1. 6
2. 0.004
3. 23/46

6. How many times should you role a dice to get the probability of number 4 and 6 being
faced on the dices is divided at the same time?
a) 7/18
b) 6/19
c) 2/14
d) 1/15

7. How much loss will you incur if you bought a radio for 490 rupees and sold it for 465.50
rupees?
a) -5%
b) 5%
c) .5%
d) 0.5%

8. Find the average of 40 natural numbers that come first.


a) 15.5
b) 19.5
c) 19
d) 20.5
9. choose the correct option that represents the meaning of the proverb:
To cry wolf
a) To turn pale
b) To listen eagerly
c) To give false alarm
d) To keep off starvation

HP Sample Question Paper 2

HP solved question paper :

In each 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.

1) When he
P : did not know
Q : he was nervous and
R : heard the hue and cry at midnight
S : what to do

The Proper sequence should be:


A.RQPS
B.QSPR
C.SQPR
D.PQRS
Ans..A

2) Then
P : it struck me
Q : of course
R : suitable it was
S : how eminently

The Proper sequence should be:


A.SPQR
B.QSRP
C.PSRQ
D.QPSR
Ans.C

3) I read an advertisement that said


P : posh, air-conditioned
Q : gentleman of taste
R : are available for
S : fully furnished rooms

The Proper sequence should be:


A.PQRS
B.PSRQ
C.PSQR
D.SRPQ
Ans.B

Some proverbs/idioms are given below together with their meanings. Choose the correct
meaning of proverb/idiom

4) To keeps one's temper


A.To become hungry
B.To be in good mood
C.To preserve ones energy
D.To be aloof from
E.None of these
Ans.B

5) To have an axe to grind


A.A private end to serve
B.To fail to arouse interest
C.To have no result
D.To work for both sides
E.None of these
Ans.A

6) To cry wolf
A.To listen eagerly
B.To give false alarm
C.To turn pale
D.To keep off starvation
E.None of these
Ans.B

Read the each sentence to find out whether there is any grammatical error in it. The error,
if any will be in one part of the sentence.

7) (solve as per the direction given above)


A.We discussed about the problem so thoroughly
B.on the eve of the examination
C.that I found it very easy to work it out.
D.No error.
Ans.A

8) (solve as per the direction given above)


A.I could not put up in a hotel
B.because the boarding and lodging charges
C.were exorbitant
D.No error.
Ans.A

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.

9) GRAIN:SALT
A.shard:pottery
B.shred:wood
C.blades:grass
D.chip:glass
Ans.D

10) THRUST:SPEAR
A.mangle:iron
B.scabbard:sword
C.bow:arrow
D.fence:epee
Ans.D

11) LIGHT:BLIND
A.speech:dumb
B.language:deaf
C.tongue:sound
D.voice:vibration
Ans.A

12) WAN:COLOUR
A.corpulent:weight
B.insipid:flavour
C.pallid:complexion
D.enigmatic:puzzle
Ans.B

In questions given below, a part of the sentence is italicised and underlined. Below are
given alternatives to the italicised part which may improve the sentence. Choose the correct
alternative

13) The workers are hell bent at getting what is due to them.
A.hell bent on getting
B.hell bent for getting
C.hell bent upon getting
D.No improvement
Ans.C

14) If the room had been brighter, I would have been able to read for a while before bed
time.
A.If the room was brighter
B.If the room are brighter
C.Had the room been brighter
D.No improvement
Ans.C

15) his powerful desire brought about his downfall.


A.His intense desire B.His desire for power
C.His fatal desire D.No improvement
Ans.B

Find the correctly spelt words.

16) (solve as per the direction given above)


A.Ommineous
B.Omineous
C.Ominous
D.Omenous
Ans.C

17) (solve as per the direction given above)


A. Benefitted
B. Benifited
C. Benefited
D. Benefeted
Ans.C

18) (solve as per the direction given above)


A. Scripher
B. Scripture
C. Skripture
D. Scriptur
Ans.B

In the following questions choose the word which is the exact OPPOSITE of the given words

19) NADIR
A.Modernity
B.Zenith
C.Liberty
D.Progress
Ans.B

20) EXTRAVAGANCE
A.Luxury
B.Poverty
C.Economical
D.Cheapness
Ans.C

21) OBSCURE
A.Implicit
B.Obnoxious
C.Explicit
D.Pedantic
Ans.C

22) URBANE
A.Illiterate
B.Backward
C.Discourteous
D.Orthodox
Ans.C

In the following the questions choose the word which best expresses the meaning of the
given word.
23) CORPULENT
A.Lean
B.Gaunt
C.Emaciated
D.Obese
Ans.D

24) VENT
A.Opening
B.Stodge
C.End
D.Past tense of go
Ans.A

25) CANNY
A.Obstinate
B.Handsome
C.Clever
D.Stout
Ans.C

Technical

26. )#include
main()
{
int a=6,y=3,z;
float t=4.55;
z=a/y+t+a/y-t+a-2*t;
printf("%d",z);
}

a. 3
b. 3.00000
c. 3.55
d.none
Ans: D

27.Which of the following statements are correct ?


1: A string is a collection of characters terminated by '\0'.
2: The format specifier %s is used to print a string.
3: The length of the string can be obtained by strlen().
4: The pointer CANNOT work on string.

A. A, B
B. A, B, C
C. B, D
D. C, D
Ans-B

28. which is used for storing pictures or graphics


a) mbr
b)mar
c)frame buffer
d)sdram

29.What is the similarity between a structure, union and enumeration?


A. All of them let you define new values
B. All of them let you define new data types
C. All of them let you define new pointers
D. All of them let you define new structures
Ans-B

30.What will be the output of the program ?


#include<stdio.h>
int main()
{
enum days {MON=-1, TUE, WED=6, THU, FRI, SAT};
printf("%d, %d, %d, %d, %d, %d\n", MON, TUE, WED, THU, FRI, SAT);
return 0;
}

A. -1, 0, 1, 2, 3, 4
B. -1, 2, 6, 3, 4, 5
C. -1, 0, 6, 2, 3, 4
D. -1, 0, 6, 7, 8, 9
Ans-D

31. Pick the odd man out.


a)GPRS
b)GSM
c)SIM
d)IDM
Ans.D

32.In which stage the following code


#include<stdio.h>
gets replaced by the contents of the file stdio.h
A. During editing
B. During linking
C. During execution
D. During preprocessing
Ans-D

33.Point out the error in the program


#include
#define int printf("#int(intv)");
main()
{
int x;
float g;
g=int x
printf("-------------");
}
Ans: compier error
34. Main ()
{
Static char a[3][4]={"abcd","mnop" ,"fghi"}
Putchar(**a);
}
a)will not compile successfully
b)prints a
c)prints m
d)prints garbage
Ans: b

35.What is the difference between #include <file> and #include ?file??

36. Given the following statement


enum day = {jan = 1, feb=4, april, may}
What is the value of may?
(a) 4
(b) 5
(c) 6
(d) 11
(e) None of the above

37. Find the output for the following C program


main
{int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);

38. Find the output for the following C program


fn f(x)
{ if(x<=0)
return;
else f(x-1)+x;
}

39. Find the output for the following C program


i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{k+=j<10?4:3;
}
printf("%d", k);

40. Find the output for the following C program


int i =10
main()
{int i =20,n;
for(n=0;n<=i;)
{int i=10;
i++;
}
printf("%d", i);
41. Find the output for the following C program
int x=5;
y= x&y

42. Find the output for the following C program


Y=10;
if( Y++>9 && Y++!=10 && Y++>10)
{
printf("%d", Y);
else
printf("%d", Y);
}

43. Find the output for the following C program


f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error

44. What is the sizeof(long int)


(a) 4 bytes
(b) 2 bytes
(c) compiler dependent
(d) 8 bytes

45. Which of the function operator cannot be over loaded


(a) <=
(b) ?:
(c) ==
(d) *

46. Find the output for the following C program


main()
{int x=2,y=6,z=6;
x=y==z;
printf(%d",x)

47.main(){
float fl = 10.5;
double dbl = 10.5
if(fl ==dbl)
printf(“ UNITED WE STAND” );
else
printf(“ DIVIDE AND RULE” )
}
what is the output?
a)compilation error
b)UNITED WE STAND
c)DIVIDE AND RULE
d)linkage error.

48.main()
{
static int ivar = 5;
printf(“ %d” ,ivar--);
if(ivar)
main();
}
what is the output?
a)1 2 3 4 5
b) 5 4 3 2 1
c)5
d)compiler error:main cannot be recursive function.

49.main()
{
extern int iExtern;
iExtern = 20;
printf(“ %d” ,iExtern);
}
what is the output?
a)2
b) 20
c)compile error
d)linker error

50..#define clrscr() 100


main(){
clrscr();
printf(“ %d\n\t” , clrscr());
}
what is the output?
a)100
b)10
c)compiler error
d)linkage error

HP Interview Pattern

HP placement papers, written test pattern and selection procedure


HP selection format is

HP written test

No of questions :90
No of sections :3

Pattern:50 questions verbal communication and general aptitude

The second section will contain 10 questions and will cover most of the concepts on
computer science. The third section will contain 30 questions. This section will test the
programming skills of the candidates. They will be asked to answers questions on computer
programs like C, C++ and JAVA.

The candidates must also posses’ good knowledge about C, C++, and JAVA etc. Before
appearing the written test candidates must practice few of the samples previous years
question papers. This will help them to answer the questions faster and will be more familiar
with the question pattern. This test can be quite difficult as it is used to evaluate the
aptitude of the candidates.

HP India Placement Interview Technical and HR interview

In the HP India placement interview process, there will be 3 main rounds of interview. They
are two technical interviews and one HR interview.

Candidates who clear the written test will then be required to appear and participate well in
the interview. In order to do so, the candidates need to be prepared in advance. Aspirants
need to have a good knowledge about their project as most of the questions will be based
on it. The aspirants must be confident when answering the questions in front of the judging
panel. If the candidates are given an opportunity to ask any questions about the company,
they must ask questions that will display the aspirant’ s interest towards the firm.

First Technical Interview :details of projects, Operating systems computer programming

Second Technical Interview : will be held by higher officials. The candidates who passed the
first round will only go through the second round of interview. They candidates will be asked
general question on software engineering, microprocessors and other questions relating to
the field of study. This interview will be mainly carried out to test the psychology and
aptitude of the candidates.

Subsequent to the two technical interviews, the candidates will have to appear for the final
HR interview. The candidates should prepare for self introduction as well as talk on
strengths and weaknesses. One thing the candidates must always keep in mind is not to be
over confident. They must be humble at all times. In case they do not know the answer to a
particular question, the candidates must let the panel know that truthfully.

HR Round :The third interview will be an HR round. The candidates will be asked about their
future plans, salary expectation, when they can join the firm etc. The candidates must make
sure that they answer honestly and correctly to the questions asked.

Вам также может понравиться