Placement Papers: GlobalEdge Placement Paper 1st May 2005

Download PDF of This Page (Size: 104K)

Examrace Placement Series prepares you for the toughest placement exams to top companies.

  1. : TRUE */

    1. What is the Output of the Program? main () { int a = 1; #define p a printf ( “%d %d” a + +, p + + ); }

      1. 1, 0

      2. 2, 0

      3. 1 2

      4. none of the above

      Ans (d)

    2. What is the Output of the Program? #include <stdio. h> main () { #include <stdio. h> int a = 90; printf ( “%d” a); }

      1. 90

      2. compilation error

      3. linker error

      4. runtime error

      Ans (a)

    3. What is the Output of the Program?

    main () { main (); }

    1. compilation error

    2. runtime error

    3. executes until the stack overflows (1)

    4. none of the above

Ans (c)