Sasken  Placement Paper   Technical - C & C++   Not Specified-14 Jun 2007

Sasken  Placement Paper   Technical - C & C++   Not Specified-14 Jun 2007


  • Posted by  FreshersWorld 
    7 Jan, 2012

    ==> Questions in C were mostly from "pointers in c" and "test ur C skills" by Yeshwant Kanetkar... C questions based on command line arguments, data structure ( BST, tree traversals). All the questions were like " what is the output of the following program segment" and in many questions 3rd and 4th choices were (c) compilation error and (d) compilation, warning, runtime error.... Heard they are asking abt- ptr, string, arr, preprocessor, data structures etc.. C test was pretty ok pass by value, pass by reference etc. questions were asked The general test was pretty tough, they ask u fourier transforms,harmonics,Barkhuasen criterion,virtual memory,Whether FIFO is better than LRU etc. 4 questions were from fourier transforms the duration was 60 mins and no negative marking
    C basics 10 questions ,very easy.Given a program and asked the output-type questons.from pointers 3-4 questions are there. 2)reg subject:very very easy:some from digital(on nand gates. Jk flip flop),from Information theory and coding,some from Micro processors.
    In Logical Reasoning all the 17 questions were paragraphs (argument) of 5 to 6 sentences...five sentences (choices) will be given below and questions were asked like " which of the five if true will weaken or supports the argument above .." :- R. S. Agrawal LR is sufficient


    The questions were like this.
    ------------------------------
    The text consists of two parts
    1) C test
    2) CSE01 Test
    Duration: 1hr

    #include
    #include

    /*void print_arr(float **p)
    {
    printf("%f %f %f \n",p[0][0],p[0][1],p[0][2]);
    }

    void main ()
    {
    float arr[2][3]={{0,1,2},{3,4,5}};
    float **fl_arr;
    clrscr ();
    fl_arr=(float **) arr;
    print_arr(fl_arr);
    fl_arr++;
    print_arr(fl_arr);
    }

    # define putchar(c) printf("%c",c)

    void main ()
    {
    int s='c';
    clrscr ();
    putchar (s);
    printf("%d",printf("ABC\\"));
    }

    void main ()
    {
    int i;
    clrscr ();
    for(i=0;i<3;i++)
    {
    int i=100;
    i--;
    printf("%d..",i);
    }
    }

    void main ()
    {
    int a[]={9,4,1,7,5};
    int *p;clrscr ();
    p=&a[3];
    printf("%d",p[-1]);
    }

    void main ()
    {
    int a[]={101,201,301,401,501,601,701,801,901,001};
    int *p; clrscr ();
    printf("%d",a);
    printf("arthi");
    printf("%d", ((char *)-a + sizeof(int)));
    p=(int *) ((char *) a +sizeof (int));
    printf("%d",*p);
    }

    main ()
    {
    int a[10]={10,9,8,7,6,5,4,3,2,1}; clrscr ();
    int *p=a;
    int *q=&a[7];
    printf("%d%d%d",q,p,(q-p+1));
    }

    main ()
    {
    int i=5; clrscr ();
    i= !i >3;
    printf("%d",i);
    }*/


    void main ()
    {
    int a[10]; clrscr ();
    3[a]=10;
    printf("%d ",*(a+3));
    }

2009-2016 downloadmela.com. All rights reserved.