Easy Tutorial
For Competitive Exams
Placement Papers HP Page: 2
20871.

HP Technical Test

The arguments that determine the state of the count object are called

classes
manipulators
format flags or state flags
state controllers
20872.Which of the following will store the number 320000 as a Float number?
counPop = (float) 3.2e5;
counPop = (float) 3.2e6;
counPop = (float) .32e5;
counPop = (float) .32e7;
20873.`break`statement is used _______.
To terminate a loop and execute the next statement
To skip a loop and terminate the program
To continue a loop and execute next statement
Execute a next statement
20874.Which of the following keyword supports dynamic method resolution?
abstract
Virtual
Dynamic
Typeid
20875.What does STL stand for?
Simple Template Library
Standard Template Library
Static Type Library
Single Type-based Library
20876.A struct is the same as a class except that
there are no member functions.
all members are public.
cannot be used in inheritance hierarchy.
it does have this pointer.
20877.A white space is:
blank space
new line
tab
all of the above
20878.Which of the following creates a virtual relation for storing the query?
Function
View
Procedure
None of the mentioned
Explanation:

Any such relation that is not part of the logical model, but is made visible to a user as a virtual relation, is called a view.

20879.In the architecture of a database system external level is the
physical level.
logical level.
conceptual level
view level.
20880.Which operator can be used with a multiple-row subquery?
=
LIKE
BETWEEN
NOT IN
Explanation:

Only NOT IN operator can be used with a multi-row sub-query. All others may be used with single-row sub-query only.

20881.What is true about updates through a view?
You cannot update a view with group functions.
When you update a view group functions are automatically computed.
When you update a view only the constraints on the underlying table will be in effect.
When you update a view the constraints on the views always override the constraints on the underlying tables.
Explanation:

When you update a view only the constraints on the underlying table will be in effect.

20882.Which constructs an anonymous inner class instance?
Runnable r = new Runnable () { };
Runnable r = new Runnable (public void run () { });
Runnable r = new Runnable {public void run () {}};
System.out.println(new Runnable () {public void run () { }});
Explanation:

It defines an anonymous inner class instance, which also means it creates an instance of that new anonymous class at the same time. The anonymous class is an implementer of the Runnable interface, so it must override the run () method of Runnable.

42637.If C and G interchange their positions, which of the following will indicate A’s position?
To the immediate right of G
4th to the right of C
2nd to the left of G
to the immediate left of C
42638.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?
4
5
3
2
42639.main( )
{
unsigned int i=3;
while( i >=0)
printf( “%d”, i–);
}
how many times will the printf stmt be executed?
0
3
4
infinite
Explanation:
answer is infinite, because ‘i’ is an unsigned integer and it will not decrement below ’0′ and hence end up in an infinite loop.
42640.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.
Vincent and Thomas live in the same neighborhood.
It takes Thomas more than 50 minutes to deliver the papers.
It is dark outside when Vincent begins his deliveries.
Thomas would like to have his own paper route.
42641.Georgia is older than her cousin Marsha. Marsha’s brother Bart is older than Georgia. When Marsha and Bart are visiting with Georgia, all three like to play a game of Monopoly. Marsha wins more often than Georgia does.
When he plays Monopoly with Marsha and Georgia, Bart often loses.
Of the three, Georgia is the oldest.
Georgia hates to lose at Monopoly.
Of the three, Marsha is the youngest.
42642.An application program that is used by the users to get the inofrmation
from the backend of some application like databases:
application server
proxy server
database server
option 4
42643.Which of the following will be last step for the input given below?
Input: He is going out to search air
out is air to going search he
out is air to search going he
search he out is air to going
out air is to search going he
42644.If step II of an input is ‘not is the casino considering legal action’, what step would be ‘not is casino action legal the considering’?
IIIrd
IVth
Vth
VIth
Share with Friends