Filter
Oil India Limited Placement Papers Ramco Placement Papers Rockwell Placement Papers3i Placement PapersABB Placement PapersAccel Frontline Placement PapersAccenture Placement PapersAcumen Software Placement PapersAditi Placement PapersAdobe Placement PapersADP Placement PapersAgile Placement PapersAgreeya Placement PapersAIG Placement PapersAkamai Placement PapersAks Software Systems Placement PapersAlcatel Placement PapersAllahabad Placement PapersAlle Placement PapersALLFON Placement PapersAlter Placement PapersAlumnus Placement PapersAmdocs Placement PapersAMI Placement PapersAndhra Bank Placement PapersANZ Placement PapersAppLabs Placement PapersAricent Placement PapersASDC Placement PapersAshok Placement PapersAshok LeyLand Placement PapersAspire Placement PapersASPNET Placement PapersAST Pvt Ltd Placement PapersAsto Placement PapersAtlas Placement PapersAxentis Soft Placement PapersAxes Placement PapersAztec Placement PapersBAAN Placement PapersBajaj Placement PapersBank Of Maharashtra Placement PapersBARC Placement PapersBEL Placement PapersBEML Placement PapersBently Placement PapersBFL Placement PapersBHEL Placement PapersBirlasoft Placement PapersBlueStar Placement PapersBOB Placement PapersBOSCH Placement PapersBPL Placement PapersBrakes Placement PapersBSNL Placement PapersC-DOT Placement PapersCadence Placement PapersCalsoft Placement PapersCampaq Placement PapersCanarys Placement PapersCapgemini Placement PapersCaritor Placement PapersCarrizalsoft Technologies Placement PapersCarrizalsoft Technologies Pvt Ltd Placement PapersCaterpillar Placement PapersCD Placement PapersCDAC Placement PapersCelstream Placement PapersCGI Placement PapersChangepond Placement PapersChatargee Placement PapersCisco Placement PapersCiticorp Placement PapersCMC Placement PapersCOGNIZENT Placement PapersComputer Placement PapersConsagous Placement PapersConsagous Technologies Placement PapersConvergys Placement PapersCORDYS Placement PapersCOSL Placement PapersCovansys Placement PapersCrompton Placement PapersCSC Placement PapersCTS Placement PapersDaimler Placement PapersDell Placement PapersDeloitte Placement PapersDelphi-tvs Placement PapersDeutsche Placement PapersDharma Placement PapersDigital Placement PapersdMtechnologies Placement PapersDot Placement PapersDot Com Infoway Placement PapersDRDO Placement PapersDSL Placement PapersDSQ Placement PapersDSRC Placement PapersE2E Placement PapersEasyTech Placement PapersEDS Placement PapersEFFIGENT Placement Papersefunds Placement PapersEIL Placement PapersELGI Placement PapersELICO Placement PapersEnercon Placement PapersEpson Placement PapersEricssion Placement PapersEssar Placement PapersFCG Placement PapersFidelity Placement PapersFlextronics Placement PapersForbes Placement PapersFORCE Placement PapersFuture Placement PapersFX Placement PapersFX Labs Placement PapersG2One Network Private Limited Placement PapersGDA Placement PapersGE Placement PapersGenpact Placement PapersGeodesic Placement PapersGeometric Placement PapersGlobal Placement PapersGodrej Placement PapersGoogle Placement PapersGrapcity Placement PapersGSSL Placement PapersHAL Placement PapersHCL Placement PapersHCL Technologies Placement PapersHello Placement PapersHexaware Placement PapersHFCL Placement PapersHindustan Placement PapersHo Placement PapersHoneywell Placement PapersHorizon Placement PapersHP Placement PapersHPCL Placement PapersHSBC Placement PapersHuawei Placement PapersHughes Placement PapersI-Flex Placement PapersI-Gate Placement Papersi2 Placement PapersIBM Placement PapersIBPS Placement PapersIBS Placement PapersICICI PO DRIVE Placement PapersIDBI Placement PapersIikanos Placement PapersIindus Placement PapersIkosindia Placement PapersImpetus Placement Papersinautix Placement PapersIndian Overseas Bank Placement PapersIndusTeqsite Placement PapersInfineon Placement PapersInformatica Placement PapersInfosys Placement Papersinfotech Placement PapersInphlox Placement PapersIntec Placement PapersIntegra Placement PapersIntegraphr Placement PapersInterwoven Placement PapersIntex Placement PapersIOCL Placement PapersIonnor Solutions Placement PapersiSoft Placement PapersIspat Placement PapersISRO Placement PapersIttiam Placement PapersIvega Placement PapersJ&B Placement PapersJataayu Placement PapersJean Placement PapersJean Martin Placement PapersJet Placement PapersJEYPEE Placement PapersJindal Placement PapersJKT Placement PapersJOHN Placement PapersKalam Software Technology Placement PapersKanbay Placement PapersKeane Placement PapersKenexa Placement PapersKkshema Placement PapersKleward Placement PapersKnoah Solutions Placement PapersKPIT Placement PapersKPIT Cummins Placement PapersL&T Placement PapersL&T Infotech Placement PapersL&T(EEC) Placement PapersLCube Placement PapersLG Placement PapersLG Soft India Placement PapersLifetree Placement PapersLinkwell Placement PapersLionBridge Placement PapersLogica Placement PapersLucent Placement PapersM-Phasis Placement PapersMA Placement PapersMANGANESE Placement PapersMascot Placement PapersMastek Placement PapersMatrix Placement PapersMAXSOFT Placement PapersMcAfee Placement PapersMECON Placement PapersMentor Placement PapersMerrill Placement PapersMicrosoft Placement PapersMindfire Solutions Placement PapersMindtree Placement PapersMiraclesoft Placement PapersMistral Placement PapersMotorola Placement PapersMTNL Placement PapersNagarro Placement PapersNalko Placement PapersNCR Placement PapersNess Placement PapersNest Placement PapersNewgen Placement PapersNFL Placement PapersNHPC Placement PapersNihilent Placement PapersNIIT Placement PapersNovartis Placement PapersNovell Placement PapersNTPC Placement PapersNucleus Placement PapersNYROS TECHNOLOGY Placement PapersOil Placement PapersONGC Placement PapersOnline Education Placement PapersOnMobile Placement PapersOracle Placement PapersOrange Placement PapersParagon Placement PapersPCS Placement PapersPDIL Placement PapersPentaware Placement PapersPentaware Tech Placement PapersPerot Placement PapersPersistent Placement PapersPhilips Placement PapersPlanetasia Placement PapersPNESTEC Placement PapersPolaris Placement PapersPoor Placement PapersPramati Placement PapersProdEx Placement PapersPSI Placement PapersQuark Placement PapersQuinnox Placement PapersQwest Placement PapersR Placement PapersRamco Placement PapersRapidigm Placement PapersRBI Placement PapersRedpine Placement PapersReliance Placement PapersReliance(RIL) Placement PapersRinl Placement PapersRipples Infolink Placement PapersRobert Placement PapersRobert Bosch Placement PapersRockwell Placement PapersRRB(Railway Placement PapersRRB(Railway Recruitment Board ) Placement PapersRSsoftware Placement PapersSahi Placement PapersSail Placement PapersSamsung Placement PapersSamtel Placement PapersSAP Placement PapersSapient Placement PapersSasken Placement PapersSatyam Placement PapersSBI Placement PapersScandent Placement PapersSchneider Placement PapersSCT Placement PapersSemanticSpace Placement PapersShriram Placement PapersSIEMENS Placement PapersSierra Placement PapersSkyTECH Placement PapersSLK Software Placement Paperssobha Placement PapersSoftSol Placement PapersSonata Placement PapersSony India Placement PapersSQL Placement PapersSQL Star Placement PapersSSC Placement PapersStarent Placement PapersStarent Networks Placement PapersSTMicroelectronics Placement PapersSubex Placement PapersSUN Placement PapersSuther Placement PapersSynergy Placement PapersSynopsys Placement PapersSyntel Placement PapersSystech Solutions Placement PapersTalisma Placement PapersTata Placement PapersTata Technologies Placement PapersTavant Placement PapersTCE Placement PapersTCS Placement PapersTech Placement PapersTech Mahindra Placement PapersTELCO Placement PapersTelserra Placement PapersTEMNOS Placement PapersTesco Placement PapersTexas Placement PapersThermax Placement PapersThink Placement PapersTHOROGOOD Placement PapersThoughtWorks Placement PapersTIL Placement PapersTISL Placement Paperstorry Placement PapersTriad Placement PapersTriam Placement PapersTrianz Placement PapersTrilogy Placement PapersTSPL Placement PapersTVS Placement PapersUbiNetics Placement PapersUnited Placement PapersUnited Health Group Placement PapersUS Placement PapersValueLabs Placement PapersValueOne Placement PapersVariFone Placement PapersVedanta Placement PapersVerchaska Placement PapersVERITAS Placement PapersVerizon Placement PapersVernalis Placement PapersVirtusa Placement PapersVisual Placement PapersVIT Placement PapersVizag Steel Plant Placement PapersVizual Placement PapersVSNL Placement PapersVsworx Placement PapersWBPDCL Placement PapersWepIndia Placement PapersWilco Placement PapersWipro Placement PapersXansa Placement PapersXcino Placement PapersYahoo Placement PapersYantro Placement PapersYASH Placement PapersZenith Placement PapersZenser Placement PapersZTE Placement Papers

Download dharma Placement Papers in MS Word and PDF Format for Job Interview

List of all download dharma placement papers in ms word and pdf format for job interview. Click Here View Job List. This page will help you to get all details about download dharma placement papers in ms word and pdf format for job interview. Download dharma placement papers in PDF and Ms word format. Latest and dharma last 5 years placement papers with solutions pdf download for campus job.

Dharma Placement Paper : Dharma Technical - C & C++

Give the output of the programs in each case unless mentioned otherwise

  1. void main()
    {
      int d=5;
      printf("%f",d);
    }
    Ans: Undefined

  2. void main()
    {
      int i;
      for(i=1;i<4,i++)                                                                                 
      switch(i)
      case 1: printf("%d",i);break;
    {
     case 2:printf("%d",i);break;
     case 3:printf("%d",i);break;
    }
     switch(i) case 4:printf("%d",i);
    }
    Ans: 1,2,3,4

  3. void main()
    {
     char *s="\12345s\n";
     printf("%d",sizeof(s));
    }
    Ans: 6

  4. void main()
    {
      unsigned i=1; /* unsigned char k= -1 => k=255; */
      signed j=-1; /* char k= -1 => k=65535 */
    /* unsigned or signed int k= -1 =>k=65535 */                                  
    if(i<j)
      printf("less");
    else
    if(i>j)
      printf("greater");
    else
    if(i==j)
      printf("equal");
    }
    Ans: less

  5. void main()
    {
      float j;
      j=1000*1000;
      printf("%f",j);
    }

    1. 1000000
    2. Overflow
    3. Error
    4. None
    Ans: 4

  6. How do you declare an array of N pointers to functions returning  pointers to functions returning pointers to characters?     Ans: The first part of this question can be answered in at least        three ways:

  7. Build the declaration up incrementally, using typedefs:
            typedef char *pc;    /* pointer to char */
            typedef pc fpc();    /* function returning pointer to char */
            typedef fpc *pfpc;    /* pointer to above */
            typedef pfpc fpfpc();    /* function returning... */
            typedef fpfpc *pfpfpc;    /* pointer to... */
            pfpfpc a[N];         /* array of... */

  8. Use the cdecl program, which turns English into C and vice versa:          
            cdecl> declare a as array of pointer to function returning   pointer to function returning pointer to char        char *(*(*a[])())()
    cdecl can also explain complicated declarations, help with  casts, and indicate which set of parentheses the arguments   go in (for complicated function definitions, like the one   above).  Any good book on C should explain how to read these complicated   C declarations "inside out" to understand them ("declaration mimics use"). The pointer-to-function declarations in the examples above have not included parameter type information. When the parameters have complicated types, declarations can *really* get messy. (Modern versions of cdecl can help here, too.)

  9. A structure pointer is defined of the type time . With 3 fields min,sec hours having pointers to intergers.
        Write the way to initialize the 2nd element to 10.

  10. In the above question an array of pointers is declared. Write the statement to initialize the 3rd element of the 2 element to 10

  11. int f()
    void main()
    {
      f(1);
      f(1,2);
      f(1,2,3);
    }
    f(int i,int j,int k)
    {
      printf("%d %d %d",i,j,k);
    }What are the number of syntax errors in the above?                     
    Ans: None.

  12. void main()
    {
      int i=7;
      printf("%d",i++*i++);
    }
    Ans: 56

  13. #define one 0
    #ifdef one
    printf("one is defined ");
    #ifndef one
    printf("one is not defined ");
    Ans: "one is defined"

  14. void main()
    {
      intcount=10,*temp,sum=0;
      temp=&count;
      *temp=20;
      temp=&sum;
      *temp=count;
      printf("%d %d %d ",count,*temp,sum);
    }
    Ans: 20 20 20

  15. There was question in c working only on unix machine with pattern matching.

  16. what is alloca()   Ans : It allocates and frees memory after use/after getting out of scope

  17. main()
    {
      static i=3;
      printf("%d",i--);
      return i>0 ? main():0;
    }
    Ans: 321

  18. char *foo()
    {
      char result[100]);
      strcpy(result,"anything is good");                                        
      return(result);
    }
    void main()
    {
      char *j;
      j=foo()
      printf("%s",j);
    }
    Ans: anything is good.

  19. void main()
    {
      char *s[]={ "dharma","hewlett-packard","siemens","ibm"};
      char **p;
      p=s;
      printf("%s",++*p);
      printf("%s",*p++);
      printf("%s",++*p);
    }
    Ans: "harma" (p->add(dharma) && (*p)->harma)
    "harma" (after printing, p->add(hewlett-packard) &&(*p)->harma)
    "ewlett-packard"

