Placement Papers - Sasken

Sasken Communication Technologies Ltd.
SASKEN PAPER - 09 AUG 2003
Posted by :
Giriganesh
(7)
Hello Friends
  
I had attened sasken test on 9th Aug at 2:30pm.

There were around 85 Info-science, 30 Telecomm and 5 computer sc freshers.
After the test HR announced that the result will be in 3 days i.e by Wednesday. Only those candidates who r shortlisted will be intimated by mail. Rest must assume that they r not shortlisted. If shortlisted they will have to come for a TECHNICAL INTERVIEW followed by a HR INTERVIEW.

The questions were like this.
Sasken New Pattern
------------------------------
 The test consists of two parts
1) C test
2) CSE01 Test
Duration: 1hr
---------------------------------------------------------
1) C test -10 questions- Some questions were as follows
I remember only a few.
a) What is the parameter passing mechanism to Macros Called?
b)   void func(int x,int y)
   {
  x=3;
 y=2;
   }
   main()
   {
 int i;
 func(i,i);
 print(i);
   }
 If the output must be 2 what is the parameter passing mechanism called?
c) which of the following code will swap the two numbers? -3 choices was given
d) which of the following is illegal for the program?
  main()
  {
   char const *p=\'p\';
  }
  1)p++ 2) *p++ 3)(*p)++ 4) all
e) what is the output of the following program
  void print(int ** arr)
  {
   print("0 %f, 1 %f, 2 %f ",arr[0][0],arr[0][1],arr[0][2]);
  }
  main()
  {
    int a[][]={ {1,2,3},
    {4,5,6}
   }
   int ** arr=a;
   print(arr);
   arr++;
   print(arr);
  }
f) which of the following code swapps the two,numbers.
   - 4 choices were given
g) if the string " this is a " is present in the code of a function such as \'void func(void)\' where will the variable stored in the memory.
  a) in the stack b) heap c) code or text segment as per implementation d) created when func is called, stored in function stack space and destroyed as it goes out .

2) CSE01-15 questions
   In this section there was question from LD-gates, JK flip flop, sampling rate and few other then there was a few from OS - i dont remember the questions.

 
C Test
------
1. What is the output of the Program?
  main()
 {
  int a[10]={1,2,3,4,5,6,7,8,9,10};
  int *p=a;
  int *q=&a[9];
  printf("%d",q-p+1);
 }
 
Ans: 10
 
2. main()
 {
  int i=6;
  int *p=&i;
  free(p);
  printf("%d",i);
 }
 Options:
 a. No Error.
 b. Free can\'t be used for p,
 c. Compiler Error.
 d. In printf we should use *p instead of i.
 
 Ans: A
 
3. What is the output of the Program?
 
 main()
 {
  int i=5;
  i=!i>3;
  printf("%d",i);
 }
 
Ans: 0
 
4. What is the output of the Program?
 
 main()
 {
  int a[10];
  3[a]=10;
  printf("%d",*(a+3));
 }
 
Ans: 10


5. int (*p[10]) ();
 
 In above declaration what type of variable is P?
 
Ans: P is array of pointers that each points to
  a function that takes no arguments and returns
  an int.
 
6. What is the output of the Program? 
 
struct emp
 {
  int a=25;
  char b[20]="tgk";
 };
 main
 {
  emp e;
  e.a=2;
  strcpy(e.b,"tellapalli");
  printf("%d %s",e.a,e.b);
 }
 
Ans: Compile Error.
 
7. What is the output of the Program?
 
main()
 {
  int a=5;
  const int *p=&a;
  *p=200;
  printf("%d",*p);
 }
 
 Ans: Compile Error.
 
8. What is the output of the Program?
 
#define SQ(x) x*x
 main()
 {
  int a=SQ(2+1);
  printf("%d",a);
 }
 
 Ans: 5.
 
9. What is the output of the Program?
  
 main()
 {
  struct t
  {
  int i;
  } a,*p=&a;
 
 p->i=10;
  printf("%d",(*p).i);
 }
 
 Ans: 10
 
10. This program will be Compiled? [Yes/No]
 
zzz.c file
 ----------
 
/* This is zzz.c file*/
 /*printf("tellapalli");*/
 
abc.c file
 ----------
 main()
 {
  #include"zzz.c"
  printf("Tellapalli");
 }
 
Ans: Yes
 

CSEA01 Test
-----------
I haven\'t remembered the Qs.I has forgotten Qs.
 
They has given 5Q in OS,3Q in DM,2Q in ATFL,1Q in DLD,
1Q in CO,1Q in MP 1Q in DS,1Q in CN.
 

 While(Fresher)
  printf("ALL THE BEST");