Google

Friday, July 25, 2008

HCL PLACEMENT QUESTION ON C WITH SOLUTION

1. Given the following statement

enum day = { jan = 1 ,feb=4, april, may}

What is the value of may?



4

(b) 5

(c) 6

(d) 11

(e) None of the above





2. Find the output for the following C program



main()

{int x,j,k;

j=k=6;x=2;

x=j*k;

printf("%d", x);





3. Find the output for the following C program



fn f(x)

{ if(x<=0)

return;

else f(x-1)+x;

}





4. Find the output for the following C program



i=20,k=0;

for(j=1;j<i;j=1+4*(i/j))

{k+=j<10?4:3;

}

printf("%d", k);



Ans. k=4





5. Find the output for the following C program



int i =10

main()

{int i =20,n;

for(n=0;n<=i;)

{int i=10;

i++;

}

printf("%d", i);



Ans. i=20





6. Find the output for the following C program



int x=5;

y= x&y





7.Find the output for the following C program



Y=10;

if( Y++>9 && Y++!=10 && Y++>10)

{printf("%d", Y);

else

printf("%d", Y);

}



Ans. 13





8. Find the output for the following C program



f=(x>y)?x:y



a)f points to max of x and y

b) f points to min of x and y

c)error



Ans. (a)





9. What is the sizeof(long int)



4 bytes

(b) 2 bytes

(c) compiler dependent

(d) 8 bytes





10. Which of the function operator cannot be over loaded



(a)=

(b) ?:

(c) ==

(d) *





11. Find the output for the following C program



main()

{intx=2,y=6,z=6;

x=y==z;

printf(%d",x)

}

MEMORY MANAGEMENT


memory cell,Residence memory
segmentation
offset address
data segment ,stack,data,heap,code area

STRCTURE AND UNION

What is strcture
We cannot assign diffrent type structure to other ...
Initialization of structure member variable
Why we cannot use relation and logical operators i...
Bit level programming:
pointer in bit level programming
Important point for bit level programming
Misuse of pointer in structure:
arrary,union,structure in the structure

ADVANCE C


System Level programming.
Write the c program to switch the 256 color graphi...
Project in c
Command line argument in c
How to create dos command in c?
Create dir command in c
How to create virus in c?
Write c program which shutdown the window operat...
Write a c which delete the all the .exe file of in...
Mouse programming in c

DATA TYPE

data type and qualifier
size of data type,const and volatile
memory map of char
endianness
memory map of int
memory map of float,double
cyclic nature of data type
enum ,typedef
Constant in c
good question

FUNCTION

Syntax of function in c
How to make user defined function as library funct...
Function in c with no parameter and not returning ...
Function in c has parameter but not returning any ...
Function in c with parameter and returning a value...
What is Ellipsis or … in c ?
What is main function in c?
Parameter passing convention in c :pascal and cdec...
Function recursion in c

PREPROCESSOR


Preprocessor directives
#define
#include
#,##
#pragma
#pragma inline
#pragma warn
#pragma startup, #pragma exit
#error, #line



Wednesday, July 23, 2008

Placement question with solution

1)main()
{
char *p1="Name";

char *p2;

p2=(char *)malloc(20);

while(*p2++=*p1++);

printf("%s\n",p2);

}

Ans. An empty string
2) Find the output for the following C program
main()
{
intx=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Ans. 57 94
3) Find the output for the following C program
main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}
Ans. 5 20 1
4) Find the output for the following C program
#defineswap1(a,b)a=a+b;b=a-b;a=a-b;
main()
{
intx=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);

}

int
swap2(int
a,int b)


{

int temp;

temp=a;

b=a;

a=temp;

return;

}


Ans. 10 5





5) Find the output for the following C program



main()

{

char *ptr = "Ramco
Systems";

(*ptr)++;

printf("%s\n",ptr);

ptr++;

printf("%s\n",ptr);

}



Ans. Samco Systems





6) Find the output for the following C program



#include<stdio.h>

main()

{

char s1[]="Ramco";

char s2[]="Systems";

s1=s2;

printf("%s",s1);

}



Ans. Compilation
error giving it cannot be an modifiable 'lvalue'





7) Find the output for the following C program



#include<stdio.h>

main()

{

char *p1;

char *p2;

p1=(char *) malloc(25);

p2=(char *) malloc(25);

strcpy(p1,"Ramco");

strcpy(p2,"Systems");

strcat(p1,p2);

printf("%s",p1);

}



Ans. RamcoSystems