Dharma Placement Paper : Dharma Paper Technical - C & C++

Give the output of the programs in each case unless mentioned otherwise

void main()
{
  int d=5;
  printf("%f",d);
}Ans: Undefined

void main()
{
  int i;
  for(i=1;i<4,i++)                                                                                
  switch(i)
  case 1: printf("%d",i);break;
{
 case 2:printf("%d",i);break;
 case 3:printf("%d",i);break;
}
 switch(i) case 4:printf("%d",i);
}Ans: 1,2,3,4

void main()
{
 char *s="\12345s\n";
 printf("%d",sizeof(s));
}Ans: 6

void main()
{
  unsigned i=1; /* unsigned char k= -1 => k=255; */
  signed j=-1; /* char k= -1 => k=65535 */
/* unsigned or signed int k= -1 =>k=65535 */                                 
if(i<j)
  printf("less");
else
if(i>j)
  printf("greater");
else
if(i==j)
  printf("equal");
}Ans: less

void main()
{
  float j;
  j=1000*1000;
  printf("%f",j);
}

1. 1000000
2. Overflow
3. Error
4. None
Ans: 4

How do you declare an array of N pointers to functions returning  pointers to functions returning pointers to characters?     Ans: The first part of this question can be answered in at least        three ways:

Build the declaration up incrementally, using typedefs:
        typedef char *pc;    /* pointer to char */
        typedef pc fpc();    /* function returning pointer to char */
        typedef fpc *pfpc;    /* pointer to above */
        typedef pfpc fpfpc();    /* function returning... */
        typedef fpfpc *pfpfpc;    /* pointer to... */
        pfpfpc a[N];         /* array of... */

