.
  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 » iGate Placement Papers » iGate Previous Year Placement Paper

 

iGate Placement Paper - C Programming Question And Answers


Advertisements
Advertisements




iGate Previous Years Solved Sample Placement Papers

  1. Declaration: `enum cities{bethlehem, jericho, nazareth=1, jerusalem}`
    Assign value 1 to:

    (a) bethlehem

    (b) nazareth (Ans)

    (c) bethlehem & nazareth

    (d) jericho & nazareth

  2. #include 
    #include 
    void main() {
        char buffer[82] = {80};
        char *result;
        printf("Input line of text, followed by carriage return: ");
        result = cgets(buffer);
        printf("text=%s", result);
    }
            
    Choose the correct option:

    (a) printf("length=%d", buffer[1]);

    (b) printf("length=%d", buffer[0]); (Ans)

    (c) printf("length=%d", buffer[81]);

    (d) printf("length=%d", buffer[2]);

  3. Consider `scanf` and `sscanf` functions, which is true:

    (a) No standard function called sscanf

    (b) sscanf(s,...) is equivalent to scanf(...) except that input characters are taken from string s. (Ans)

    (c) sscanf is equivalent to scanf.

    (d) None of the above.

  4. #include 
    main() {
        char line[80];
        scanf("%[^ ]", line);
        printf("%s", line);
    }
            
    What does `scanf` do?

    (a) Compilation error. Illegal format string.

    (b) Terminates reading input into variable line. (Ans)

    (c) Other options not remembered.

    (d) Other options not remembered.

  5. `ceil(-2.8)`?

    (a) 0

    (b) -3.0

    (c) -2.0 (Ans)

    (d) 2

  6. for (p = head; p != null; p = p->next)
        free(p);
            
    What happens?

    (a) Program runs smoothly.

    (b) Compilation error.

    (c) Runtime error. (Ans)

    (d) None of the above.

  7. int x[3][4] = {
        {1, 2, 3},
        {4, 5, 6},
        {7, 8, 9}
    };
            
    What is true?

    (a) x[2][1] = x[2][2] = x[2][3] = 0

    (b) Value in fourth column is zero

    (c) Value in last row is zero

    (d) None of the above. (Ans)

  8. Problem was big, could not be remembered.

    No details available.

  9. main() {
        printf("%u", main());
    }
            
    What happens?

    (a) Prints garbage.

    (b) Execution error.

    (c) Prints starting address of function main. (Ans)

    (d) Infinite loop.

  10. int a, *b = &a, **c = &b;
    ...
    a = 4;
    **c = 5;
            
    What happens?

    (a) Does not change value of a

    (b) Assign address of c to a

    (c) Assign value of b to a

    (d) Assign 5 to a. (Ans)




 


.

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