Monday, 29 April 2013

HCL Placement Paper III

HCL Placement Paper 2011 @ Bangalore


Q.1. What is the technical term used to denote the problem of a program failing to release the consumed memory back to other programs ?
Answer :-Memory Leakage is the technical term used to denote the problem in question.

Q.2. Can you tell the primary difference between two static and dynamic testing methods ?
Answer :-Static testing is basically a passive testing when program is not run. One may check algorithm, program logic etc. Dynamic testing is done by executing the program for different inputs.


Q.3. Name any two implementations of SDLC (Software Development Life Cycle)
Answer :-Waterfall model and prototyping can be considered as few real time implementations of SDLC.

Q.4. Which of the following statements regarding C compilation is true ?
a) C Compiler upon completion invokes Pre processor.
b) C Compiler invokes Pre processor prior to compiling a code.
c) C Compiler doesn’t use Pre processor for compiling.
Answer: b) C Compiler invokes Pre processor prior to compiling a code.
Explanation & Inference: C Pre processor is invoked by Compiler to handle derivatives like #include, macro definitions etc. note: Not only HCL, but many companies give much importance to specific areas of C language like compilation, preprocessing etc.

Q.5. The Technique to make a computer to behave as it is having more memory than its actual physical memory limit is called ————–.
a) Virtual Memory.
b) Random Memory.
c) Mounted Memory.
Answer: a) Virtual Memory.

Q.6. In a mesh network with ‘n’ number of nodes what is the number of links required to connect all the nodes together?
a) n(n – 1)
b) n(n – 1) / 2
c) n
Answer: b) n(n – 1) / 2
Explanation & Inference : A mesh network is a fully connected network with every node (or computer/device) connected to every other node. Thenumber of links is n(n – 1) / 2 which can be proved mathematically. This placement question is from basic computer network concepts.

Q.7. Which of the following statements is true regarding ‘malloc’ function in C?
a) memory allocated by malloc is persistent
b) memory allocated by malloc is not persistent
c) malloc memory cannot be deallocated by the programmer explicitly.
Answer: a) memory allocated by malloc is persistent Explanation & Inference : This placement question is from basic C programming concepts.

Q.8. The letters P, Q, R, S, T, U and V, not necessarily in that order represents seven
consecutive integers from 22 to 33.
• U is as much less than Q as R is greater than S.
• V is greater than U.
• Q is the middle term.
• P is 3 greater than S.
Can you find the sequence of letters from the lowest value to the highest value?
Answer :-The sequence of letters from the lowest value to the highest value is TUSQRPV.

Q.9. Because cigars cannot be entirely smoked, a Bobo who collects cigar butts can make a cigar to smoke out of every 3 butts that he finds.Today, he has collected 27 cigar butts. How many cigars will he be able to smoke?
Answer :-13

Q.10.  A boy found that he had a 48 inch strip of paper. He could cut an inch off every second.How long
would it take for him to cut 48 pieces? He can not fold the strip and also, can not stack two or more strips and cut them together.
Answer :-47 seconds.

Q.11. At University of Probability, there are 375 freshmen, 293 sophomores, 187 juniors, & 126 seniors. One student will randomly be chosen to receive an award.
What percent chance is there that it will be a junior? Round to the nearest whole percent.
Answer :- 19%

Q.12. If you were to dial any 7 digits on a telephone in random order, what is the probability that you will dial your own phone number? Assume that your telephone number is 7-digits.
Answer :- 1 in 10,000,000

Q.13. An anthropologist discovers an isolated tribe whose written alphabet contains only six letters (call the letters A, B, C, D, E and F). The tribe has a taboo against using the same letter twice in the same word. It’s never done.If each different sequence of  letters constitues a different word in the language, what is the maximumnumber of six-letter words that the language can employ?
Answer :-The language can employ maximum of 720 six-letter words.

Q.14. Kate, Demi, Madona, Sharon, Britney and Nicole decided to lunch together in a restaurant.  The waiter led them to a round table with six chairs. How many different ways can they seat?
Answer :- There are 120 different possible seating arrangments.

Q.15. e(int n)
{
if(n>0)
{
(not clear)
printf(“%d”,n);
e(–n);
}
return
}
Ans:- 0,1,2,0

Q.16. a=5,b=3,c=a,b
d=(a,b)
printf(c,d)
Ans:- c=5,d=3

Q.17. char s1[20]=”hello world”;
s1[5]=”\0?;
printf(“%d”,strlen(s1));
printf(“%%.%…(not clear)”,s1);
}
Ans:bad format specifier

Q.18. func(int i)
{
static int count;
count=count+i;
}
Ans: 1+2+3…(counts values does not go after funtion call)

Q.19. Atomicity is _____
a)Either all actions are carried out or none are. Users should not have to worry about the effect of incomplete transactions. DBMS ensures this by undoing the actions of incomplete transactions.
b)A concept which is used to model a relationship between a collection of entities and relationships. It is used when we need to express a relationship among relationships.
Asnwer :- Either all actions are carried out or none are. Users should not have to worry about the effect of incomplete transactions. DBMS ensures this by undoing the actions of incomplete transactions.

Q.20.The phase that identifies an efficient execution plan for evaluating a query that has the least estimated cost is referred to as___.
a) Query optimization
b) Query String
Answer :- Query optimization

Q.21. Expansion  of DDL is _____.
a) Data Description Language
b) Data Definition Language
c) Data Degree Language
Answer :- Data Definition Language

Q.22. A collection of conceptual tools for describing data, data relationships data semantics and constraints is called as_____.
a) Data base
b) Table
c) Data model
Answer :- Data model

No comments:

Post a Comment