Placement Papers: Caritor Paper Pattern Year 2006

Download PDF of This Page (Size: 141K)

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

  1. struct x { int I; char s; } union { struct x, y; double j }z; main () { printf ( “%d” sizeof (union z) ); 2. Struct x { int I; short int j; char a; char b; } struct y } main () { printf ( “%d%d” sizeof (structx), sizeof (structy) ); } 12 12 12 8 12 8 8 12

  2. main () { a[2][2] = { { 2}, { 3}} printf ( “%d” a[0][0]); printf ( “%d” a[0][1]); printf ( “%d” a[1][0]) printf ( “%d” a[1][1]); } 2000 2300 2030 2003

  3. main () { int I = 0; } declaration definition

  4. main () { int I = 1234.567 printf ( “%d” I) } Ans 1234 1235 1234.567 error

  5. main () { int * + j int * I = 6; if (NULL! = &&NULL! = * I) printf ( “” ); }

  6. main () { int a[] = { ‘1’ ‘2’ ‘3’ 0, ‘1’ ‘2’ ‘3’ } printf ( “%s” a) }; Ans 123 1230123 error

  7. main () { #define x 10 { printf ( “%d” + + x); }} compilation error run time error 10 11

  8. main () { char a[] = ( “ABCxyz” ); printf ( “%d” sizeof (a) ) }; Ans 26 27 25

  9. main () { char a[] = “abcxyz” char * x; p = a; printf ( “%d” sizeof ( * p) ); p = p + 10; printf ( “%d” sizeof (a) ) }; Ans 26, 26 26, 16 16, 26

  10. main () { int x = 1111; printf ( “%d” x); } Ans: 0

  11. main () { int i = (int * ) 0 × 1000; printf ( “%d” I) }; Ans 1000 compilation error runtime error

  12. main (int I) { printf ( “%d” I) }

Ans: Error 12

Quantitative Section

A: If statements is partly right

B: If statements is partly wrong

C: If no conclusion can be made

first 6 questions from data interpretation

last 5 questions on what comes next