8) Find the output for the following C program given that

[1]. The following variable is available in file1.c

static int average_float;



Ans. All the functions in the file1.c
can access the variable





9) Find the output for the following C program



# define TRUE 0

some code

while(TRUE)

{

some code

}



Ans. This won't go into the loop as TRUE is defined as 0





10) Find the output for the following C program



main()

{

int x=10;

x++;

change_value(x);

x++;

Modify_value();

printf("First output: %d\n",x);

}

x++;

change_value(x);

printf("Second Output : %d\n",x);

Modify_value(x);

printf("Third Output : %d\n",x);

}

Modify_value()

{

return (x+=10);

}

change_value()

{

return(x+=1);

}



Ans. 12 1 1





11) Find the output for the following C program



main()

{

intx=10,y=15;

x=x++;

y=++y;

printf("%d %d\n",x,y);

}



Ans. 11 16





12) Find the output for the following C program



main()

{

int a=0;

if(a=0) printf("Ramco
Systems\n");

printf("Ramco
Systems\n");

}



Ans. Ony one time "Ramco
Systems" will be printed





13) Find the output for the following C program



#include<stdio.h>

int SumElement(int *,int);

void main(void)

{

int x[10];

int i=10;

for(;i;)

{

i--;

*(x+i)=i;

}

printf("%d",SumElement(x,10));

}

int SumElement(int array[],int size)

{

int i=0;

float sum=0;

for(;i<size;i++)

sum+=array[i];

return sum;

}





Q14) Find the output for the following C program



#include<stdio.h>

void main(void);

int printf(const
char*,...);

void main(void)

{

inti=100,j=10,k=20;

-- int sum;

float ave;

charmyformat[]="ave=%.2f";

sum=i+j+k;

ave=sum/3.0;

printf(myformat,ave);

}





Q15) Find the output for the following C program



#include<stdio.h>

void main(void);

{

int a[10];

printf("%d",((a+9) + (a+1)));

}





Q16) Find the output for the following C program



#include<stdio.h>

void main(void)

{

struct s{

int x;

float y;

}s1={25,45.00};

union u{

int x;

float y;

} u1;

u1=(union u)s1;

printf("%d and %f",u1.x,u1.y);

}





Q17) Find the output for the following C program



#include<stdio.h>

void main(void)

{

unsigned int c;

unsigned x=0x3;

scanf("%u",&c);

switch(c&x)

{

case 3: printf("Hello!\t");

case 2: printf("Welcome\t");

case 1: printf("To All\t");

default:printf("\n");

}

}





Q18) Find the output for the following C program



#include<stdio.h>

int fn(void);

void print(int,int(*)());

int i=10;

void main(void)

{

int i=20;

print(i,fn);

}

void print(int i,int (*fn1)())

{

printf("%d\n",(*fn1)());

}

int fn(void)

{

return(i-=5);

}





Q19) Find the output for the following C program



#include<stdio.h>

void main(void);

{

char numbers[5][6]={"Zero","One","Two","Three","Four"};

printf("%s is %c",&numbers[4][0],numbers[0][0]);

}





Q20) Find the output for the following C program



int bags[5]={20,5,20,3,20};

void main(void)

{

int pos=5,*next();

*next()=pos;

printf("%d %d %d",pos,*next(),bags[0]);

}

int *next()

{

int i;

for(i=0;i<5;i++)

if (bags[i]==20)

return(bags+i);

printf("Error!");

exit(0);

}





Q21) Find the output for the following C program



#include<stdio.h>

void main(void)

{

inty,z;<BR>intx=y=z=10;

int f=x;

float ans=0.0;

f *=x*y;

ans=x/3.0+y/3;

printf("%d %.2f",f,ans);

}





Q22) Find the output for the following C program



#include<stdio.h>

void main(void);

{

doubledbl=20.4530,d=4.5710,dblvar3;

double dbln(void);

dblvar3=dbln();

printf("%.2f\t%.2f\t%.2f\n",dbl,d,dblvar3);

}

double dbln(void)

{

double dblvar3;

dbl=dblvar3=4.5;

return(dbl+d+dblvar3);

}





Q23) Find the output for the following C program



#include<stdio.h>

static int i=5;

void main(void)

{

int sum=0;

do

{

sum+=(1/i);

}while(0<i--);

}





Q24) Find the output for the following C program



#include<stdio.h>

void main(void)

{

intoldvar=25,newvar=-25;

int swap(int,int);

swap(oldvar,newvar);

printf("Numbers are %d\t%d",newvar,oldvar);

}

