2011 LG Soft India Placment Paper -IBangalore

  • CategoryIT
  • Sub CategoryPlacement Papers
  • LocationBangalore
  • CompanyLG Electronics
  • Posted date on our Website11 April 2011

User Ratings

3 out of 5 based on 3 Ratings.
Here are the details of 2011 LG Soft India Placment Paper -I job in LG Electronics. This job or placement paper has been sourced from either company website or newspaper or other media and from students who appeared for this job. User is requested to verify the data before applying for the job.

Here you will find 2011 LG Soft India Placement Papers - I with Answers and Solutions

2011 LG Soft India Placement Paper - I:-


 1.
        main()
         { 
          int i;
          printf("%d", &i)+1;
          scanf("%d", i)-1;
        }
       
      a. Runtime error.
      b. Runtime error. Access violation.
      c. Compile error. Illegal syntax
      d. None of the above
       
 
2.

      main(int argc, char *argv[])
        {
      (main && argc) ? main(argc-1, NULL) : return 0;
        }
       
      a. Runtime error.
      b. Compile error. Illegal syntax
      c. Gets into Infinite loop
      d. None of the above
 
 3.

      main()
      {
        int i;
        float *pf;
        pf = (float *)&i;
        *pf = 100.00;
        printf("%d", i);
      }
       
      a. Runtime error.
      b. 100
      c. Some Integer not 100
      d. None of the above
  
4.

      main()
        {
         int i = 0xff;
         printf("%d", i<<2);
        }
       
      a. 4
      b. 512
      c. 1020
      d. 1024
  
5.

      #define SQR(x) x * x
      main()
      {
        printf("%d", 225/SQR(15)); 
      } 
       
      a. 1
      b. 225
      c. 15
      d. none of the above
  
6.

      union u
      {
       struct st
      {
        int i : 4;
        int j : 4;
        int k : 4;
        int l;
       }st;
        int i;
       }u;
       
      main()
       {
        u.i = 100;
        printf("%d, %d, %d",u.i, u.st.i, u.st.l);
      }
       
      a. 4, 4, 0
      b. 0, 0, 0
      c. 100, 4, 0
      d. 40, 4, 0
  
7.

      union u
        {
        union u
         { 
         int i;
         int j;
       }a[10]; 
        int b[10];
       }u;
       
      main()
        {
         printf("%d", sizeof(u));
         printf("%d", sizeof(u.a));
         printf("%d", sizeof(u.a[0].i));
        }
      a. 4, 4, 0
      b. 0, 0, 0
      c. 100, 4, 0
      d. 40, 4, 0
  
8.

      main()
         {
         int (*functable[2])(char *format, ...) ={printf, scanf};
         int i = 100;
       
         (*functable[0])("%d", i);
         (*functable[1])("%d", i);
         (*functable[1])("%d", i);
         (*functable[0])("%d", &i);
      }
       
         a. 100, Runtime error.
         b. 100, Random number, Random number, Random number.
         c. Compile error
         d. 100, Random number
  
9.

      main()
      {
          int i, j, *p; 
          i = 25;
          j = 100;
          p = &i; /* Address of i is assigned to pointer p */ 
          printf("%f", i/(*p)); /* i is divided by pointer p */
      }
       
      a. Runtime error.
      b. 1.00000
      c. Compile error
      d. 0.00000
 
10.

      main()
        {
         int i, j;
         scanf("%d %d"+scanf("%d %d", &i, &j));
         printf("%d %d", i, j);
       }
       
      a. Runtime error.
      b. 0, 0
      c. Compile error
      d. the first two values entered by the user
 
11.

      main()
        {
         char *p = "hello world";
         p[0] = 'H';
         printf("%s", p);
       }
       
      a. Runtime error.
      b. “Hello world” c. Compile error
      d. “hello world”  
 
12.

      main()
        {
       char * strA;
       char * strB = “I am OK”; memcpy( strA, strB, 6);
      }
       
      a. Runtime error.
      b. “I am OK” c. Compile error
      d. “I am O”  
 
13.

      How will you print % character?
      a. printf(“\%”) b. printf(“\\%”) c. printf(“%%”) d. printf(“\%%”)  
 
14.

      const int perplexed = 2;
       #define perplexed 3  
      main()
       {
        #ifdef perplexed
        #undef perplexed
        #define perplexed 4
        #endif
         printf(“%d”,perplexed); }
       
      a. 0
      b. 2
      c. 4
      d. none of the above
 
15.

      struct Foo
        {
        char *pName;
       };
       
      main()
        {
        struct Foo *obj = malloc(sizeof(struct Foo)); 
        strcpy(obj->pName,"Your Name");
        printf("%s", obj->pName);
      }
       
      a. “Your Name” b. compile error
      c. “Name” d. Runtime error
 
16.

      struct Foo
        {
            char *pName;
           char *pAddress;
        };
      main()
      {
         struct Foo *obj = malloc(sizeof(struct Foo));
         obj->pName = malloc(100);
         obj->pAddress = malloc(100);
         strcpy(obj->pName,"Your Name");
         strcpy(obj->pAddress, "Your Address");
         free(obj);
         printf("%s", obj->pName);
        printf("%s", obj->pAddress);
      }
       
      a. “Your Name”, “Your Address” b. “Your Address”, “Your Address” c. “Your Name” “Your Name” d. None of the above
 
17.

      main()
      {
       char *a = "Hello ";
       char *b = "World";
       printf("%s", stract(a,b));
      }

About LG Electronics:-

LG Electronics’ innovative technologies, unique products, and cutting-edge designs are an investment in the future. Many LG products incorporate eco-design principles to be resource and energy efficient, and generate less waste. LG Electronics contributes tirelessly to social and charitable activities in order to create a more beautiful world.

Working at LG Electronics - Why should i Join LG Electronics?:-

LG creates working environments that enable its employees to demonstrate their skills, focus on their work, and create value for their customers. Employees are encouraged to take a creative and individual approach, with a strong emphasis placed on competence and equal opportunities.

Jobs at LG Electronics are categorized into several different areas, including R&D, marketing, production, and support. Each area offers great development and career progression opportunities.

LG Electronics offers its employees a competitive, unique rewards system that takes account of their working situations by nation, region, and job. This rewards system motivates employees to perform better by helping them to enhance their quality of life. LG's rewards system consists of fixed salaries and flexible salaries. Fixed salaries are determined every year through a fair evaluation process. Flexible salaries are immediate rewards given to individual employees for their performance and competence.

 

Contact Details:

Address of LG Electronics:-

HR Department
LG Electronics India Pvt Ltd,
Plot No 51, Surajpur Kasna Road,
Greater Noida - 201306 (UP)
Tel No : (0120) 2560900 / 940

http://www.lg.com/in/about-lg/careers/find-a-job.jsp

(Disclaimer : This Job or placement paper has been sourced from various sources like print media, Job consultants, past candidates, our users and/ or Company website. The posted date above means the date on which the Job was posted on our site and not on the company site. Users are advised to check with the company for latest requirements before applying for the job. Our website will not be responsible for any loss to the company or the candidate. We have no relation with the company and are not responsible for the validity of this Job. We donot charge the company or candidate or any student anything. If the respective company has any issue with the data provided or they want this particular job or placement paper to be removed they can write into us at infinitecourses@gmail.com)

Comments / Reviews / Queries On

Click to See more Comments