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

You Are Here: Home » HCL Test Papers, Sample Placement Papers » HCL IT College campus written test paper c questions

HCL Placement Test Paper sample questions and programs for C programming language. Programs of multiple choice objective type from the hcl written test section.

#define val 1+2
printf(“%d%d”,val/val,val^3)
ans : 3 9

#define “this” “#”
#define (x,y) x##y
printf(“this”,”this is”)
ans: compilation error (tested)

2^2)+(a^a)

int a ,b=7
a=b<4?b<<1:b>4?7>>1:a
ans.3

one que on c++ class member function
ans.d

work of memory management unit.

who relate virtual memory to physical memory ans.os

memory is allocated to variable
a)when declared b)when define c)…

Question on double linked list

Define success 1
define failure -1
if(condition)
printf(success);
else
printf(failure);
ans success

main()
{
int var=25,varp;
varp=&var;
varp=10;
fun(varp);
printf(%d%d”,var,varp);
ans a)45,45 b)55,55 c) 20,55;

u r given two statements
a=(10.15);
b=10,15;
if they are executed what is the output printf(“%d%d”,a,b);
a)10,15 b)15,10 c)10,10 d)15,15 ans a

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

main
{int x=1,y=2,z=3;
x=y==z;
printf(x);
}

Previous: HCL Placement Paper Technical Ansi C programs Also see other lots of C language sample resources and free to download sample technical tech question papers of multiple choice type for recruitment, placement, employment exams tests.

Related Posts

    Leave a Reply

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