int swap(int oldval,int newval)

{

int tempval=oldval;

oldval=newval;

newval=tempval;

}





Q25) Find the output for the following C program



#include<stdio.h>

void main(void);

{

inti=100,j=20;

i++=j;

i*=j;

printf("%d\t%d\n",i,j);

}





Q26) Find the output for the following C program



#include<stdio.h>

void main(void);

int newval(int);

void main(void)

{

int ia[]={12,24,45,0};

int i;

int sum=0;

for(i=0;ia[i];i++)

{

sum+=newval(ia[i]);

}

printf("Sum= %d",sum);

}

int newval(int x)

{

static int div=1;

return(x/div++);

}





Q27) Find
the output for the following C program



#include<stdio.h>

void main(void);

{

int var1,var2,var3,minmax;

var1=5;

var2=5;

var3=6;

minmax=(var1>var2)?(var1>var3)?var1:var3:(var2>var3)?var2:var3;

printf("%d\n",minmax);





Q28) Find the output for the following C program



#include<stdio.h>

void main(void);

{

void pa(int *a,int n);

int arr[5]={5,4,3,2,1};

pa(arr,5);

}

void pa(int *a,int n)

{

int i;

for(i=0;i<n;i++)

printf("%d\n",*(a++)+i);

}





Q29) Find the output for the following C program



#include<stdio.h>

void main(void);

void print(void);

{

print();

}

void f1(void)

{

printf("\nf1():");

}





Q30) Find the output for the following C program



#include
"6.c"

void print(void)

{

extern void f1(void);

f1();

}

static void f1(void)

{

printf("\n static f1().");

}





Q31) Find the output for the following C program



#include<stdio.h>

void main(void);

static int i=50;

int print(int i);

void main(void)

{

static int i=100;

while(print(i))

{

printf("%d\n",i);

i--;

}

}

int print(int x)

{

static int i=2;

return(i--);

}





Q32) Find the output for the following C program



#include<stdio.h>

void main(void);

typedef struct NType

{

int i;

char c;

long x;

} NewType;

void main(void)

{

NewType *c;

c=(NewType *)malloc(sizeof(NewType));

c->i=100;

c->c='C';

(*c).x=100L;

printf("(%d,%c,%4Ld)",c->i,c->c,c->x);

}





Q33) Find the output for the following C program



#include<stdio.h>

void main(void);

const int k=100;

void main(void)

{

int a[100];

int sum=0;

for(k=0;k<100;k++)

*(a+k)=k;

sum+=a[--k];

printf("%d",sum);

}

MEMORY MANAGEMENT
memory cell,Residence memory

segmentation offset address

data segment ,stack,data,heap,code area
STRCTURE AND UNION
What is strcture We cannot assign diffrent type structure to other ... Initialization of structure member variable Why we cannot use relation and logical operators i... Bit level programming: pointer in bit level programming Important point for bit level programming Misuse of pointer in structure: arrary,union,structure in the structure
ADVANCE C
System Level programming. Write the c program to switch the 256 color graphi... Project in c Command line argument in c How to create dos command in c? Create dir command in c How to create virus in c? Write c program which shutdown the window operat... Write a c which delete the all the .exe file of in... Mouse programming in c
DATA TYPE
data type and qualifier size of data type,const and volatile memory map of char endianness memory map of int memory map of float,double cyclic nature of data type enum ,typedef Constant in c good question
FUNCTION
Syntax of function in c How to make user defined function as library funct... Function in c with no parameter and not returning ... Function in c has parameter but not returning any ... Function in c with parameter and returning a value... What is Ellipsis or … in c ? What is main function in c? Parameter passing convention in c :pascal and cdec... Function recursion in c
PREPROCESSOR
Preprocessor directives #define #include #,## #pragma #pragma inline #pragma warn #pragma startup, #pragma exit #error, #line











Saturday, February 9, 2008

Wipro placement question

