Subscribe:Posts Comments | Read Articles on Various Topics - Pro Articles

You Are Here: Home » HCL Test Papers, Sample Placement Papers » HCL Placement Paper Technical Ansi C programs

HCL Sample placement test paper C language technical tech written multiple choice objective type questions for the hcl joint campus recruitment exam

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

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

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

Piggybacking is done for, Ans=>Acknowledgement.

WHICH IS NOT BASIC data type ans.Char*

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};
c)

Two variable cannt have the same name in
a)function b) block c) file d)— C Section

#define inc(x) x++
main()
{
int t=1;
printf(“%d”,inc(t++));
}

one or two que for the complicated declaration.

Const char *a=”Abcd”; char const *a=”lmno”; base do this,Two que were there.

char *p ;
char q[20];

int i,*p=&i;
p=malloc(10);
free(p);
printf(“%d”,p);
ans : garbage

int i=20,*j=&i
f(i)
printf(“%d”,i);

There are more C programming language questions, programs and error finding questions with solutions, answers and detailed hints with explanation here. C language questions for B.tech / BE engineers and computer science cse, ece electronics instrumentation communications, mechanical, electrical technical questions, IT and other tech written test interview questions

Related Posts

    Leave a Reply

    © Copyright 2010 Latestexams. All Rights Reserved | Privacy Policy | Terms & Conditions