.
  Vyom World.com . Let's Touch the Sky Together!  
.

Home
VyomWorld.com Home
Interview Questions
VyomLinks.com Home
JobsAssist.com Home
Vyom Network
Contact Us
Jobs & Careers
Resume Submitter
Placement Papers
IT Companies Directory
Computer Jobs
Interview Questions
Online Exams
Vyom Career eMag.
Fun
Send FREE SMS!
SMS Jokes
Source Codes Library
Source Codes Home
ASP Source Codes
C Source Codes
C++ Source Codes
COBOL Source Codes
Java Source Codes
Pascal Source Codes
Submit Source Codes
GATE
GATE an Overview
GATE Preparation
Study Materal
GRE
GRE an Overview
GRE Questions
GRE Preparation
GRE Universities
TOEFL Preparation
TOEFL Resources
GMAT Preparation
GMAT Resources
MBA Preparation
MBA Resources
Networking Concepts
Networking Concepts
Testing Preparation
Testing Resources
Webmasters
Free Traffic Builder
Webmaster Articles
Web Hosting
Tutorials
Hardware Tutorial
1500 Free eBooks New!


Home » Placement Papers » LLucent Placement Papers » LLucent Previous Year Placement Paper

 

LLucent Placement Paper -: Programming Questions And Answers


Advertisements
Advertisements




LLucent Previous Years Solved Sample Placement Papers

  1. main()
    {
    {
    unsigned int bit=256;
    printf("%d", bit);
    }
    {
    unsigned int bit=512;
    printf("%d", bit);
    }
    }

    a. 256, 256

    b. 512, 512

    c. 256, 512 Ans: c. 256, 512

    d. Compile error

  2. main()
    {
    int i;
    for(i=0;i<5;i++)
    {
    printf("%d\n", 1L << i);
    }
    }

    a. 5, 4, 3, 2, 1

    b. 0, 1, 2, 3, 4

    c. 0, 1, 2, 4, 8

    d. 1, 2, 4, 8, 16 Ans: d. 1, 2, 4, 8, 16

  3. main()
    {
    signed int bit=512, i=5;
    for(;i;i--)
    {
    printf("%d\n", bit = (bit >> (i - (i -1))));
    }
    }

    a. 512, 256, 128, 64, 32

    b. 256, 128, 64, 32, 16

    c. 128, 64, 32, 16, 8

    d. 64, 32, 16, 8, 4 Ans: d. 64, 32, 16, 8, 4

  4. main()
    {
    signed int bit=512, i=5;
    for(;i;i--)
    {
    printf("%d\n", bit >> (i - (i -1)));
    }
    }

    a. 512, 256, 0, 0, 0

    b. 256, 256, 0, 0, 0

    c. 512, 512, 512, 512, 512

    d. 256, 256, 256, 256, 256 Ans: d. 256, 256, 256, 256, 256

  5. main()
    {
    if (!(1&&0))
    {
    printf("OK I am done.");
    }
    else
    {
    printf("OK I am gone.");
    }
    }

    a. OK I am done Ans: a. OK I am done

    b. OK I am gone

    c. compile error

    d. none of the above

  6. main()
    {
    if ((1||0) && (0||1))
    {
    printf("OK I am done.");
    }
    else
    {
    printf("OK I am gone.");
    }
    }

    a. OK I am done Ans: a. OK I am done

    b. OK I am gone

    c. compile error

    d. none of the above

  7. main()
    {
    signed int bit=512, mBit;
    {
    mBit = ~bit;
    bit = bit & ~bit ;
    printf("%d %d", bit, mBit);
    }
    }

    a. 0, 0

    b. 0, 513

    c. 512, 0

    d. 0, -513 Ans: d. 0, -513

  8. main()
    {
    int i;
    printf("%d", &i)+1;
    scanf("%d", i)-1;
    }

    a. Runtime error.

    b. Runtime error. Access violation.

    c. Compile error. Illegal syntax Ans: c. Compile error. Illegal syntax

    d. None of the above

  9. main(int argc, char *argv[])
    {
    (main && argc) ? main(argc-1, NULL) : return 0;
    }

    a. Runtime error.

    b. Compile error. Illegal syntax Ans: b. Compile error. Illegal syntax

    c. Gets into Infinite loop

    d. None of the above

  10. main()
    {
    int i;
    float *pf;
    pf = (float *)&i;
    *pf = 100.00;
    printf("%d", i);
    }

    a. Runtime error.

    b. 100

    c. Some Integer not 100 Ans: c. Some Integer not 100

    d. None of the above

  11. main()
    {
    int i = 0xff;
    printf("%d", i<<2);
    }

    a. 4

    b. 512

    c. 1020

    d. 1024 Ans: d. 1024

  12. #define SQR(x) x * x
    main()
    {
    printf("%d", 225/SQR(15));
    }

    a. 1

    b. 225

    c. 15

    d. none of the above Ans: d. none of the above

  13. 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 Ans: c. 100, 4, 0

    d. 40, 4, 0

  14. union u




 


.

Recently Updated: New Placement Papers added.
Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory

Copyright ©2003-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy