Sample HCL Freshers Placement Questions
Below let us see some important sample HCL questions for you to practice.
<="" h3="" style="color: rgb(75, 75, 75); font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
Which of the following statements regarding C compilation is true ?
a) C Compiler upon completion invokes Preprocessor.
b) C Compiler invokes Preprocessor prior to compiling a code.
c) C Compiler doesn't use Preprocessor for compiling.
Answer: b) C Compiler invokes Preprocessor prior to compiling a code.
Explanation & Inference: C Preprocessor 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.
Placement Question 2
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.
Explanation & Inference : Questions related to memory handling comes under basci computer science concepts sections. These questions are very important to prepare for placements of companies like HCL, TCS, Wipro etc.
Placement Question 3
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. The number of links is n(n - 1) / 2 which can be proved mathematically. This placement question is from basic computer network concepts.
Placement Question 4
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.