the first section has 15 questions and 15 min.to
answer them.they
are very simple. just have a look at the topics
mentioned.
don't bank on the answers provided.check them out for
yourself.
1.a+b/c*d what will be its postfix notation?
2. what will be the prefix notation of the above
__expression?
3. to represent hexadecimal number in binary how many
digit are
required?
ans : 4
4.decimal to octal conversertion?
5.unix is written in which language?
6.which generation of computer used LSI?
7.TCP/IP has how many layers? ans : 5
8and9 simple programs on c language?
10 which name is associated with punched cards?
ans: herman
hollerith
11 which program converts mnenomics into machine
language? ans :
assembler
12 what are the uses of the registers of the computer
used for?
13 one question from database.
14 which has a compiler ? ans:cobol
15 what is the size of an integer type data?one option
was
.depends on compiler.
16.area where program can be rewritten.
ans-Eprom.
17.program which can be read &written.
ans-prom.
18.how does the user communicates with the kernel.
ans-API.
19.Two ques. on binary to decimal.
(1)5.125
ans-101.001.
(2)17625
20.question on QUICK SORT
21.Best sorting is same as worst sorting (Ans: HEAP
SORT)
22.Last 8 bits are used for subnet masking for which
classes Ans:CLASS A,B,C
23.What is the tool which connects user and computer -
ANS: INTERPRETER
24.Question on access time and recovery time
25. Question on call by value,call by reference, call
by lvalue and rvalue
26. Question on Binary tree
27) Which of the following languages needs compiler
a. """This option i don't remember:) :)"""
b. LISP
c. COBOL
d. ORACLE
Ans. ORACLE
28) which of the following has the direct connection
with the
operating system?
Ans. Process Scheduler
29) Which of the following connects LANS with same
protocol?
Ans. BRIDGES
30) Octal equivalent of (176) base 10 is
Ans. 260
31) Dialouges Sharing is done in which layer of OSI?
Ans. Session layer
32) Arithmatic and Logic calculations are done in
which Register
of
the microprocessor?
Ans. Accumulator
33)Give the output of the C program..
main()
{
int i=10,j;
for(j=0;j<1;j++)
{
int i=20;
printf("%d",i);
}
printf("%d",i);
}
a. 10,10
b. 10,20
c. Garbage Value
d. Multiple declaration error
Ans. 10,20

34)Give the output of the C program..
main()
{
int i;
printf("%d",i);
}
extern int i=20;

a. 20
b. 0
c. Error
d. Garbage Value

Ans. Garbage Value

35.identify two level logic gate
1.nand
2.ex or
3.inverter
ans:nand

36.if there 6 inputs to or gate how many combination
possible
1.2
2.32
3.64

ans-64

37.Identify error

main()
{
int n=6;
print("%d",n)
;
}

ans -no error

38.a hexadecimal odumeter reads 53F.What is next
reading?

1.532
2.53f
3.530

ans-530

39.one question on lower triangular matrix.Don't
remember fully

40.one question on sparse matrix.SAme don't remember

41.Tcp/ip is

a)connectionless
b)connection oriented
c)both a & b;
d)none

ans b

42)main()
{
int i;
i=2300*10+20+1900*0;
printf("%d",i);
}
a)0
b)-320000
c)230020


ans c


43)main()
{
int arr[5]={2,4};
printf("%d %d %d \n",arr[2],arr[3],arr[4]);

}

44)main()
{
struct e{
char name[20];
int a;
float b;
};
struct e ast={"Hell"};
print("%d %f \n",ast.a,ast.b);
}

45) what is the depth of a tree?
46. what is LAN?
47. what does modem do?
48. which data structure is not dynamic?

the aptitude section has 30 questions in 25 min.I
can't give you
the exact questions but tell you the pattern.
1. Rearranging the jumbled sentences in right order -
2. QUESTIONS each containing around 4 sentences
3. Pick the odd one out - 3 QUESTIONS
4. Passage questions-2
5. Series question -1 : 1,2,6,15,31,_ Ans:56
6. Antonyms (opposites): - 2
7. Analogies : - 2
8. Sentence completion - 2
9. Coding -2 Question .
for Ex-if OCTOBER IS something like 2367589
then TOBOCER IS ..........
10.ccdic corresponds to delhi then bombay corresponds
to

11.many questions on reading comprehension.(LOOK UP
BARRON AS WELL
AS IMS
CAT MATERIAL)

12.ANALYTICS
like
1.CACTUS GROW IN DESERTS
2.CACTUS HAVE THICK LEAVES.
3.DESERT PLANT HAVE THICK LEAVES.
does the third sentence concludes the first two.

Wipro placement question

