2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
18th December 2014, 08:57 AM
Super Moderator
 
Join Date: Apr 2013
Re: Technical Question Paper of HCL

As you want I am here providing you the sample Question Paper of Technical test of HCL.

Sample Questions :
1. In ANSI C which is such thing is not in Java.
typedef struct node
{
int
NODEPTR * NODE
}

2. Q. In signed magnitude notation what is the minimum value that can be represented with 8 bits
a) -128
b) -255
c) -127
d) 0

3. Q. there is an employer table with key feilds as employer no. data in every n'th row are needed for a simple followingqueries will get required results.
a) select A employe no. from employe A , where exists from employe B where A employe no.= B employehaving (count(*) mod n)=0
b) select employe no. from employe A, employe B where A employe no. = B employ no.grouply employe no. having (count(*) mod n=0 )
c) both a& b
d) none of the above
4. Piggybacking is done for, Ans=>Acknowledgement.

5. WHICH IS NOT BASIC data type ans.Char*

6. which of the following statement is valid for string copy
char *srt,*ptr;
a) while(*str) {
*str=*ptr;
++str=++ptr;
}
b ) while(*str)
{*++str=*++ptr};


7. Two variable cannt have the same name in
a)function
b) block
c) file


C Section
8. #define inc(x) x++
main()
{
int t=1;
printf("%d",inc(t++));
}
9. one or two que for the complicated declaration.
10.Const char *a="Abcd"; char const *a="lmno"; base do this,Two que were there.
11.char *p ;
char q[20];

12. int i,*p=&i;
p=malloc(10);
free(p);
printf("%d",p);
ans : garbage

13.int i=20,*j=&i
f(i)
printf("%d",i);

14.#define val 1+2
printf("%d%d",val/val,val^3)
ans : 3 9

15.#define "this" "#"
#define (x,y) x##y
printf("this","this is")
ans: compilation error (tested)

16.2^2)+(a^a)

17. int a ,b=7
a=b<4?b<<1:b>4?7>>1:a
ans.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


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.


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.


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.


Quick Reply
Your Username: Click here to log in

Message:
Options

Thread Tools Search this Thread



All times are GMT +5. The time now is 04:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4