SASken - Ques
SASken - Ques
There r 10 ques. in three sections each, thus total 30 ques. 4 choices were given. 1 mark for
each ans. no negative marking.
q.1 if phase of different frequency components of signal vary linearly then they all reach
destination with delay
1) delay also vary linearly.
2) no change in delay,
3)
q.5 a signal is to be transmitted 1000km long distance sending 10 mbps . if signal consists of
1000 bits/package and takes 5 microsecs. to transmit then how much data is to be send such
that line gets fully filled.
a. 100
b. 500
c
d.1000
q.8 if a 32 bit number in fractional form is to be converted into float then it is multiplied with
a. 2^31
b. 1/(2^31 - 1)
c. 2^31 -1
d.
q.9 if signal is sampled at 8 khz and the signal of 1 khz is transmitted then
q.1 char const *p='p' then which of below is true
a.**P =
(this question u can get from fresher world sample paper)
q.3 for(i=0;i<=50;i++)
for(j=0;j<=100;j++)
for(j=0;j<=100;j++)
for(i=0;i<=50;i++) for this type of loop which one is faster
a. same
b. first
c. second
d. depends on s/w and h/w
q.5 file a
test()
{ int a; }
file b
void main(void)
{ int b;
b= test();
}
what is the output
a. a
b. b
c. not compiled,error
d. compiles sucessfully,but give linker error
q.5 in a library for each single novell there r 2 science book and for each science book there r
7 economics books then the ratio of economics to science to novell is
a. 1:2:14
b. 2:1:7
c. 14:2:1
d.e.
q.6 ira is taller than sam, harold is shorter than gene, elliot is taller than harold
sam and harold is of same height. thenwhich one is true.
a.sam is shorter than harold
b. elliot is taller than gene
c. ira is taller than elliot
d. elliot is shorter than gene
e. harold is shorter than ira
q.7 if a(n) is to be entered following the rule [ a(n)^2 - 1 ] then what r the next three
enteries.
a. 0,-1,0
b. 2,3,4
c. 1,2,3
d. 0,-1,2
e. 0,-1,1
#include<stdio.h>
#include<conio.h>
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);
}
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));
}
PART #2
Duration : 1 Hr
C questions
------------
void main()
{
float arr[2][3] = {{0,1,2},{3,4,5}};
float **fl_arr;
fl_arr = (float *)arr;
print_arr(fl_arr);
fl_arr++;
print_arr(fl_arr);
}
(a)
(d)segmentation fault
(a) c
(b) 99
(c) Compilation error
(d) Execution error
void main()
{
printf("%d",printf("ABC\\"));
}
(a) ABC\\
(b) 1
(c) ABC\4
(d) ABC\3
int compute(int n)
{
if(n>0)
{
n=compute(n-3)+compute(n-1);
return(n);
}
return(1);
}
void main()
{
printf("%d",compute(5));
}
(a) 6
(b) 9
(c) 12
(d) 13
void main()
{
int i;
for(i=0;i<3;i++)
{
int i=100;
i--;
printf("%d..",i);
}
}
(a0..1..2..
(b)99..98..97..
(c)100..100..100..
(d)99..99..99..
void main()
{
int a[]={9,4,1,7,5};
int *p;
p=&a[3];
printf("%d",p[-1]);
}
(a)6
(b)1
(c)7
(d)Error
void main()
{
int a[]={10,20,30,40,50};
int *p;
p= (int*)((char *)a + sizeof(int));
printf("%d",*p);
}
(a)10
(b)20
(c)30
(d)40
for(i=0;i<100;i++)
for(j=0;j<10;j++)
a[i][j]=0;
OR
for(j=0;j<10;j++)
for(i=0;i<100;i++)
a[i][j]=0;
(a)First code
(b)Second code
(c)Same
(d)Compiler and hardware dependent
Aptitude
--------
3. x+y = z
Then
(a)...
(b)y<z
(c)...
4. 2<x<3 , 7<y<8
Then which is the greatest
(a) (x^2)y
(b) 5xy
(c) x(y^2)
(d) 5(x^2)y/12
Computer science
----------------
void print(int n)
{
if(n>0)
{
print(n-1);
printf("%d",n);//println(n) in Pascal version.
print(n-1);
}
}
(a)3
(b)7
(c)15
(d)31
7.A grammar was given and 4 strings was given and the
one which was not possible was to be chosen.
---------
There is Tech as well as HR interview. Tech interview
is the important one.
int * f(int a)
{
int i;
i=a;
return(&i);
}
Ans-> We can't return address of auto variable as it
is allocation is made in stack which is deallocated
when the function returns.
(2)
a.h b.c c.c d.c
int i=0 #include"a.h" #include"a.h" extern int
i;void main{.....}
|||
b.o c.o d.o
Compilation Phase
HR Interview
------------
- Introduce yourself
- Why should we take you
- What you know about Sasken and etc.
PART #3
Sasken Test
1)C test
2)Aptitude
3)technical
int c=69;
putchar(c);
3) printf("%d",printf("ABC//"));
4) int func(int r)
{
int static result;
if(r<=0) result=1;
else
result=func(r-3)+func(r-1);
return result;
}
5) int i=3;
while(i--)
{
int i=100;
i--;
printf("%d..",i);
}
6) file a.c
void test()
{
int i=20;
printf("%d",i);
}
file b.c
void main()
{
int i=10;
test();
printf("%d",i);
}
o/p is----
Technical
SASKEN PAPER
------------------------
Address:
Sasken Communications Technologies Limited.
# 139/25 Amar Jyoti Layout, Ring Road,
Domlur PO
Banglore 560 071
India.
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.
Part #4
In the interview, they asked about Stacks, Queues, Linked lists, Binary Trees.
Few questions I remember are:
1) If u have a linked list library, how do u design stack and queue using it; write pseudocode.
2) What are static variables and functions?
3) Write code in C to count the number of 1s in a character (1byte).
4) What is pre-order, post-order, in-order; write code to print post-order.
5) Can u construct a binary tree given its inorder and postorder details. Is it neccessary or
sufficient to construct tree. Asked an example to do in both ways.
6) If recursion is not used to print post order, what other data structure u use
(ans: Stack).
7)Can u use stack always in place of recursion?
(ans: Yes)
8) What are meta characters?
9) Write a piece of code to insert a node in a linked list.
10) About malloc.
11) About Operating System - Semaphores
12) About Computability (eg:- finding infinite loop), Complexity of algorithms
13) What does compiler and assembler do?
They asked grep command in Linux. How do u search '\n', using grep, in a file.
They may ask some other commands if u say u r familiar and recently been using linux.
About Networks? OSI reference model.
what does transport layer do?
TCP belongs to which layer?
IP belongs to which layer?
Where is error correction done?
What is a connection oriented/ connection less transmission?
What is meant by reliable transmission protocol? why is it called so?
What is flow control and where it is done?
About ur project?
Asked me expalin about the project in brief.
If u don't know anything, say it sincerely. U cannot bluff them. I too spoke to them sincerely.
They were cool. U need not get tensed. They won't attack you. Just they want to know ur hold
about the subject.
C Test------10 Q-10 M
Electives---15 Q-15 M
Duration of these two exams is 1Hr.
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]) ();
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.
10 ques of C
10 ques of aptitude
10 ques of comp sc.
COMP SC.
1. IN BINARY TREE IF PARENT HAS INDEX i then its left and right child
occurs at:
ans (a) 2i and 2i+1
2. 1 prog is given n scope is asked
ans (b) static scope (probably)
8. recursive-descent parser is a
(a) top-down parser
(b) bottom-up parser
(c) shift-reduce parser
(d) LR parser
9. min. no. of NAND gates reqd to implement a 2 i/p x-nor gate
(a) 2
(b) 3
(c) 4
(d) 5
These are the Queston asked in the sasken wirtten held on 19th at 3.00 p.m batch.
Each section has 10 questions and the way they aorganised was good and timely.
c and c++;
--------------------------------------
1. char buffer[]="susan";
ans : a)
2.#include<stdio.h>
#include<conio.h>
void main()
{
int ctr=0;
clrscr();
switch(ctr)
{
case 0:
ctr++;
case 1:
ctr++;
default :
ctr++;
};
printf("%d",ctr);
getch();
}
What is the output of the code.
i) ctr=2;
ii) ctr=3;
iii) ctr=1;
iv) compiler error;
Ans : iii)
3.#include<stdio.h>
#include<conio.h>
void main()
{
void fun(int,int);
int i ,j;
i=2,j=3;
fun(i++,j++);
printf("%d%d",i,j);
getch();
}
void fun(int i,int j)
{
i++,j++;
}
i)i=2,j=3;
ii)i=3,j=4;
iii)i=5,j=6;
iv) compiler error.
Ans : ii)
4)
#include<stdio.h>
#include<conio.h>
void main()
{
int a[20];
clrscr();
*a=(int*)malloc(sizeof(a));
printf("%d",sizeof(a));
getch();
}
5)
#include<stdio.h>
#include<conio.h>
void main()
{
char *s="susan";
clrscr();
printf(s);
getch();
}
i) compiler error;
ii) s;
iii) susan;
iv) 5;
Ans: iii)
6)
i) const * int p;
ii) int const *p;
iii) const int *p;
7)
i) (*ptr)++;
ii) *ptr+=1;
iii) *ptr++;
8)
a)for(int i=0; i<50 ;i++)
for( int j=0; j<100; j++)
a[i][j]=100;
i) a) is faster than b)
ii) b) is fater than a)
iii) both a) and b) executes for same time.
iv) depends upon the compiler and the hardware used.
main()
{
int i;
fun( i,i);
printf("%d",i);
}
a. Call by name
b. Call by refernce
c. Call by value
"The question paper is a easy one but i think they are expecting a higher cut-off".
In technical round they will ask why we answered that option as the
PART #5
:
1. Technical ( C ) & Technical Subject- 60 mins, 60 questions
2. Logical Reasoning.. - 30 mins,17 questions....
==> 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.
1) C test
2) CSE01 Test
Duration: 1hr
---------------------------------------------------------------
1) C test -10 questions- Some questions were as follows, 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 swaps 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 - don't remember the questions.
INTERVIEW
In the interview, they asked about Stacks, Queues, Linked lists, Binary Trees.
1) If u have a linked list library, how do u design stack and queue using it; write pseudocode.
5) Can u construct a binary tree given its inorder and postorder details. Is it neccessary or
sufficient to construct tree. Asked an example to do in both ways.
6) If recursion is not used to print post order, what other data structure u use
(ans: Stack).
(ans: Yes)
They asked grep command in Linux. How do u search '\n', using grep, in a file.
They may ask some other commands if u say u r familiar and recently been using linux.
About ur project?
If u don't know anything, say it sincerely. U cannot bluff them. I too spoke to them sincerely.
They were cool. U need not get tensed. They won't attack you. Just they want to know ur hold
about the subject.
Interview
In the interview, they asked about Stacks, Queues, Linked lists, Binary Trees.
Few questions I remember are:
1) If u have a linked list library, how do u design stack and queue using it; write pseudocode.
2) What are static variables and functions?
3) Write code in C to count the number of 1s in a character (1byte).
4) What is pre-order, post-order, in-order; write code to print post-order.
5) Can u construct a binary tree given its inorder and postorder details. Is it neccessary or
sufficient to construct tree. Asked an example to do in both ways.
6) If recursion is not used to print post order, what other data structure u use
(ans: Stack).
7)Can u use stack always in place of recursion?
(ans: Yes)
8) What are meta characters?
9) Write a piece of code to insert a node in a linked list.
10) About malloc.
11) About Operating System - Semaphores
12) About Computability (eg:- finding infinite loop), Complexity of algorithms
13) What does compiler and assembler do?
They asked grep command in Linux. How do u search '\n', using grep, in a file.
They may ask some other commands if u say u r familiar and recently been using linux.
About Networks? OSI reference model.
what does transport layer do?
TCP belongs to which layer?
IP belongs to which layer?
Where is error correction done?
What is a connection oriented/ connection less transmission?
What is meant by reliable transmission protocol? why is it called so?
What is flow control and where it is done?
About ur project?
Asked me expalin about the project in brief.
If u don't know anything, say it sincerely. U cannot bluff them. I too spoke to them sincerely.
They were cool. U need not get tensed. They won't attack you. Just they want to know ur hold
about the subject.
Sasken at rect in July
THE PATTERN IS LIKE APPTI 10 QUES AND OS conspects 10 and C 10 ques total 30ques
......time 60 min..
1. how many 2 digit number satisfy the following... that last digit of the square of the 2 digit
number is 8
A. none B. 1 C. 2 D. 3 E more than three
2. city B is 8 miles east of A,
city C is 6 miles north ofB
city B is 16 miles east of C
city E is 12 miles north of D
which of the distance from city A to E
A. 10 B. 20 C . 24 D .30 E .42
3 if X+Y=Z and X and Y are +ve , which of the follwing statement can be true
i) x < y
ii) x <2
iii) x <2z
2
10.The entry an in a followng secequence is deterimined by the rule(a ) if 1 is entry in the
sequence the next five enteries are.
n-1
A.0,1,2 B0,-1,1 C. 0,1,2 D.2,3,4 E. 0,1,0
( a base (n-1) and )square.
A. 0,2 1,11,2,0
B .0,1 1,2,2,3
C. 0,1 1,2,2,2
D. defalut value
8. #include <stdio.h>
void mainvoid()
{
printf("%d", printf("ABC\\"));
}
a. ABC\ b.\ c.ABC\4 d.ABC\\\
9. #include <stdio.h>
void main(void)
{
int a[10], i;
int *b
b=( int*) maloc(10* size of int))
*b =&a[3];
for(i=0;i<10;i++)
a[i] =i+10
printf("%d",b[-1]);
}
PART #6
4. a program computing log(n) accepts 1000 inputs its execution time is 110 ms...when
it doubles n to 2000 inputs..it becomes 120.....and what will be for 4000
a)130
b)140
c)150
5. algorithm to find the balancing of paranthesis was given and output had to be
obtaines...using stacks...easy yaar....
7. problem to find the avg waitin time of sjf..given the burst times of each process
9. which of the foll data structures can be randomly accessed givin loc
1.linked kist implemented using array
2.singly linked list
3.double linked list
4.both single and double linked list
13. sum(int x)
{int t;
if(x<=1) return (1);
t=sum(x-3)+sum(x-1);
return (t);
}
if 6 is passed to the function, what is the value returned to the calling function.
ANS= 9
[ans:don’t remember the actual _expression.if the _expression is the same the ans
was nine]
15. Main()
{int a[]={0,2,4,6,8};
int *ptr;
ptr=a;
printf(“%d”, *((char *) ptr+4));
}
find output
8246
ANS= 4
16. which takes the same memory space regardless of the type of operating system?
Char* char int float
17. main()
{ int I=3;
while(I--)
{int I=100;
I--;
Printf(“%d”, I);
}
}
find output.
100 99 98 99 98 97 99 99 99 error ANS= 99 99 99
18. main()
{char ch;
for(ch=’0’;ch<=255;ch++)
printf(“%c”, ch);
}
[ans : infinite loop
Part #7
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 - don't remember the questions.
INTERVIEW
In the interview, they asked about Stacks, Queues, Linked lists, Binary Trees.
5) Can u construct a binary tree given its inorder and postorder details. Is
it neccessary or sufficient to construct tree. Asked an example to do in both ways.
6) If recursion is not used to print post order, what other data structure u use
(ans: Stack).
They asked grep command in Linux. How do u search '\n', using grep, in a file.
They may ask some other commands if u say u r familiar and recently been
using linux.
About ur project?
If u don't know anything, say it sincerely. U cannot bluff them. I too spoke
to them sincerely.
They were cool. U need not get tensed. They won't attack you. Just they want
to know ur hold about the subject.