the first section has 15 questions and 15 min.to
answer them.they
are very simple. just have a look at the topics
mentioned.
don't bank on the answers provided.check them out for
yourself.
1.a+b/c*d what will be its postfix notation?
2. what will be the prefix notation of the above
__expression?
3. to represent hexadecimal number in binary how many
digit are
required?
ans : 4
4.decimal to octal conversertion?
5.unix is written in which language?
6.which generation of computer used LSI?
7.TCP/IP has how many layers? ans : 5
8and9 simple programs on c language?
10 which name is associated with punched cards?
ans: herman
hollerith
11 which program converts mnenomics into machine
language? ans :
assembler
12 what are the uses of the registers of the computer
used for?
13 one question from database.
14 which has a compiler ? ans:cobol
15 what is the size of an integer type data?one option
was
.depends on compiler.
16.area where program can be rewritten.
ans-Eprom.
17.program which can be read &written.
ans-prom.
18.how does the user communicates with the kernel.
ans-API.
19.Two ques. on binary to decimal.
(1)5.125
ans-101.001.
(2)17625
20.question on QUICK SORT
21.Best sorting is same as worst sorting (Ans: HEAP
SORT)
22.Last 8 bits are used for subnet masking for which
classes Ans:CLASS A,B,C
23.What is the tool which connects user and computer -
ANS: INTERPRETER
24.Question on access time and recovery time
25. Question on call by value,call by reference, call
by lvalue and rvalue
26. Question on Binary tree
27) Which of the following languages needs compiler
a. """This option i don't remember:) :)"""
b. LISP
c. COBOL
d. ORACLE
Ans. ORACLE
28) which of the following has the direct connection
with the
operating system?
Ans. Process Scheduler
29) Which of the following connects LANS with same
protocol?
Ans. BRIDGES
30) Octal equivalent of (176) base 10 is
Ans. 260
31) Dialouges Sharing is done in which layer of OSI?
Ans. Session layer
32) Arithmatic and Logic calculations are done in
which Register
of
the microprocessor?
Ans. Accumulator
33)Give the output of the C program..
main()
{
int i=10,j;
for(j=0;j<1;j++)
{
int i=20;
printf("%d",i);
}
printf("%d",i);
}
a. 10,10
b. 10,20
c. Garbage Value
d. Multiple declaration error
Ans. 10,20

34)Give the output of the C program..
main()
{
int i;
printf("%d",i);
}
extern int i=20;

a. 20
b. 0
c. Error
d. Garbage Value

Ans. Garbage Value

35.identify two level logic gate
1.nand
2.ex or
3.inverter
ans:nand

36.if there 6 inputs to or gate how many combination
possible
1.2
2.32
3.64

ans-64

37.Identify error

main()
{
int n=6;
print("%d",n)
;
}

ans -no error

38.a hexadecimal odumeter reads 53F.What is next
reading?

1.532
2.53f
3.530

ans-530

39.one question on lower triangular matrix.Don't
remember fully

40.one question on sparse matrix.SAme don't remember

41.Tcp/ip is

a)connectionless
b)connection oriented
c)both a & b;
d)none

ans b

42)main()
{
int i;
i=2300*10+20+1900*0;
printf("%d",i);
}
a)0
b)-320000
c)230020


ans c


43)main()
{
int arr[5]={2,4};
printf("%d %d %d \n",arr[2],arr[3],arr[4]);

}

44)main()
{
struct e{
char name[20];
int a;
float b;
};
struct e ast={"Hell"};
print("%d %f \n",ast.a,ast.b);
}

45) what is the depth of a tree?
46. what is LAN?
47. what does modem do?
48. which data structure is not dynamic?

the aptitude section has 30 questions in 25 min.I
can't give you
the exact questions but tell you the pattern.
1. Rearranging the jumbled sentences in right order -
2. QUESTIONS each containing around 4 sentences
3. Pick the odd one out - 3 QUESTIONS
4. Passage questions-2
5. Series question -1 : 1,2,6,15,31,_ Ans:56
6. Antonyms (opposites): - 2
7. Analogies : - 2
8. Sentence completion - 2
9. Coding -2 Question .
for Ex-if OCTOBER IS something like 2367589
then TOBOCER IS ..........
10.ccdic corresponds to delhi then bombay corresponds
to

11.many questions on reading comprehension.(LOOK UP
BARRON AS WELL
AS IMS
CAT MATERIAL)

12.ANALYTICS
like
1.CACTUS GROW IN DESERTS
2.CACTUS HAVE THICK LEAVES.
3.DESERT PLANT HAVE THICK LEAVES.
does the third sentence concludes the first two.

Thursday, February 7, 2008

10 qs were from s/w and 10 from h/w

