KKshema Placement Question Papers
Test duration : 90 mins
No. of Questions : 23
Completelly Technical (It was based on C )
1. Difference between static & non-static variables.
2. Define Pointers
3. Write your own String Copy function.
4. What is the purpose of Volatile in C.
5. What is the purpose of Static in C?
6. One question was like
static int x;
It will be acessed by-------- in a file 1.c {Hint: It is based on scope of variables}
7. What is the Output?
main()
{
char *p1="name";
char *p2;
p2=(char*)malloc(20);
memset(p2,0,20); // Plz check it out {Appendix of YPK--C}
while(*p2++ = *p1);
printf("%s\n",p2);
}
8. Long function based on command line arguments, u have 2 find out the error...
Ans: I think some error in 2nd If condition.
9. What is ths Output of given snippet?
void main()
{
int x=20, y=35;
x= x++ + y++;
y= y++ + x++;
printf("%d%d", x,y);
}
10. main()
{
char s1[] = "XYZ";
char s2[] = "inc";
printf("%s", s1);
}
11. Simple strcat code was given.
Ans: XYZinc
12. #define TRUE 0
----------- Some code
while(TRUE)
{
---------- Some code
}
what is the Output?
13. main()
{
int x=10,y=15;
x= x++;
y= y++;
printf("%d%d",x,y);
}
What is the output?
14. int a;
if(a==0)printf("XYZ");
printf("XYZ");
What is the output?
15. int x;
int modify(int x)
{
return(x+=10);
}
int changevalue(int x)
{
return(x+=1);
}
void main()
{
int x=10;
x++;
modify(x);
x++;
printf("%d",x);
x++;
changevalue(x);
x++;
modify(x);
printf("%d",x);
}
16. Difference between malloc and calloc and implement maoolc as calloc.
17. Implement realloc with full error checking code.
18. Implement a in-memory look up table of int type and write a function having time
complexity of O(logn).
19. Program for converting binary>>>decimal or similat to this.
20. void main()
{
int x= 5;
printf("%d%d%d",x,x<<2,x>>2);
}
21. #define swap(a,b) a=a+b; b=a-b; a=a-b;
void main()
{
int x=5, y=10;
swap(x,y);
printf("%d%d", x, y);
swap2(x,y);
printf("%d%d", x, y);
}
swap2(int a, int b)
{
int temp;
temp=a;
a=b;
b=temp;
}
what is the Output?
22. void main()
{
char *ptr= "xyz";
*ptr++;
printf("%d\n", ptr);
ptr++;
printf("%d", ptr);
}
23. Explain the given declerations
char *const ptr;
char const *ptr;
similar to this // Its pointer to constant and conastant pointer
Hint : Run the given codes, bcoz no options will be dere in the paper
U have to directly write the answers.
Time is ample but u should be accurate.
Paper Whole Testpaper Bangalore - 12 November 2006
Here are some questions. of intec test
1. what is malloc and calloc function.explain difference between them?
2. what is difference betwn const int*p and int *const p something like that?
3. wap to dynamically allocate memory using malloc function?
4. wap to resize the allocated memory done with help of malloc and design the case for exceptional handling?
5. wap to reverse string without using second variable?
6. write a trim function to trim the white spaces at beginning and end of string?
7. wap to multiply 2 number without using mulitiplication operator?
8. some question were objective where we have to findthe output of a particular function..and there were question regarding operator overloading,friend function,constructor etc.
-
IT Companies Papers
- 3i Infotech Papers
- ABB Papers
- Accenture Papers
- Aditi Papers
- Adobe Papers
- ADP Papers
- Agile Papers
- Agreeya Papers
- Alcatel Papers
- ALLFON Papers
- Alter Papers
- Alumnus Papers
- Amdocs Papers
- AMI Papers
- ANZ Papers
- AppLabs Papers
- ASDC Papers
- Ashok LeyLand Papers
- Aspire Papers
- Asto Origin Papers
- Atlas Copco Papers
- Axes Papers
- Aztec Papers
- BAAN Papers
- Bajaj Papers
- BEL Papers
- Bently Nevada Papers
- BFL Papers
- BHEL Papers
- Birlasoft Papers
- BlueStar Papers
- BOB Papers
- BOSCH Papers
- BPL Papers
- Brakes India Papers
- BSNL Papers
- C-DOT Papers
- Cadence Papers
- Calsoft Papers
- Campaq Papers
- Canarys Papers
- Capgemini Papers
- Caritor Papers
- Caterpillar Papers
- CDAC Papers
- Celstream Papers
- CGI Papers
- Changepond Papers
- Chatargee Papers
- Cisco Papers
- Citicorp Papers
- CMC Papers
- COGNIZENT Papers
- Computer Assosiates
- Convergys Papers
- COSL Papers
- Covansys Papers
- Crompton Papers
- CSC Papers
- CTS Papers
- Daimler Papers
- Dell Papers
- Deloitte Papers
- Delphi-tvs Papers
- DEShaw Papers
- Deutsche Papers
- Dharma Papers
- Digital Papers
- DRDO Papers
- DSL Papers
- DSQ Papers
- DSRC Papers
- EasyTech Papers
- EFFIGENT INDIA Papers
- efunds Papers
- EIL Papers
- ELGI Papers
- ELICO Papers
- Epson Papers
- Ericssion Papers
- Essar Papers
- FCG Papers
- Flextronics Papers
- Forbes Marshall Papers
- FORCE Papers
- Future Software Papers
- FX Labs Papers
- GDA Papers
- GE Papers
- Genpact Papers
- Geodesic Papers
- Geometric Papers
- Global edge Papers
- Godrej Papers
- Google Papers
- Grapcity Papers
- GSSL Papers
- HAL Papers
- HCL EAI Papers
- HCL Technologies Papers
- Hello Soft Papers
- Hexaware Papers
- HFCL Papers
- Ho lool Papers
- Honeywell Papers
- Horizon Papers
- HP Papers
- HSBC GLTi Papers
- Huawei Papers
- Hughes Papers
- I-Flex Papers
- I-Gate Papers
- i2 technologies Papers
- IBM Papers
- IBS Papers
- ICICI Infotech Papers
- Iikanos Papers
- Iindus logic Papers
- Ikosindia Papers
- Impetus Papers
- inautix Papers
- Infineon Papers
- Infosys Papers
- infotech Papers
- Intec Papers
- Integra Papers
- Integraphr Papers
- Interwoven Papers
- iSoft Papers
- Ispat Papers
- ISRO Papers
- Ittiam Papers
- Ivega Papers
- J&B Papers
- Jataayu Papers
- Jet Airways Papers
- JKT Papers
- Kanbay Papers
- Keane Papers
- Kenexa Papers
- Kkshema Papers
- Kyocera Papers
- L & T Infotech Papers
- L&T Emsys Papers
- L&T(EEC) Papers
- LCube Technologies Papers
- LG Soft India Papers
- Lifetree Papers
- Logica CMG Papers
- Lucent Papers
- M-Phasis Papers
- MA Papers
- Mascot Papers
- Mastek Papers
- Matrix Papers
- MAXSOFT Papers
- McA fee Papers
- MECON Papers
- Mentor Papers
- Microsoft Papers
- Mindtree Papers
- Mistral Papers
- Motorola Papers
- MTNL Papers
- Nagarro Papers
- NCR Netware Papers
- Ness Papers
- Newgen Papers
- NFL Papers
- Nihilent Papers
- NIIT Papers
- Novartis Papers
- Novell Netware Papers
- NTPC Papers
- Nucleus Papers
- Ocwen Papers
- OnMobile Papers
- Oracle Papers
- Orange Papers
- Paragon Papers
- PCS Papers
- Perot Papers
- Persistent Papers
- Philips Papers
- Polaris Papers
- Poor nam Papers
- Pramati Papers
- ProdEx Papers
- PSI Data System Papers
- Quark Papers
- Quinnox Papers
- Qwest Papers
- R Systems Papers
- Ramco Papers
- Rapidigm Papers
- Redpine Papers
- Reliance(RIL) Papers
- Robert Bosch Papers
- RSsoftware Papers
- Sahi Systems Papers
- Samsung Papers
- Samtel Papers
- SAP Labs Papers
- Sasken Papers
- Satyam Papers
- Scandent Papers
- SCT Papers
- SemanticSpace Papers
- SIEMENS Papers
- SkyTECH Papers
- SlashSupport Papers
- Snecma Papers
- sobha Renaissance Papers
- SoftSol Papers
- Sonata Papers
- STMicroelectronics Papers
- Subex Papers
- SUN Papers
- Suther land Papers
- Symphony Papers
- Syntel Papers
- Talisma Papers
- Tata Elxsi Papers
- TATA Infotech Papers
- Tata Motors Papers
- Tavant Papers
- TCS Papers
- Tech Mahindra Papers
- TELCO Papers
- Telserra Papers
- TEMNOS Papers
- Tesco Papers
- Texas Instruments Papers
- Think Soft Papers
- TISL Papers
- Torry Harris Papers
- Triad Papers
- Trianz Papers
- Trilogy Papers
- TSPL Papers
- TVS Lucas Papers
- UbiNetics Papers
- US Technology Papers
- ValueLabs Papers
- ValueOne Papers
- VariFone Papers
- VERITAS Papers
- Verizon Papers
- Vernalis Papers
- Virtusa Papers
- Visual Soft Papers
- VIT Papers
- Vizual Papers
- Vsworx Papers
- WepIndia Papers
- Wilco Papers
- Wipro Papers
- Xansa Papers
- Yahoo Papers
- Yantro Papers
- YASH Papers
- Zenith Papers
- Zenser Papers
- ZTE Papers
All Information about Interview. Tips and Guideline. www.interviewGHOST.com
What Users Asked:
Advertisement: