Placement Paper :: MosChip Semiconductor
Home > Freshers Archives > Placement Papers > MosChip Semiconductor > View Paper
Accenture
Acuvate Software
Adobe
Alcatel-Lucent
Amdocs
Aricent
AT&T
BOA (Bank of America)
Broadridge
Brocade
CA Technologies
Capgemini
Cavium Networks
CGI
Ciena
Cisco
Citrix
Cognizant
Commvault
Deloitte
Efftronics Systems Pvt. Ltd
EFI
Flipkart
Genpact
Global Edge
Goldman Sachs
GREEDGE
Green Valley Motor
Happiest Minds
HCL Technologies
Hewlett Packard Enterprise
Hexaware Technologies
Huawei
IBM
iGate
Incedo
Infosys
Juniper Network
L&T Infotech
McAfee
MindTree
MosChip Semiconductor
Mphasis
Mu-Sigma
Nagarro
Paytm
PEOL
Radisys
SAP Labs
Sapient
Sensiple
Societe Generale
Softsquare
Sopra Steria
Surya Informatics Solutions (P) Ltd.
Sutherland
Synopsys
Syntel Inc.
Tavant Technologies
TCS
TCS Digital
TCS Ninja
TCS NQT
Tech Mahindra
ThoughtWorks
Virtusa
Wipro
Wipro NLTH
[24x7]
-------------- C WRITTEN TEST 1 HOUR -------------------
/* There were 13 questions from C and 2 questions from Logical section that were very simple*/
Q1) Write a program to display Xth bit of a given number.
Q2) What does in *p++ increment?
Q3) What is the difference between char a[]="string" and char *a="string" ?
Q4) What is the output?
main()
{
printf("%x",-1<<4);
}
Q5) What is the difference between array of pointers and pointer to an array ? Explain with example.
Q6) What is the output ?
main()
{
int a, b, c, abc=0;
a = b = c = 40;
if(c) {
int abc;
abc = a+b*c;
}
printf("c=%d, abc=%d",c,abc);
}
Q7) What is the output?
main()
{
int i=5;
i = i++ +i ++i;
printf("%d",i);
}
Q8) Declare a function pointer and explain with an example using it.
Q9) What is the output?
#define ABC 20
#define XYZ 10
#define XXX ABC+XYZ
main()
{
int a;
a = XXX * 10;
printf("%d",a);
}
Q10)Write a data structure and print all its elements values implementing a function pointer.
Q11)Write a program to delete a given node from a single link list.
Q12)Write a program to reverse a string.
Q13)What will be the output?
main()
{
char a[]="1234567890";
char p;
p = (a+1)[5];
printf("%d",p);
}
Q14)Logical section question on a simple tricky diagram
Q15)Two numbers add to 110. One number is 150% than the other. What are the two numbers?
/* There were 13 questions from C and 2 questions from Logical section that were very simple*/
Q1) Write a program to display Xth bit of a given number.
Q2) What does in *p++ increment?
Q3) What is the difference between char a[]="string" and char *a="string" ?
Q4) What is the output?
main()
{
printf("%x",-1<<4);
}
Q5) What is the difference between array of pointers and pointer to an array ? Explain with example.
Q6) What is the output ?
main()
{
int a, b, c, abc=0;
a = b = c = 40;
if(c) {
int abc;
abc = a+b*c;
}
printf("c=%d, abc=%d",c,abc);
}
Q7) What is the output?
main()
{
int i=5;
i = i++ +i ++i;
printf("%d",i);
}
Q8) Declare a function pointer and explain with an example using it.
Q9) What is the output?
#define ABC 20
#define XYZ 10
#define XXX ABC+XYZ
main()
{
int a;
a = XXX * 10;
printf("%d",a);
}
Q10)Write a data structure and print all its elements values implementing a function pointer.
Q11)Write a program to delete a given node from a single link list.
Q12)Write a program to reverse a string.
Q13)What will be the output?
main()
{
char a[]="1234567890";
char p;
p = (a+1)[5];
printf("%d",p);
}
Q14)Logical section question on a simple tricky diagram
Q15)Two numbers add to 110. One number is 150% than the other. What are the two numbers?