rest 55 qs were from Aptitude. Apti qs were analytical and were to be done
in 45 min. most of them were of GRE type.
There were some qs in figures, ie find the next figure
Also find the odd one out, among some figures etc, jumbled words, refer to
some IMS material on non verbal figurative test.
then ther wer paragraph based qs, comprehension qs,
also some qs on suffix and prefix eg
BEG__SIDE is given, 'IN' if filled in the blanks give two words BEGIN and
INSIDE, like that.
Also in my next mail I will be sending some more qs from Cadence paper.
Till then you should prepare throughly for aptitude


1. Inorder and preorder trees (expressions) are given and postorder tree (
expression) is to be found out.

2. int v,u;
while(v != 0)
{
t = v % u;
v = u;
u = t;
}
find the time complexity of the above program.

3. x is passed by reference, y passed by value.
x = 3, y = 2;
foo(x, y)
var integer x, y;
{
x = x + 2;
y = y + 3;
}
main()
{
x = 5;
y = 5;
foo(x, y);
print (x, y);
}
output of the above pseudo code.

4. given a grammar, in which some productions of if then else etc were
given. you had to choose one option that can be derived out of the
grammar.

5. how many flip flops you require for modulo 19 counter.
6. ring counter's initial state is 01000. after how many clock cylces will
it return to the initial state.

7. some boolesn expression of the form x'y'z' + yz + .. ( something like
this) find the simplified expression

8. given 6 bit mantissa in 2s complement form and 4 bit exponent is in
excess-4 form in a floating point representation, find the number
ans -(something) * ( 2 to the power 3)

9. A signed no is stored in 10-bit register, what is the max and min
possible value of the number.


A few apti qs are follows.
10. A room is 30 X 12 X 12. a spider is ont the middle of the samller
wall, 1 feet from the top, and a fly is ont he middle of the opposite wall
1 feet from the bottom. what is the min distance reqd for the spider to
crawl to the fly.

11. A man while going dowm in a escalator(which is miving down) takes 50
steps to reach down and while going up takes 125 steps. If he goes 5 times
faster upwards than downwards. What will be the total no of steps if the
escalator werent moving.

12. 2/3 of corckery(plates) are broken, 1/2 have someother thing(handle)
broken , 1/4 are both broken and handle broken. Ultimately only 2 pieces
of corckery were without any defect. How many crockery were there in
total.

13.
___________________________________________________
___|___ ___|___ ___|___ |
| | | | | | |
| |__ | |___ | |___ |
|_______| | |_______| |__not_ |_______| | |
| | | |
|_____________________|_____________|____and_|___

boxes are negative edge triggered flip flops and 'not' and 'and' are
gates. What is this figure.
ans- modulo-5

14.
It is difficult to draw a figure but another question was in which some
NAND and OR gates were given.
ans - Z = true.

cadence parer...

As I wrote you 75 Marks paper..time limit 1.15 H

cadence paper... - 99

75 Marks paper..time limit 1.15 H

10 related to s/w & then 10 related to h/w & 55 aptitute.
---------------------
technical part
--------------------
1. ans:O(n**2)
2. inorder & preorder seq. of tree is given & you have to find out post order..
very easy but do practice you can make one easy method by practice..
3. problem on pass by ref. & pass by value.
asn: x=5 & y=3
4.in assembler relocatable code generated by ...!!??
asn: indirect addressing
5.depth of the tree
ans:log(n)
6.very simple problem on binary tree ...
so learn who to build tree & insert new tree node...

ans: 10
7.problem on FSM
8.problem on stack
asn:"c"
9.problem on grammer
-----------------------
thenical part 2
----------------------
1. A(XOR)B
2. for modulo-13 ...FF req.
asn: 4
3. asn: modulo-6
4. ans: z(x+y)
5. ans: 0,1
6. on DMA : I/O to Mem. without CPU monitering
7. problem on ring counter
asn: 4 cycle
8.number given in form 20 digit repesentation ...
where A,B ,C ,,,..J
are 10,11,12,...20

number is 'IA'
what is the value in octal
asn:562
9. one program is given
inwhich statement are
t= u%v
t= u%v
u=v
v=v-1...
you have to find complexcity of prog.

asn: !!??
------------------------------------



last aptitude Part

---------------

1. log( X**3 + Y**3) where x=3/4 y=1/4
log(3) , log(7) & log(2) is given ...

ans:-0.385
2. one puzzle related cards ...
asn: 1 black card & 12 red crads

3. last question of paper ..
sum of money of A & B =Rs.10
diffrence of A + B = Rs.9