Use the cdecl program, which turns English into C and vice versa:         
        cdecl> declare a as array of pointer to function returning   pointer to function returning pointer to char        char *(*(*a[])())()
cdecl can also explain complicated declarations, help with  casts, and indicate which set of parentheses the arguments   go in (for complicated function definitions, like the one   above).  Any good book on C should explain how to read these complicated   C declarations "inside out" to understand them ("declaration mimics use"). The pointer-to-function declarations in the examples above have not included parameter type information. When the parameters have complicated types, declarations can *really* get messy. (Modern versions of cdecl can help here, too.)

A structure pointer is defined of the type time . With 3 fields min,sec hours having pointers to intergers.
    Write the way to initialize the 2nd element to 10.

In the above question an array of pointers is declared. Write the statement to initialize the 3rd element of the 2 element to 10

int f()
void main()
{
  f(1);
  f(1,2);
  f(1,2,3);
}
f(int i,int j,int k)
{
  printf("%d %d %d",i,j,k);
}What are the number of syntax errors in the above?                    
Ans: None.

void main()
{
  int i=7;
  printf("%d",i++*i++);
}Ans: 56

#define one 0
#ifdef one
printf("one is defined ");
#ifndef one
printf("one is not defined ");
Ans: "one is defined"

void main()
{
  intcount=10,*temp,sum=0;
  temp=&count;
  *temp=20;
  temp=&sum;
  *temp=count;
  printf("%d %d %d ",count,*temp,sum);
}
Ans: 20 20 20

There was question in c working only on unix machine with pattern matching.

what is alloca()   Ans : It allocates and frees memory after use/after getting out of scope

main()
{
  static i=3;
  printf("%d",i--);
  return i>0 ? main():0;
}
Ans: 321

char *foo()
{
  char result[100]);
  strcpy(result,"anything is good");                                       
  return(result);
}
void main()
{
  char *j;
  j=foo()
  printf("%s",j);
}
Ans: anything is good.

void main()
{
  char *s[]={ "dharma","hewlett-packard","siemens","ibm"};
  char **p;
  p=s;
  printf("%s",++*p);
  printf("%s",*p++);
  printf("%s",++*p);
}Ans: "harma" (p->add(dharma) && (*p)->harma)
"harma" (after printing, p->add(hewlett-packard) &&(*p)->harma)
"ewlett-packard"

 

By Category
Post Your Resume Here