ans : 50 pesa
4. one paper is equlely folded 50 times...
what is new thikness of paper..
ans: 2**50
5. problem in which two circle are drawn ...& triangle..
ans: 10root2
6. one problem related to two train ...
ans: (T + t)/2

7. connect nine point without take-off pen & without overlapping line segment

1 2 3 4



* * * 5



* * * 6
0* * * 7



answer: start with 0 to 1 to 7 to 0 to 4 .

8. make four equle parts..

----
| |
| |--
| |
| |
--------

hint : repeat same shape in it.

9. one area finding problem
in which in 10 * 10 box small 2*2 box & one triangle ...

sheded area you have to find...

ans:33.33
---------------------------------------------------------






--------------------------------------------------------------------------------


CV paper:
*****************************************************************


1-18 General (i) Data sufficiency
(ii) Analytical
(iii) Mathematics
19-45 C&UNIX

1. |x-a|=a-x Ans: (c) x<=a

2. There is six letter word VGANDA . How many ways you can arrange the
letters in the word in such a way that both the A's are together.
Ans : 120 (5x4!)

3. If two cards are taken one after another without replacing from
a pack of 52 cards what is the probability for the two cards be
queen. Ans : (4/52)*(3/51) (1/17)*(1/13)

4. 51 x 53 x ... x 59 ; symbols ! - factorial
^ - power of 2
(a) 99!/49! (b) (c) (d) (99! x 25!)/(2^24 x 49! x 51!)

5. The ratio fo Boys to Girls is 6:4. 60% of the boys and 40% of girls
take lunch in the canteen. What % of class takes lunch in canteen.
Ans : 52% (60/100)*60 + (40/100)*40


Data Sufficiency : a) only statement A is sufficent , B is not
b) only statemnet B
c) both are necessary
d) both are not sufficient.

6. X is an integer. Is X dvisible by 5?
A) 2X is divisible by 5.
B) 10X is divisible by 5.

Ans : A)

7. (A) Anna is the tallest girl
(B) Anna is taller than all boys.
(Q) . Is Anna the tallest in the class

Ans : c

8. maths question
9, 10 Analytical

Zulus always speak truth and Hutus always speak lies. There are
three persons A,B&C. A met B and says " I am a Zulu or I am Hutu".
We don't know what exactly he said. then B meets C and says to c
that " A is a Zulu ". Then C replied " No, A is a Hutu ".

9. How many Zulus are there ? Ans 2( check)
10) Who must be a Zulu ? Ans B (check)

11,12.13,14.
-----------

A father F has 5 sons, p,q,r,s,t. Not necessarly in this order.
Two are of same age. The eldest and youngest cannot be twins. T is elder
to r and younger to q and s has three older brothers

q) who are the twins? s,t
q) who is the oldest and youngest? q, (s&t)
q)
q)


15,16,17,18
----------

There are 7 people who take a test among which M is the worst, R is
disqualified, P and S obtain same marks, T scores less than S and Q scores
less than P, N scores higher than every one.
Ans : N P S T Q R M (may be, just check) or N S P T Q R M

C & UNIX
--------

19. What does chmod 654 stand for.

Ans : _rw_r_xr__
20. Which of following is used for back-up files?
(a) compress (b) Tar (c) make (d) all the above Ans : b
21 what does find command do ? Ans : search a file
22. what does " calloc" do?
Ans : A memory allocation and initialising to zero.
23 what does exit() do?
Ans : come out of executing programme.
24. what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
Ans : 1
25. i=2
printf("%old %old %old %old ",i, i++,i--,i++);
Ans : check the answer.
26. Using pointer, changing A to B and B to A is Swapping the function
using two address and one temperory variable. a,b are address, t is
temporary variable. How function look like?
Ans : swap(int *, int *, int )
27. In 'o' how are the arguments passed?
ans : by value.
28. Find the prototype of sine function.
Ans : extern double sin(double)
29. Scope of a global variable which is declared as static?
ans : File
30. ASCII problem
i=..
ans : 6
31 .
32. what is the o/p
printf(" Hello \o is the world ");
Ans : Hello is the world.
33. Clarifying the concept addresses used over array ; ie changing
the address of a base element produces what error?
34. child process -- fork
child shell -- sh
35. Answer are lex 7 yacc & man read these things in UNIX
36. What is
int *p(char (*s)[])
Ans : p is a function which is returning a pointer to integer
which takes arguments as pointer to array of characters.

BFL PAPER (COMPUTER AWARENESS TEXT) (45QUESTIONS ,+1,-1/4,45MIN)

(ITH IN BRACKETS ANSWERS)
1.In scanf h is used for (short int)
2.process is (program in execution)
3.thread is (detachable unit of executable code)
4.advantage of Win NT over Win 95 (robust &secure)
5.memory managemant in Win95 (paging &segmentation)
6.SQL indicates (all above)
7.polymorphism(function & operator overloading)
8.inheritance is(all properties of existing class are derived)
9.FTP(transfer a file b/w stations with user authentification)
10.TCP in transport layer (connection oriented)
11.gateway is used (to connect incompatible networks)
12.linked list is implemented by (referential structures)
13.multitask win95 (preemptive or non preemptive check)
14.functional dependency ( answer C)
15.semaphore is (synchronization of multiple processes
16.precedence order from high to low ( ( ) ++ / )
17.preorder of A*(B+C)/D-G (*+ABC/-DG)
18.B-tree (failure nodes at same level)
19.dense index (index record appers for every search -key in file)
20.answer for one questions ( (*p).value =5 )
21.merge sort time complexity ( O(n log n) )
22.program on swaping ( 10,5 ) given values are not changed
23.routers used (in network layer )
24.packets are formed ( in network layer )
25.heap ( priority queue )
26.copy constructor ( constant reference )
27.while following sorting algorithem has average sorting behavior (heap
sort )
28.in binary search tree which traversal is used for getting ascending
order values (inorder )
29.device drivers is used ( tool for a i/o devices) i am not sure
30. irrevalent to unix command ( getty)
31.fork in unix (system call used to create process)
32.make (creation of more than one file )
33.in unix .profile contains ( start up program)
34.in unix echo is used for ( answer C)
35.in unix 'ls 'stores contents in( inode block)
REFER GRE ( 12 TH EDITION)(QUANTITATIVE 20 Q ,+1,-1/4)
QUANTITATIVE :-
MODEL TEST 1. SECTION 3,PAGE 435 :- QUESTIONS(Q ) 17 TO 20,26 29
MODELTEST 1,SECTION 4,PAGE 441:- Q 26,28,29
MODEL TEST 2,SECTION 3,PAGE 483:- Q 18,19,20,29,30
MODEL TEST 2,SECTION 4,PAGE 489 :- Q 16,30
MODEL TEST 2,SECTION 7,PAGE 501 :- Q 16
ANALYTICAL ABILITY ( 20 Q, +1,-1/4) QUANTUM+ANALYTICAL 45MIN
1. PAGE 397 Q 7-11( THE OFFICE STAFF OF THE XYZ CORPORATION)
2PAGE 397 Q 14-17 ( AFTER MONTHS OF TALENT SEARCHING FOR AN
ADMINISTRATIVE
ASSISTANT
3.PAGE 400 Q 29-31(A CERTAIN CITY A SERVED BY SIX SUBWAY LINES)
4.MODEL TEST1,SECTON5,PAGE443,Q13-16(IN A CETTAIN SOCIETY THERE ATE TWO
MARRIAGE GROPES RED , BROWN)
5.MODELTEST3,SECTION6,PAGE544,Q 1-4(ALL G'S ARE H'S ,ALL G'S ARE J'S OR
K'S)

MEMORY MANAGEMENT
memory cell,Residence memory segmentation offset address data segment ,stack,data,heap,code area
STRCTURE AND UNION
What is strcture We cannot assign diffrent type structure to other ... Initialization of structure member variable Why we cannot use relation and logical operators i... Bit level programming: pointer in bit level programming Important point for bit level programming Misuse of pointer in structure: arrary,union,structure in the structure
ADVANCE C
System Level programming. Write the c program to switch the 256 color graphi... Project in c Command line argument in c How to create dos command in c? Create dir command in c How to create virus in c? Write c program which shutdown the window operat... Write a c which delete the all the .exe file of in... Mouse programming in c
DATA TYPE
data type and qualifier size of data type,const and volatile memory map of char endianness memory map of int memory map of float,double cyclic nature of data type enum ,typedef Constant in c good question
FUNCTION
Syntax of function in c How to make user defined function as library funct... Function in c with no parameter and not returning ... Function in c has parameter but not returning any ... Function in c with parameter and returning a value... What is Ellipsis or … in c ? What is main function in c? Parameter passing convention in c :pascal and cdec... Function recursion in c
PREPROCESSOR
Preprocessor directives #define #include #,## #pragma #pragma inline #pragma warn #pragma startup, #pragma exit #error, #line
Google