Sei sulla pagina 1di 96

L G SOFT PAPER ON 9th JANUARY 2008

Hey ppl...LG Soft came here in our campus for recruitment drive on 9th Jan 2008..Here are some details
abt the process...

Brief Description of the process:-


Tecncal cum Aptitude test.
At least 2 tech interviews.
fnal HR interview.

No.of students appeared for the wriitten test:-around 125.


The written test was havin 45 ques based on 'C' and among them some ques were on Data Structures + 15
ques based on general aptitude....
No sectional cut-off and negative marking were there.....Apti was very easy...but 'C' was a bit tricky....At a
first glance...you would think that this would be the nswer...but if you read it carefully, you will be
getting differant answer...'C' questions were based on function pointers,
basics etc....You shuld have a firm hand on 'C' and Data Structures.....

After around 1/2 to 1 hours, result of the tests were announced....around 45 were shortlisted.....Then after
that, there were at lest 2 rounds of technical interviews....Depending on one's performance in the 1st
round, he/she would be giving 2nd technical round....I faced three rounds of technical interviews...The ques
were based on C and Data Structures....

Once, you go into HR interview, after clearing all the initial interviews...You will be selected... In the
evening, results were announced....13 ppl got selected...I was one of them....The joining is on 21st Jan... If
your C basics are very clear,then only you will be able to clear the tech interviews...In order to get
selected...you should have sound knowledge of 'C'

Some ques asked were:-


Rate ur self in C.....function to get central node of the linked list.....reversing the linked list...etc....
So, I'll meet you there.....

Bye,
Adarsh

LG Soft India Placement Paper and Sample Paper

Instructions:
1. Please ignore any case-sensitive errors and un-included libraries.
2. You may use the back of this question paper for any rough work.
1. main()
{
int i;
printf("%d", &i)+1;
scanf("%d", i)-1;
}

a. Runtime error.
b. Runtime error. Access violation.
c. Compile error. Illegal syntax
d. None of the above

2. main(int argc, char *argv[])


{
(main && argc) ? main(argc-1, NULL) : return 0;
}

a. Runtime error.
b. Compile error. Illegal syntax
c. Gets into Infinite loop
d. None of the above

3. main()
{
int i;
float *pf;
pf = (float *)&i;
*pf = 100.00;
printf("%d", i);
}

a. Runtime error.
b. 100
c. Some Integer not 100
d. None of the above

4. main()
{
int i = 0xff;
printf("%d", i<<2);
}
a. 4
b. 512
c. 1020
d. 1024

5. #define SQR(x) x * x
main()
{
printf("%d", 225/SQR(15));
}

a. 1
b. 225
c. 15
d. none of the above

6. union u
{
struct st
{
int i : 4;
int j : 4;
int k : 4;
int l;
}st;
int i;
}u;

main()
{
u.i = 100;

printf("%d, %d, %d",u.i, u.st.i, u.st.l);


}

a. 4, 4, 0
b. 0, 0, 0
c. 100, 4, 0
d. 40, 4, 0

7. union u
{
union u
{
int i;
int j;
}a[10];
int b[10];
}u;

main()
{
printf("%d", sizeof(u));
printf("%d", sizeof(u.a));
printf("%d", sizeof(u.a[0].i));
}
a. 4, 4, 0
b. 0, 0, 0
c. 100, 4, 0
d. 40, 4, 0

8. main()
{
int (*functable[2])(char *format, ...) ={printf, scanf};
int i = 100;

(*functable[0])("%d", i);
(*functable[1])("%d", i);
(*functable[1])("%d", i);
(*functable[0])("%d", &i);
}

a. 100, Runtime error.


b. 100, Random number, Random number, Random number.
c. Compile error
d. 100, Random number

9. main()
{
int i, j, *p;
i = 25;
j = 100;
p = &i; /* Address of i is assigned to pointer p */
printf("%f", i/(*p)); /* i is divided by pointer p */
}

a. Runtime error.
b. 1.00000
c. Compile error
d. 0.00000

10. main()
{
int i, j;
scanf("%d %d"+scanf("%d %d", &i, &j));
printf("%d %d", i, j);
}

a. Runtime error.
b. 0, 0
c. Compile error
d. the first two values entered by the user

11. main()
{
char *p = "hello world";
p[0] = 'H';
printf("%s", p);
}

a. Runtime error.
b. “Hello world” c. Compile error
d. “hello world”
12. main()
{
char * strA;
char * strB = “I am OK”; memcpy( strA, strB, 6);
}

a. Runtime error.
b. “I am OK” c. Compile error
d. “I am O”

13. How will you print % character?


a. printf(“\%”) b. printf(“\\%”) c. printf(“%%”) d. printf(“\%%”)

14. const int perplexed = 2;


#define perplexed 3
main()
{
#ifdef perplexed
#undef perplexed
#define perplexed 4
#endif
printf(“%d”,perplexed); }

a. 0
b. 2
c. 4
d. none of the above

15. struct Foo


{
char *pName;
};

main()
{
struct Foo *obj = malloc(sizeof(struct Foo));
strcpy(obj->pName,"Your Name");
printf("%s", obj->pName);
}

a. “Your Name” b. compile error


c. “Name” d. Runtime error

16. struct Foo


{
char *pName;
char *pAddress;
};
main()
{
struct Foo *obj = malloc(sizeof(struct Foo));
obj->pName = malloc(100);
obj->pAddress = malloc(100);
strcpy(obj->pName,"Your Name");
strcpy(obj->pAddress, "Your Address");
free(obj);
printf("%s", obj->pName);
printf("%s", obj->pAddress);
}

a. “Your Name”, “Your Address” b. “Your Address”, “Your Address” c. “Your Name” “Your
Name” d. None of the above

17. main()
{
char *a = "Hello ";
char *b = "World";
printf("%s", stract(a,b));
}

a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above

18. main()
{
char *a = "Hello ";
char *b = "World";
printf("%s", strcpy(a,b));
}

a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above

19. void func1(int (*a)[10])


{
printf("Ok it works");
}

void func2(int a[][10])


{
printf("Will this work?");
}

main()
{
int a[10][10];
func1(a);
func2(a);
}

a. “Ok it works” b. “Will this work?” c. “Ok it works Will this work?” d. None of the above

20. main()
{
printf("%d, %d", sizeof('c'), sizeof(100));
}

a. 2, 2
b. 2, 100
c. 4, 100
d. 4, 4

21. main()
{
int i = 100;
printf("%d", sizeof(sizeof(i)));
}
a. 2
b. 100
c. 4
d. none of the above

22. main()
{
int c = 5;
printf("%d", main|c);
}

a. 1
b. 5
c. 0
d. none of the above

23. main()
{
char c;
int i = 456;
c = i;
printf("%d", c);
}

a. 456
b. -456
c. random number
d. none of the above

24. oid main ()


{
int x = 10;
printf ("x = %d, y = %d", x,--x++);
}

a. 10, 10
b. 10, 9
c. 10, 11
d. none of the above
25. main()
{
int i =10, j = 20;
printf("%d, %d\n", j-- , --i);
printf("%d, %d\n", j++ , ++i);
}

a. 20, 10, 20, 10


b. 20, 9, 20, 10
c. 20, 9, 19, 10
d. 19, 9, 20, 10

26. main()
{
int x=5;
for(;x==0;x--) {
printf(“x=%d\n”, x--); }
}
a. 4, 3, 2, 1, 0
b. 1, 2, 3, 4, 5
c. 0, 1, 2, 3, 4
d. none of the above

27. main()
{
int x=5;
for(;x!=0;x--) {
printf(“x=%d\n”, x--); }
}
a. 5, 4, 3, 2,1
b. 4, 3, 2, 1, 0
c. 5, 3, 1
d. none of the above

28. main()
{
int x=5;
{
printf(“x=%d ”, x--); }
}
a. 5, 3, 1
b. 5, 2, 1,
c. 5, 3, 1, -1, 3
d. –3, -1, 1, 3, 5

29. main()
{
unsigned int bit=256;
printf(“%d”, bit); }
{
unsigned int bit=512;
printf(“%d”, bit); }
}

a. 256, 256
b. 512, 512
c. 256, 512
d. Compile error

30. main()
{
int i;
for(i=0;i<5;i++)
{
printf("%d\n", 1L << i);
}
}
a. 5, 4, 3, 2, 1
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 4, 8
d. 1, 2, 4, 8, 16

31. main()
{
signed int bit=512, i=5;

for(;i;i--)
{
printf("%d\n", bit = (bit >> (i - (i -1))));
}
}
512, 256, 128, 64, 32
b. 256, 128, 64, 32, 16
c. 128, 64, 32, 16, 8
d. 64, 32, 16, 8, 4

32. main()
{
signed int bit=512, i=5;

for(;i;i--)
{
printf("%d\n", bit >> (i - (i -1)));
}
}

a. 512, 256, 0, 0, 0
b. 256, 256, 0, 0, 0
c. 512, 512, 512, 512, 512
d. 256, 256, 256, 256, 256

33. main()
{
if (!(1&&0))
{
printf("OK I am done.");
}
else
{
printf(“OK I am gone.”); }
}

a. OK I am done
b. OK I am gone
c. compile error
d. none of the above

34. main()
{
if ((1||0) && (0||1))
{
printf("OK I am done.");
}
else
{
printf(“OK I am gone.”); }
}

a. OK I am done
b. OK I am gone
c. compile error
d. none of the above

35. main()
{
signed int bit=512, mBit;

{
mBit = ~bit;
bit = bit & ~bit ;

printf("%d %d", bit, mBit);


}
}

a. 0, 0
b. 0, 513
c. 512, 0
d. 0, -513

36. %^%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%
all ......................

Test pattern consists of four subjects.

The paper having 100 marks.

1) C - 42 marks(each question carries 3 or 2 marks on objective and descriptive)

2)Data Structures - 18 marks (only objective 2 or 3 marks)

3)Operating Systems - 30 marks (it consists objective and descriptive,some problems on


memory management)

4)Computer Networks-10 marks(both objective and descriptive)

The following questions are given below.

1)what is output for the following program.

#include<stdio.h>

main()

int *p,*q,i;

p=(int *)100;

q=(int *)200;

i=q-p;

printf("%d",i);

a)100 b)25 c)0 d)compile error


Ans : b) 25

2)what is output for the following program.

#include<stdio.h>

#define swap(a,b) temp=a,a=b,b=temp;

main()

int a=5,b=6;

int temp;

if(a>b)

swap(a,b);

printf("a=%d,b= %d",a,b);

a)a=5 b=6 b)a=6 b=5 c)a=0 b=6 d)None

Ans : a a=5 b=6

3)what is output for the following program.

#include<stdio.h>

main()

{
unsigned char i;

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

printf("*");

a)299 b)300 c)infinite d)none

ans: c (infinite)

4)what is output for the following program.

#include<stdio.h>

main()

int n=2;

int sum=5;

switch(n)

case 2:sum=sum-2;

case 3:sum*=5;

break;
default :sum=0;

printf("%d",sum);

a)15 b)0 c)6 d)none

ans: a (15)

5)/* what is the program indicates */

#include<stdio.h>

main()

char *q;

int *ip;

q=(char *)malloc(100);

ip=(int *)q;

free(ip);

a)it frees all allocated memory.

b)it frees 400 bytes of memory.

c)
d)segmentation fault.

Ans :

6)What is output for the following program.

#include<stdio.h>

main()

int a=10,b=5;

if(a=a&b)

b=a^b;

printf("a=%d,b=%d",a,b);

a)a=0,b=5 b)a=10 b=5 c)a=0,b=0 d)none

Ans: a a=0,b=5

7)What is output for the following program.

#include<stdio.h>

main()

int a[5],i,*ip;

for(i=0;i<5;i++)
a[i]=i;

ip=a;

printf("%d",*(ip+3*sizeof(int)));

a)0 b)5 c)1 d)none

Ans: d (none)

8)What is the size of the structure.

#include<stdio.h>

main()

struct

char a;

short b;

int c;

}temp;

a)7 b)8 c)12 d)120

ans:b

9) What is output for the following program.


#include<stdio.h>

main()

unsigned char c[]={0x1,0x2,0x3,0x4,0x11,0x22,0x33,0x44};

unsigned int *p=c;

unsigned short *s=c;

printf("%x %x %x",c[2],p[2],s[2]);

Ans: please execute this program.

10) What is the difference between these two declarations:

i) int *f()

ii) int (*f)()

a) b) c) d)

11) Define pointer to function that take argument as character pointer and return void
pointer.

Ans: void *(*f)(char *)

12) 5-2-3*5-2 evaluates 18 then

i) - left associative * has precedence over -


ii) - right associative * has precedence over -

iii) * left associative - has precedence over *

iv) * right associative - has precedence over *

a) i b)ii c) iii d)iv

Ans: iv

DataStructure questions:

1)Difference between re-entrance and recursion.

2)In which datastructure recursion can be used.

Ans: Stack.

3)Merge sort problem can be solved using which method.

Ans: Divide and conquer strategy.

4)8 queens problem can be solved by using which method.

Ans: Back tracking.

5,6) Two problems related to inorder and post order.

First answer was : + - * a b c d (In objective its answer was (d) )

Second answer was : inorder

Operating systems:

1)what are the necessary conditions for Deadlock


refer Galvin

Answer was : b&c

2)Two problems on memory management .

One answer was : 68.5 ns(average access time.)

3) what are the different types of IPC mechanisms.

Ans:

1)direct communication.(messages)

2)Indirect communication.(mail box)

3) Synchronous/Asynchronous communication.(Naming.)

4) Context switching.

Ans : A

5) Specify any 3 regarding the context of process?

Ans:

1)Process state.

2) Process Attribute.

3)Accounting Information.

4)See PCB (Process control Block) in Galvin Book.

6)Advantages and Disadvantages of cache buffer?

7)Increasing memory many page faults occur(I dont know Question exactly)?

Ans: FIFO

Computer Networks
1)What is the use of ICMP in TCP/IP stack?

2)What is the use of ARP in TCP/IP stack?

3)What is the header length of Ether Net MAC.

4)What is the mechanisms used for error detection in Data Link Layer?

Ans: CRC(cyclic redundency check.)

37.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
1. void main()
{
int d=5;
printf("%f",d);
}Ans: Undefined

2. void main()
{
int i;
for(i=1;i<4,i++)
switch(i)
case 1: printf("%d",i);break;
{
case 2:printf("%d",i);break;
case 3:printf("%d",i);break;
}
switch(i) case 4:printf("%d",i);
}Ans: 1,2,3,4

3. void main()
{
char *s="\12345s\n";
printf("%d",sizeof(s));
}Ans: 6
4. void main()
{
unsigned i=1; /* unsigned char k= -1 => k=255; */
signed j=-1; /* char k= -1 => k=65535 */
/* unsigned or signed int k= -1 =>k=65535 */
if(i<j)
printf("less");
else
if(i>j)
printf("greater");
else
if(i==j)
printf("equal");
}Ans: less

5. void main()
{
float j;
j=1000*1000;
printf("%f",j);
}

1. 1000000
2. Overflow
3. Error
4. None
Ans: 4

6. How do you declare an array of N pointers to functions returning pointers to functions


returning pointers to characters? Ans: The first part of this question can be
answered in at least three ways:

7. Build the declaration up incrementally, using typedefs:


typedef char *pc; /* pointer to char */
typedef pc fpc(); /* function returning pointer to char */
typedef fpc *pfpc; /* pointer to above */
typedef pfpc fpfpc(); /* function returning... */
typedef fpfpc *pfpfpc; /* pointer to... */
pfpfpc a[N]; /* array of... */

8. Use the cdecl program, which turns English into C and vice versa:
cdecl> declare a as array of pointer to function returning pointer to function
returning pointer to char char *(*(*a[])())()
cdecl can also explain complicated declarations, help with casts, and indicate which
set of parentheses the arguments go in (for complicated function definitions, like the
one above). Any good book on C should explain how to read these complicated C
declarations "inside out" to understand them ("declaration mimics use"). The pointer-
to-function declarations in the examples above have not included parameter type
information. When the parameters have complicated types, declarations can *really*
get messy. (Modern versions of cdecl can help here, too.)

9. A structure pointer is defined of the type time . With 3 fields min,sec hours having
pointers to intergers.
Write the way to initialize the 2nd element to 10.

10. In the above question an array of pointers is declared. Write the statement to initialize
the 3rd element of the 2 element to 10

11. int f()


void main()
{
f(1);
f(1,2);
f(1,2,3);
}
f(int i,int j,int k)
{
printf("%d %d %d",i,j,k);
}What are the number of syntax errors in the above?
Ans: None.

12. void main()


{
int i=7;
printf("%d",i++*i++);
}Ans: 56

13. #define one 0


#ifdef one
printf("one is defined ");
#ifndef one
printf("one is not defined ");
Ans: "one is defined"

14. void main()


{
intcount=10,*temp,sum=0;
temp=&count;
*temp=20;
temp=&sum;
*temp=count;
printf("%d %d %d ",count,*temp,sum);
}
Ans: 20 20 20

15. There was question in c working only on unix machine with pattern matching.
16. what is alloca() Ans : It allocates and frees memory after use/after getting out of
scope

17. main()
{
static i=3;
printf("%d",i--);
return i>0 ? main():0;
}
Ans: 321

18. char *foo()


{
char result[100]);
strcpy(result,"anything is good");
return(result);
}
void main()
{
char *j;
j=foo()
printf("%s",j);
}
Ans: anything is good.

19. void main()


{
char *s[]={ "dharma","hewlett-packard","siemens","ibm"};
char **p;
p=s;
printf("%s",++*p);
printf("%s",*p++);
printf("%s",++*p);
}Ans: "harma" (p->add(dharma) && (*p)->harma)
"harma" (after printing, p->add(hewlett-packard) &&(*p)->harma)
"ewlett-packard"

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%

Sample Technical Paper

1. Point out error, if any, in the following program


main()
{
int i=1;
switch(i)
{
case 1:
printf("\nRadioactive cats have 18 half-lives");
break;
case 1*2+4:
printf("\nBottle for rent -inquire within");
break;
}
}
Ans. No error. Constant expression like 1*2+4 are acceptable in cases of a
switch.
2. Point out the error, if any, in the following
program
main()
{
int a=10,b;
a>= 5 ? b=100 : b=200;
printf("\n%d",b);
}
Ans. lvalue required in function main(). The second assignment should be written in
parenthesis as follows:
a>= 5 ? b=100 : (b=200);
3. In the following code, in which order the functions would be called?
a= f1(23,14)*f2(12/4)+f3();
a) f1, f2, f3 b) f3, f2, f1
c) The order may vary from compiler to compiler d) None of the above
4. What would be the output of the following program?
main()
{
int i=4;
switch(i)
{
default:
printf("\n A mouse is an elephant built by the
Japanese");
case 1:
printf(" Breeding rabbits is a hair raising experience");
break;
case 2:
printf("\n Friction is a drag");
break;
case 3:
printf("\n If practice make perfect, then nobody's perfect");
}
}
a) A mouse is an elephant built by the Japanese b) Breeding rabbits is a hare raising
experience
c) All of the above d) None of the above
5. What is the output of the following program?
#define SQR(x) (x*x)
main()
{
int a,b=3;
a= SQR(b+2);
printf("%d",a);
}
a) 25 b) 11 c) error d) garbage value
6. In which line of the following, an error would be
reported?
1. #define CIRCUM(R) (3.14*R*R);
2. main()
3. {
4. float r=1.0,c;
5. c= CIRCUM(r);
6. printf("\n%f",c);
7. if(CIRCUM(r))==6.28)
8. printf("\nGobbledygook");
9. }
a) line 1 b) line 5 c) line 6 d) line 7
7. What is the type of the variable b in the following declaration?
#define FLOATPTR float*
FLOATPTR a,b;
a) float b) float pointer c) int d) int pointer
8. In the following code;
#include<stdio.h>
main()
{
FILE *fp;
fp= fopen("trial","r");
}
fp points to:
a) The first character in the file.
b) A structure which contains a "char" pointer which points to the first character in
the file.
c) The name of the file. d) None of the above.
9. We should not read after a write to a file without an intervening call to
fflush(), fseek() or rewind() < TRUE/FALSE>
Ans. True
10. If the program (myprog) is run from the command line as myprog 1 2 3 ,
What would be the output?
main(int argc, char *argv[])
{
int i;
for(i=0;i<argc;i++)
printf("%s",argv[i]);
}
a) 1 2 3 b) C:\MYPROG.EXE 1 2 3
c) MYP d) None of the above
11. If the following program (myprog) is run from the command line as myprog 1
2 3, What would be the output?
main(int argc, char *argv[])
{
int i,j=0;
for(i=0;i<argc;i++)
j=j+ atoi(argv[i]);
printf("%d",j);
}
a) 1 2 3 b) 6 c) error d) "123"
12. If the following program (myprog) is run from the command line as myprog
monday tuesday wednesday thursday,
What would be the output?
main(int argc, char *argv[])
{
while(--argc >0)
printf("%s",*++argv);
}
a) myprog monday tuesday wednesday thursday b) monday tuesday wednesday
thursday
c) myprog tuesday thursday d) None of the above
13. In the following code, is p2 an integer or an integer pointer?
typedef int* ptr
ptr p1,p2;
Ans. Integer pointer
14. Point out the error in the following program
main()
{
const int x;
x=128;
printf("%d",x);
}
Ans. x should have been initialized where it is declared.
15. What would be the output of the following program?
main()
{
int y=128;
const int x=y;
printf("%d",x);
}
a) 128 b) Garbage value c) Error d) 0
16. What is the difference between the following
declarations?
const char *s;
char const *s;
Ans. No difference
17. What would be the output of the following program?
main()
{
char near * near *ptr1;
char near * far *ptr2;
char near * huge *ptr3;
printf("%d %d %d",sizeof(ptr1),sizeof(ptr2),sizeof(ptr3));
}
a) 1 1 1 b) 1 2 4 c) 2 4 4 d) 4 4 4
18. If the following program (myprog) is run from the command line as myprog
friday tuesday sunday,
What would be the output?
main(int argc, char*argv[])
{
printf("%c",**++argv);
}
a) m b) f c) myprog d) friday
19. If the following program (myprog) is run from the command line as myprog
friday tuesday sunday,
What would be the
output?
main(int argc, char *argv[])
{
printf("%c",*++argv[1]);
}
a) r b) f c) m d) y
20. If the following program (myprog) is run from the command line as myprog
friday tuesday sunday,
What would be the output?
main(int argc, char *argv[])
{
while(sizeofargv)
printf("%s",argv[--sizeofargv]);
}
a) myprog friday tuesday sunday b) myprog friday tuesday
c) sunday tuesday friday myprog d) sunday tuesday friday
21. Point out the error in the following program
main()
{
int a=10;
void f();
a=f();
printf("\n%d",a);
}
void f()
{
printf("\nHi");
}
Ans. The program is trying to collect the value of a "void" function into an integer
variable.
22. In the following program how would you print 50 using p?
main()
{
int a[]={10, 20, 30, 40, 50};
char *p;
p= (char*) a;
}
Ans. printf("\n%d",*((int*)p+4));
23. Would the following program compile?
main()
{
int a=10,*j;
void *k;
j=k=&a;
j++;
k++;
printf("\n%u%u",j,k);
}
a) Yes b) No, the format is incorrect
c) No, the arithmetic operation is not permitted on void pointers
d) No, the arithmetic operation is not permitted on pointers
24. According to ANSI specifications which is the correct way of declaring main()
when it receives command line arguments?
a) main(int argc, char *argv[]) b) main(argc,argv) int argc; char *argv[];
c) main() {int argc; char *argv[]; } d) None of the above
25. What error would the following function give on compilation?
f(int a, int b)
{
int a;
a=20;
return a;
}
a) missing parenthesis in the return statement b) The function should be declared as
int f(int a, int b)
c) redeclaration of a d) None of the above
26. Point out the error in the following program
main()
{
const char *fun();
*fun()='A';
}
const char *fun()
{
return "Hello";
}
Ans. fun() returns to a "const char" pointer which cannot be modified
27. What would be the output of the following program?
main()
{
const int x=5;
int *ptrx;
ptrx=&x;
*ptrx=10;
printf("%d",x);
}
a) 5 b) 10 c) Error d) Garbage value
28. A switch statement cannot include
a) constants as arguments b) constant expression as
arguments
c) string as an argument d) None of the above
29. How long the following program will run?
main()
{
printf("\nSonata Software");
main();
}
a) infinite loop b) until the stack overflows
c) All of the above d) None of the above
30. On combining the following statements, you will get char*p; p=malloc(100);
a) char *p= malloc(100) b) p= (char*)malloc(100)
c) All of the above d) None of the above
31. What is the output of the following program?
main()
{
int n=5;
printf("\nn=%*d",n,n);
}
a) n=5 b) n=5 c) n= 5 d) error
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%555

i2 Technologies

Q1.Convert 0.9375 to binary


a) 0.0111
b) 0.1011
c) 0.1111
d) none
Ans. (c)

Q2.( 1a00 * 10b )/ 1010 = 100


a) a=0, b=0
b)a=0, b=1
c) none
Ans. (b)

Q3. In 32 bit memory machine 24 bits for mantissa and 8 bits for exponent. To increase the
range of floating point.
a) more than 32 bit is to be there.
b) increase 1 bit for mantissa and decrease 1 bit for exponent
c) increase 1 bit for exponent and decrease one bit for mantissa

Q4.In C, "X ? Y : Z " is equal to


a) if (X==0) Y ;else Z
b) if (X!=0) Y ;else Z
c) if (X==0) Y ; Z
Ans. (b)

Q5. From the following program


foo()
int foo(int a, int b)
{
if (a&b) return 1;
return 0;
}

a) if either a or b are zero returns always 0


b) if both a & b are non zero returns always 1
c) if both a and b are negative returns 0

Q6. The following function gives some error. What changes have to be made
void ( int a,int b)
{
int t; t=a; a=b; b=t;
}
a) define void as int and write return t
b) change everywhere a to *a and b to *b

Q7. Which of the following is incorrect


a) if a and b are defined as int arrays then (a==b) can never be true
b) parameters are passed to functions only by values
c) defining functions in nested loops

Q8. include<stdio.h>
void swap(int*,int*);
main()
{
int arr[8]={36,8,97,0,161,164,3,9}
for (int i=0; i<7; i++)
{
for (int j=i+1; j<8;j++)
if(arr[i]<arr[j]) swap(&arr[i],&arr[j]);
}
}
void swap(int*x,int*y)
{
int temp; static int cnt=0;
temp= *x;
*x=*y;
*y=temp;
cnt++;
}
What is cnt equal to

a) 7
b) 15
c) 1
d) none of these

Q9. int main()


{
FILE *fp;
fp=fopen("test.dat","w");
fprintf(fp,'hello\n");
fclose(fp);
fp=fopen ("test.dat","w");
fprintf (fp, "world");
fclose(fp);
return 0;
}

If text.dat file is already present after compiling and execution how many bytes does the file
occupy ?

a) 0 bytes
b) 5 bytes
c) 11 bytes
d) data is insufficient

Q10. f1(int*x,intflag)
int *y;
*y=*x+3;
switch(flag)
{
case 0:
*x=*y+1;
break;
case 1:
*x=*y;
break;
case 2:
*x=*y-1;
break;
}
return(*y)

main()
{
*x=5;
i=f1(x,0); j=f1(x,1);
printf("%d %d %d ",i,j,*x);
}

What is the output?

a) 8 8 8
b) 5 8 8
c) 8 5 8
d) none of these

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Sample Test Paper :Alter Engineering

1. int b=10;
int *p=&b;
*p++;
printf("%d",*p);
what is the output?

2. What is the difference between malloc, calloc and realloc?

3. What does malloc return in C and C++?

4. main()
{
char *a="hello";
char *b="bye";
char *c="hai";
int x=10,y=100;
c=(x<y>)?a:b;
printf("%s",c);
}
whats the output?

5. void main()
{
int a,b;
a=sumdig(123);
b=sumdig(123);
printf("%d %d",a,b);
}
int sumdig(int n)
{
static int sum;
int d;
if(n!=0)
{
d=n%10;
n=(n-d)/10;
sum=sum+d;
sumdig(n);
}
else
return s;
}
what is the output?

6. Declare a pointer to a function that takes a char pointer


as argument and returns a void pointer.

7. How do we open a binary file in Read/Write mode in C?

C++

8. class A
{
public:
A()
{
}
~A();
};
class derived:public A
{
derived();
};
what is wrong with this type of declaration?

9. what do you mean by exception handling?

10. What are "pure virtual" functions?

11. What is the difference between member functions and


static member functions?

12. What is the4 difference between delete[] and delete?

13. Question on Copy constructor.

14. What are namespaces?

15. One question on namespace.

16. What are pass by valu and pass by reference?


what is the disadvantage of pass by value?
I didnt get this. if you have the answer plz tell me.

17. How to invoke a C function using a C++ program?

18. char *str;


char *str1="Hello World";
sscanf(str1,"%s",str);
what is the output?

19. Difference between function overloading and function overriding.

20. There is a base class sub, with a member function fnsub(). There are
two classes super1 and super2 which are subclasses of the base class sub.
if and pointer object is created of the class sub which points to any
of the two classes super1 and super2, if fnsub() is called which one
will be inoked?

%%%%%%%%%%%%%%%%%%%%%%%%
DSQ PAPER

Techanical paper

Questions 1 -5 are reference to the followig psedo code


{
input m,n,z
TEST:if ((m+n)/3&gt;5)z=z+1 else z =z-1
printf m,n,z
{
(m-m+1;n=n-3)
if (m+n+2)&gt;14 then goto test
print m,n,z
end
}
1. what is the final output of the if the input is 2,14,12 (m,n,z)
a)1,8,4 b)1,4,8 c)4,8,1 d)8,4,2
ans=C.

2. what is the final output if the input is 1,18,2? (m,n,z)


ans) 5,6,2 i.e ans =c.
3. How many times is TEST execute ed if the input is 2,14,1?
ans) twice ans=c.

4) How many times the TEST exected if the input is 1,18,2?


ans)four times
5) what are the values taken by Z when input being 8,24,1?
a)only 5 b)only 6 c)neither 5 or 6 d)both 5 and 6
ans)D.

6) the function f(x) is defined as follows


if x=0 then f(x) =1
if x&gt;0 then if ((x&gt;10)then f(x) =x-10 else f(x) =x+1))
if x&lt;0 then if (x**2 &lt;100) then f(x) =f(-x+1) else f(x) =f(-(x+1))
6) the above of f(2) +f(-3) is
ans=8.
7) the value of f(8)+f(9) is
ans=20
8) the value of f(1)+f(2)+f(3).............+f(10) is
ans=65
9) the value of f(-10)+f(-9)+f(-8) is
a) 33 b)25 c)-27 d)27

11. 1997 haeadecimal is


a)7cb b)7cd c)7cf d)7ca
ans-c

12. the remainder when 9FA (hexa) is divided by 8 is added to the


12(to base ten) to get x.then x has the binary opertion
ans=1110

13. the remainder when 1221 (in hexa) is diveded by 17(decimal) in (hexa)is
ans=0
14. The binary number 100010011 will the hexa representation
ans=113

15. The binary number 10011001 will the octal representation


ans=463

16 Find the odd man out


16 a) Intel b)motorola c)nec d)Ibm
ans =nec

17. a)BIt b)byte c)nibble d)field


ans= field

18 a)Tree b)Root c)Log d)leaf


ans=log
19. a)ROM b)PROM c)EPROM d)EEPROM
ans=ROM
20. a)MOVE b)DEL c)COPY d)REN
ans=DEL
21. What's the output of the following program
main()
{
int z=3;
printf(&quot;%d %d &quot;,z,main());
}
a)prints a value 3 b)prints junk value c)error message d)infinite loop

22) main()
{
int i=3,j=5;
while (i--,J--)
{
printf(&quot;%d %d&quot;.i,j);
}
}
The loop will be executed
a)3 times b)5times c)8times d)infinite times

23) main()
{
int i=3,j=5
If(i--,j--)
printf(&quot;%d %d &quot;,i,j);
}
The output of the program for (i,J)is
a)3,5 b)3,4 c)2,4 d)2,5
ans=B

24) main()
{
int i=3
printf (&quot;%d %d %d &quot;,++i,i-,i+=5);
}
The the out put of the program is
a)8,8,8 b)4,3,8 c)3,2,7 d)4,4,9
ans=B

25) main()
{
int times =5;
int i=3;
int j=4;
int k=34;
i=j+k;
while(times --)
{
i=times
j=times
k=times
}
printf(&quot;%d %d %d &quot; ,i,j,k)
}
THe output of the praogram is (i,j,k)
a)19,9,35 b)38,42,80 c)43,47,85 d)15,14,41
ans=C
26) main()
{
int num =32765;
while (num++);
printf(&quot; %d &quot;,num)
}
what&quot;s the out put ofthe program
a)prints all the number above 32765 including the number 32765
b)prints all the number above 32765 excluding the number 32765
ans=B.

27) main()
{
float k=3.4156
printf(&quot;%f %f &quot;,float(k),c(k))
}
The output of the program
a) 3.4156 ,3.4156 b)4,5 c)3,4 d)3.45 3.40
ans=C.

28) main()
{
int bounce =4;
printf (&quot;total number of bounce =%d&quot;,bounce ++);
}
The out put of the program is
ans=D (stoP)

29) main()
{
int number =25;
char name ='A'
printf(&quot;The addition of the name and the number is %o &quot;name +_number)
}
the output of the program is
a)compiler error
b)run time error
ans= A

30)

31) ODBC means


ans= open data base connectivity
32) ASCII stands for
ans= american standard for information interchange
33)
34) flops stands for
ans)floating point operation per second
35) by superconductivity
ans)
36) PERT stands for
Program evalution and review techniq
37) IMS is a
ans) data base system
38) HTML is a
ans) Hyper text markup language
39) The default backend of visual basic is
ans)sybase
40) Client server is based on
ans) distribution processing

44) computer viruses can spread from one system to anther by means of
a) infected disks b)links to a network
c)downloaded program from a bulletin boardd)all of the program
ans)D
45) A front end processor is usually used in
ans=multi processing.
46) A radio active material of mass 16gms loses in 10 years due to
radiation.How many more years will take for the material to attain a
mass of of 1gm ?
ans=80 years
47) A block of ice floats on water in a beaker as the melts the water
level n the beaker will remain the same
ans=Remains same.
48) if va,vn,vs are velocities of sound in a air ,water ,and steel then
ans)vs&gt;vn&gt;va
49) in usual computer arthimetic the value of the integer expression
22/5*2+8*2/6
ans= 8.
50) an operting system is a
a)file manager b)memory manager
c)i/o manager d)all of the above
ans=D.

1.How many liters of water must be added to 30 liters of alcohol to make a


solution thatis 25%
ans:120
2.How much is 3/7 larger than 20 percent of 2
ans;1/35
3.xyz=120,then which of the following cannot be a value of y
ans:0
4.a number of subsets of a set s is 128, then s has
ans:7
5. xsqrt(0.09)=3 , then x equals
ans:
6.perimeter of rectangle is s and the other sideis x, then the other side
ans:(s-2x)/2
7.solution of system of equations y-z=0,x+8y=4,3x+4y=7z is
ans:x=1,y=1,z=1

15. f(x,y) =x**2 -y**2 then the value of f(4,(f(1,2) is


ans =7.
16. if the radius of the circle is incresed by 6% then its area incresed
by
ans=36%
17. the average of seven numbers is 2.5 then their product
asn=17.5
18. the minimum of (2x+1)**2 + (x+2) is at x =
ans = (-4/5)
19. the probability of getting at least in a single through of three
coins is
ans=7/8.
20. atrain covers the distance D beteween two cities in hhours arriving
2 hours late.what rate would permit to train to arrive on schdule?
ans= (D/H-2)
21. in a single throw of dice ,the chance of throwing a total of 3 is
ans) 1/216.
22. a triangle of sides 3,4,5 then its----is
ans:6
23. Which of the following is next smaller invalue than--- one half
ans:2/5
24. if f(x)=1/x then f(f(f(x))) equals
ans:1/x
25. if f(x)=1/x**2 , then f(f(f(x)))
ans:1/x
26.if 8x+4y=6 and 4x+5y=7, x+y equl\als
ans:1
27. find the next number in the series 1,2,5,10,17,26
ans:37
28,.sqrt(0.16)+cubic root(0.027) equals
ans:0.7
29.if a,b&gt;0 and a+b=2 then the max value of ab is
ans:1

30. p and q are positiveintegers with their average 5, find how many
different values can p take
ans:9
31. if 0&lt;x&lt;1 which of the following is the largest
ans:1/x
33. If x,y,z are three consecutive natural numbers, which of the following
numbers should be x+y+z
ans:2/3
34. two persons run a race of 100m. the winner won by (110/11)m and one
second in time. find the speed of lsoer in met
ans:9.09
35. in a group of 15,7 can speak spanish, 8 can speak french and 3 can
speak neither,. how much of the group can speak both french and spanish
ans:1/5
36. which of the following intefgers is the square of an integer for every integer
ans:a**2+2n+1
37. which of the following has the largest numberical value
ans:0.2/0.000001
38. ifn is odd which of the following statements is true
ans: 3n+1 is even
39. which of the following is the prime
ans:80
%%%%%%%%%%%%%%%%%5
NCR Placement Paper and Sample Paper
The pattern for the company NCR Teradata in HYD.

The exam was of 1:45 and consisted of C,C++,DataStructures, total 4(5 Marks)... but I
couldn't get thru....

Note that the code or the values may not be correct.... Just get the concept.

Predict the o/p... each 1 mark

1.
static int i;
{
i=10;
...
}
printf("%d",i);
Ans: 10

2.
#define func1(a) #a
#define func2(a,b,c) a##b##c
printf("%s",func1(func2(a,b,c)))
Ans: func2(a,b,c)

3.
const int* ptr;
int* ptr1;
int a=10;
const int p=20;
ptr=a;
ptr1=p;

4.
class a
virtual disp()
{ printf("In a");}
class b:public a
disp()
{ printf("In b");}
class c:public a
disp()
{ printf("In c");}
main()
{
a obj;
b objb;
c objc;
a=objb;
a.disp();
a=objc;
a.disp();
Ans: "In a" "In a"

5.
a="str";
char *b="new str";
char *temp;
malloc(sizeof(temp)+1,....
strcpy(a,temp);
malloc(sizeof(b)+1,....
strcpy(temp,b);

6.
int m,i=1,j=0,k=-1;
m=k++||j++&&i++;
printf("%d...",m,i,j,k);

7.
class x
{
double b;
double *l;
float &c;
}
main()
{
double g=10.34;
double *f=1.3;
float k=9;
x o;
o.b=g;
o.l=f;
o.c=k;
}

Ans: Compiler Error

Write C/C++ code for following:

For all the probs, u will have decide on wht DS to use.... and u'r program must be
efficient...explain in detail... (5 Marks)

1. Find the Kth smallest element in a Binary Tree. (5 Marks)

2. Each worker does a job and is given a rating +ve,-ve or Zero.

Find the MaxSubSequenceSum for given no. of workers.

Ex: Workers=6; Ratings={1,0,-1,4,5,-3}

MaxSubSequenceSum=4+5=9 (5 Marks)

3. 1 to N ppl sitting in a circle. Each one passes a hot potato to the next person. After M
passes the person holding the potato is eliminated. The last person remaining is winner. Find
winner for given N,M.

Ex: N=5, M=2, Winner=4 (5 Marks)

4. Reverse a given Linked List. (5 Marks)

5. There is a file called KnowledgeBase.txt which contains some words. Given a sub-string u
have to find all the words which match the word in the file.

Ex: file contains a, ant, and, dog, pen.

If I give "an" I should get o/p as "ant, and" (10 Marks)

6. Company employee have id,level,no. of sub-ordinates under him...

If a emp leaves then his sub-ordinates are assigned to any of the emp's seniors...
Write four functions:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%
MOTOROLA PSGTECH 2003
There were basically 3 papers -software ,DSP, Semiconductor software paper (20 questions 45
minutes) concentrate more on data structures 10 questions from data structures and 10 from
C++ and data structures10 questions were in the fill in the blank format and 10 questions
were multiple choice questions.
1. bubble sorting is
a)two stage sorting
b).....
c)....
d)none of the above

2. .c++ supports
a) pass by value only
b) pass by name
c) pass by pointer
d) pass by value and by reference

3. .Selection sort for a sequence of N elements


no of comparisons = _________
no of exchanges = ____________

4. Insertion sort
no of comparisons = _________
no of exchanges = ____________

5. what is a language?
a) set of alphabets
b)set of strings formed from alphabets
c)............
d)none of the above

6. Which is true abt heap sort


a)two method sort
b)has complexity of O(N2)
c)complexity of O(N3)
d)..........

7. In binary tree which of the following is true


a)binary tree with even nodes is balanced
b)every binary tree has a balance tree
c)every binary tree cant be balanced
d)binary tree with odd no of nodes can always be balanced

8. Which of the following is not conducive for linked list implementation of array
a)binary search
b)sequential search
c)selection sort
d)bubble sort

9. In c++ ,casting in C is upgraded as


a)dynamic_cast
b)static_cast
c)const_cast
d)reintrepret_cast

10. Which of the following is true abt AOV(Active On Vertex trees)


a)it is an undirected graph with vertex representing activities and edges representing
precedence relations
b)it is an directed graph "" "" """ "" "" "" "" "" "
c)........
d).......

11. Question on worst and best case of sequential search

12. question on breadth first search

13. char *p="abcdefghijklmno"


then printf("%s",5[p]);

14. what is the error


struct { int item; int x;}
main(){ int y=4; return y;}
error:absence of semicolon

15. Which of the following is false regarding protected members


a)can be accessed by friend functions of the child
b) can be accessed by friends of child's child
c)usually unacccessible by friends of class
d) child has the ability to convert child ptr to base ptr

16. What is the output of the following


void main()
{
int a=5,b=10;
int &ref1=a,&ref2=b;
ref1=ref2;
++ ref1;
++ ref2;
cout<<a<<b<<endl;
} value of a and b
a)5 and 12
b)7 and 10
c)11 and 11
d)none of the above

17. What does this return


f(int n)
{
return n<1?0:n==1?1:f(n-1)+f(n-2)
}
hint:this is to generate fibonacci series
code for finding out whether a string is a palindrome,reversal of linked list, recursive
computation of factorial with
blanks in the case of some variables.we have to fill it out

18. for eg; for palindrome


palindrome(char * inputstring)
{
int len=strlen ( ?);
int start= ?;
end =inputstring + ?-?;
for(; ?<end && ?==?;++ ?,--?);
return(?==?); }
we have to replace the question marks(?) with corresponding variables

19. .linked list reversal


Linked (Link *h)
{
Link *temp,*r=0,*y=h;
while(y!= ?) (ans:Null)
{
temp = ?;(ans:y->next)
some code here with similar fill in type
}

20. fill in the blanks type question involving recursive factorial computation

%%%%%%%%%%%%%%%%%%%%%%%%

Ramco

Directions: Each of the following question has a question and two statements labelled as (i)
and (ii). Use the data/information given in (i) and (ii) to decide whether the data are sufficient
to answer the question record your answer as

A) If you can get the answer from (1)alone but not from (2)
B) If you can get the answer from (2)alone but not from (1)
C) If can get the answer from (1)and (2)together ,although neither statement by itself suffice
D) If statement (1)alone suffices and statement (2) alone also suffice.
E) If can't get the answer from statements (1) and (2) together and you need more data.
1. What will be the population of city X in 1991?
1) Population of the city has 55% annual growth rate
2) in 1991,the population of city X was 8 million
Ans:C
2. Was it Rani's birthday yesterday?
1)Lata spends Rs.100 on Rani's birthday
2)Lata spent Rs.100 yesterdayAns: E
3. Is 3*5 or is 4*6 greater ?
1) a*b =b*a
2) a*b is the remainder of ab%(a+b)
Ans:B
4. Will the graph X-Y pass through the origin?
1) x proportional to the Y
2)increment in y per units rise of x is fixed.
Ans:E

5. What was the value of the machine 2 years ago?

1) the deprecition of the value of the machine per year is 10%


2)present value of the machine is rs 8000/

Ans:C

6. What will be the area of a square that can be inscribed in a circle?


1) Radius of the circle is T
2) Length of a diagonal of the square is 2r
Ans:D
7. There are two figures viz., a circle and a square. Which having greater area?
1) Perimeter of the circle is the same as the perimeter of the square.
2) Eleven times the radius is equal to seven times the length of one side of the square.
Ans: D
8. A candidate who was found to be under weightin medical test had been selected
provisionally subject to his attainment of 60Kg weight within one year. What should be
the percentage increase of his weightso that selection is confirmed after one year.
1) Weight (Kg)=16+8 Height (ft) is standard equation for the Indian population. The
candidates height is 5.5
2) His present weight is 55Kg.
Ans: D
9. Is angle µ=90
1) sin**2(µ)+cos**2(µ)=1
2) sin**2(µ)-+cos**2(µ)=1
Ans: E
10. What will be the average age of workers of an Institution after two years?
1) Present average age is 35 years
2) There are total 20 workers in the Institution
Ans: A
11. Is AB>AM ( A Triangle is given )
1) AB<AC
2) M is any point other than B and C on BC
Ans: E
12. Is X^2+Y^2<X+Y?
1) 0<X<1
2) 0<Y<1 and X!=Y (X not equal to Y)
Ans: C
13. Can it be concluded that angle ABO = angle ODC
1) ABCD is a Parallelogram and O is the point of intersection of the diagonals.
2) Angle DOC =75deg. and angle DAO =35deg.
Ans: A
14. What is the value of x+y?
1) 2y=x+6
2) 5x=10y-30
Ans: E
15. How many students are there in the class?
1) 30 students play foot ball and 40 play cricket .
2)Each student plays either foot ball or cricket or both.
Ans: E
16. What is the value of a:b?
1) a=x+10%ofx
2) b=a+10%ofa
Ans: B
17. What is the maximum value of the expression 5+8x-8x^2?
1) x is real
2) x is not positive
Ans: C
18. What will be the value of the greatest angle of the triangle ABC?
1) Angles of the triangle are in the ration 2:5:3
2) The side opposite to the greatest angle is the longest side.
Ans: A
19. What is the range of values of x?
1)( x-2 ) / ( 2x + 5 ) < 1/3
2)2x /3 + 17/3 > 3x - 20
Ans: D

20. Of the two which one is the greater -- -3/x , -3/y?


1) x,y>0 <![endif]>

Technical Questions

21. Find the output for the following C program

main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
Ans. An empty string

22. Find the output for the following C program


main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Ans. 57 94

23. 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
24. Find the output for the following C program
#define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
{
int x=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

25. 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

26. 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'


27. 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
28. 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

29. 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

30. 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

31. Find the output for the following C program

main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
Ans. 11 16

32. Find the output for the following C programmain()


{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("Ramco Systems\n");
}
Ans. Ony one time "Ramco Systems" will be printed

33. 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;
}

34. Find the output for the following C program


#include<stdio.h>
void main(void);
int printf(const char*,...);
void main(void)
{
int i=100,j=10,k=20;
-- int sum;
float ave;
char myformat[]="ave=%.2f";
sum=i+j+k;
ave=sum/3.0;
printf(myformat,ave);
}

35. Find the output for the following C program


#include<stdio.h>
void main(void);
{
int a[10];
printf("%d",((a+9) + (a+1)));
}
36. 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);
}
37. 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");
}
}
38. 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);
}
39. 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]);
}
40. 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);
}
41. Find the output for the following C program
#include<stdio.h>
void main(void)
{
int y,z;
int x=y=z=10;
int f=x;
float ans=0.0;
f *=x*y;
ans=x/3.0+y/3;
printf("%d %.2f",f,ans);
}
42. Find the output for the following C program
#include<stdio.h>
void main(void);
{
double dbl=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);
}
43. 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--);
}

44. Find the output for the following C program


#include<stdio.h>
void main(void)
{
int oldvar=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;
}

45. Find the output for the following C program


#include<stdio.h>
void main(void);
{
int i=100,j=20;
i++=j;
i*=j;
printf("%d\t%d\n",i,j);
}

46. 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++);
}
47. 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);
48. 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);
}
49. Find the output for the following C program
#include<stdio.h>
void main(void);
void print(void);
{
print();
}
void f1(void)
{
printf("\nf1():");
}
50. 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().");
}
51. 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--);
}
52. 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);
}

53. 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);
}

%%%%%%%%%%%%%%%%

Sample Question Paper

1. Which of the following best explains life cycle of Defect ?

a) Defect Found -> Defect Logged -> Defect Debugged -> Defect Closed -> Defect Rechecked

b) Defect Found -> Defect Debugged -> Defect Reported -> Defect Rechecked -> DefectClosed

c) Defect Debugged -> Defect Found -> Defect Closed -> Defect Reported -> DefectRechecked

d) Defect Found -> Defect Logged -> Defect Debugged -> Defect Rechecked -> Defect Closed

2. Which group does Winrunner ,Load Runner ,SQA Suite fall under ?

a) Databases

b) Automated Test Tools

c) Operating Systems

d) Rapid Application Development Tool

3. i = 0;

j = 0;

for(j=1;j<10;j++)

i=i+1;
In the (generic) code segment above what will be the value of the variable i at completion ?

a) 0

b) 1

c) 3

d) 9

4. Which of the following statements is true when a derivation inherits both a virtual and non-virtual
instance of a base class ?

a) Each derived class object has base objects only from the non virtual instance

b) Each base class object has derived objects only from the non-virtual instance

c) Each derived class object has base objects only from the virtual instance

d) Each derived class object has a base object from the virtual instance and a base object from
non-virtual instance.

5. class Word

public:

Word(const char*,int = 0);

};

Referring to the sample code above what is the minimum number of arguments required to call
the constructor ?

a) 0

b) 1

c) 2

d) 3

6. Which one of the following represents a correct and safe declaration of NULL ?

a) typedef((void *)0) NULL;

b) typedef NULL(char *)0;

c) #define NULL((void *)0)

d) #define NULL((char*)0)

7. #include <iostraem>

Referring to the sample code above ,which of the following could you use to make the standars
I/O Stream classes accessible without requiring the scope resolution operator ?

a) using namespace std::iostream

b) using namespace std;

c) using namespace iostream ;


d) using iostream;

8. Which one of the following statements allocates enough space to hold an array of 10 integers
that are initialized to 0 ?

a) int *ptr = (int *) calloc(10,sizeof(int));

b) int *ptr = (int *) alloc( 10*sizeof(int));

c) int *ptr = (int *) malloc( 10*sizeof(int));

d) int *ptr = (int *)calloc(10*sizeof(int));

9. What function will read a specified number of elements from a file ?

a) fread()

b) readfile()

c) fileread()

d) gets()

10. What is the largest value an integer can hold in a Standard C compiler ?

a) 32767

b) 65536

c) 2147483647

d) INT_MAX

11. With every use of memory allocation function should be used to release allocated memory which
is no longer needed ?

a) dropmem()

b) dealloc()

c) release()

d) free()

12. int a=1;

int ab=4;

int main()

int b=3,a=2;

printf("%i*/%i*/%*/i",a,b,ab);

13. kernal execute the first process when system is start---

ans :- init();
14. process id of kernal

(a) 1

(b) 0

(c) 2

(d) none

15. Which one of the following represents a correct and safe declaration of NULL ?

a) typedef((void *)0) NULL;

b) typedef NULL(char *)0;

c) #define NULL((void *)0)

d) #define NULL((char*)0)

16. Which one of the following statements allocates enough space to hold an array of 10 integers
that are initialized to 0 ?

a) int *ptr = (int *) calloc(10,sizeof(int));

b) int *ptr = (int *) alloc( 10*sizeof(int));

c) int *ptr = (int *) malloc( 10*sizeof(int));

d) int *ptr = (int *)calloc(10*sizeof(int));.

After written ,group discussion and interview will be there

Topics for group discussion:

1. Is IT sector made a difference to rural India.


2. Does the world need army?

3. are there stars in the sky?

4. capital punishment should be avoided .

5. Is India really shining ?

%%%%%%%%%%%%%%%%
MODE: CAMPUS
COLLEGE: Government Engineering College, Aurangabad
RECRUITMENT FOR: Development/Testing
The test consisted of a 1hr technical objective
questions and 1hr ,Programming test. Tech. Qs
There were six sections and each consist of 5qs.

A. Computer Algorithms
1. Time Complexity
2. Which of the following cannot be implemented
efficiently in Linear Linked
List
1. Quicksort
2. Radix Sort
3. Polynomials
4. Insertion Sort
5. Binary Search
3. In binary search tree , n=nodes, h=height of tree.
What's complexity?
1. o(h)
2. o(n*h)
3. o(nLogn)
4. o(n*n)
5. None
4.
5.

B. C Programs
1. Printf("%d%d",i++,i++);
1. Compiler Dependent
2. 4 4
3. 4 3
4. 3 4
5. None of Above
2. void main()
{
printf("persistent");
main();
}
1. Till stack overflows
2. Infinite
3. 65535
4. 34423
5. None
3. Swapping
4. what does it do?
void f(int n)
{
if(n>0)
{
if(A[i]>A[j])
swap();
}
else
f(n-1);
}
1. Swap
2. Sort in Ascending order
3. Sort in Descending order
4. Computes permutation
5.
5. Given a Fibonacci function
f1=1;f2=1
fn=f(n-1)+f(n-2) which of the following is true?
1. Every Second element is even
2. Every third element is odd
3. The series increases monotonally
4. For n>2, fn=ceiling(1.6 * f(n-1))
5. None

C. Operating System
1. Where the root dir should be located
1. Anywhere on System disk
2. Anywhere on Disk'
3. In Main memory
4. At a fixed location on Disk
5. At fixed location on System Disk
2. Problem on Concurrency
3. Problem on Round Robin Algorithm
4.
5.
D. General
1. If x is odd, in which of the following y must be
even
1. X+Y=5
2. 2(X+Y)=7
3. 2X + Y =6
4. X+2Y=7
5.
2. 1000! How many digits? What is the most significant
and Least significant

digit
3.
4.
5.
E. Theory
1. If a production is given
S -> 1S1
0S0
00
11
Then which of the following is invalid
1. 00101010100
2.
3.
4.
5.
2. Context free grammar cannot recognize
1. if-then-else
2. var
3. loops
4. syntax
5. None
3.
4.
5.

F. DBMS
1. If table A has m rows and table B has n rows then
how many rows will the
following query return
SELECT A.A1,B.B1
FROM A,B
WHERE A.A3=B.B3
1. <=(m*n)
2. m*n
3. <=(m+n)
4. >=(m+n) and <=(m*n)
5. m+n
2. A Query optimizer optimizes according to which of
the following criteria
1. Execution time
2. Disk access
3. CPU usage
4. Communication time
5. None
3. Which of the following is not a characteristic of a
transaction
1. Atomicity
2. Consistency
3. Normalization
4. Isolation
5. Durability
4. The def. of Foreign key is there to support
1. Referential integrity
2. Constraint
3.
4.
5. None
5. Problem
Process A Process B
WRITELOCK(X) WRITELOCK(Y)
READ(X) READ(Y)
... ...
1. The problem is serializable
2. The problem is not serializable
3. It can be run in parallel
4.
5. None
PROGRAMMING SECTION (This consisted of Two programs to be solved in 1 hour.)
A sparse matrix is a matrix in which a node with val=0 is not represented. The whole matrix is
represented by a Linked list where node typedef struct Node
{
int row;
int col;
int value;
sparsematrix next;
} Element, *sparsematrix;
The problem is, if there are two matrix given suppose m1 and m2, then add them and return the
resultant sparsematrix.
If suppose there are N functions say from 0,1,2,... N-1 and it's given that A[i][j]=1 if the function i
contains a call to
func. j otherwise A[i][j]=0, then write a function that will form groups of related functions and print
them line by line and at the end print the number of total groups
%%%%%%%%%%%%%%%%%%
Elico Questions

*16 ppl can do a work in 3 hrs?, how much time vil 5 ppl take?

* 185 miles. travelled in bus for 2 hrs a dist of 85. in how much time, he need to travel the ramaining 100
miles, if he need to get an average of 50 miles per hr.

*efface=? : similer word

* a 6 mtrs wide road is laid around a garden. rad area is 564sq mtsr. if the length of the garden is 20
mtrs?, wat is the width of it.

*Woman said pointing to a guy " his mother is the only daughter of my mother"

* a 2 digit no, the diff of its digits is one twelth of it. Find sum of the 2 digits
-data insufficient
-6
-8
-10
-none

Cpp

* #include
main()
{
int x=20, t;
&t=x;
x=50;
cout<<x<<" "<<t;
}
o/p?

50 20
t

-----
*include<iostream.h>

int sum(int a, int b=5, int c=10);

main()
{
cout<<sum(5)<<endl<<sum(10,5)<<endl<<sum(5,10,10);
}

int sum(int a, int b, int c)


{ return a+b+c;}

ans?
20 25 25

------
* #include
main()
{
int x=20, &t;
&t=x;
int &tt;
cout<<x<<" "<<t;
}
o/p?

compile time error, as all references must b initialisded.


------

what vil deleter operator vill do?


- invoke delete operator, n then destructor
- search if any destructor, n then invoke delete operasor
.....
-------
What vil new operator vil do?

-invoke comnstructor, then new operator, then do typecasting


-invoke new operator and then constructor
-invoke constructor n do typecast
....
------
which is violating data encapsulation?
-friend
-public
-private
-protected
-virtual
-------
Friend fns are useful but r controversy bcoz,
-they violate data encapsulation
-they access private fdata of a class
-both
-none of the above
-------
which of the following is true?
//there are 4/5 q's in these format.

-a const member can't b changed


...........
-------

which of the following is false? in case of destructors, constructors


............
-------

what key word is used to off overload.


- extern "C"
-register "C"
-static "C"
-off "C"

------
A,B,C,D,E,F are 6 members, facing the center of a circle.

A is btn B , E
C btn D, f
E is immediate right to D

q's on it
%%%%%%%%%%%%%%%%%%%
TRIAD

mostly triad is only for mech guys only

TRIAD PAPER

C - language:

1. write a program to calculate ncr

2. write a program to exchange the values of two variables


using
pointers

3. write program to open one file input some numbers and find
smallest,largest, avg. and store them in another file.

4. write a structure node using linked list

5. write a program to reverse a string


co-ordinate geometry

1. find the perpendicular distance from a point P(a,b) to a


line lx+my+n=0;

2. y=x^3+2x^2+5x+2 find the slope of this eqn when x=12;

( Hint :find dy/dx and substitute x=12)

3. circle is x^2+y^2=a^2 . if the centre is shifted to (25,16)


what
is the eqn of new cirlce.
4. pt rotation P(x,y) about origin in anticlockwise direction
by an
angle theta. find new coordinates.
before this there will be some question on puzzles(gre
barrons).

prepare co-ordinate geometry and fundamental of c.

regarding interview :

1.they will ask whether u r interseted to go


aborad,

ans:say no, not interested.

2. tell some project works that r done and or


going
to
be do in c , c++,

3. personal interview.

4. be perfect in c, they r asking that how u done


this
in test paper.

5.they ask u do be agree to the company bond. bond


is
for 3 years , breaking is at cost of 50,000.

apptitude ;

some puzzles r given around 9, study well it is


easy,
for it they provide 20 min00110

%%%%%%%%%%%%%%%%
Mistral Solutions

C Section

1. What does the following program print?


#include <stio.h>
int sum,count;
void main(void)
{< BR> for(count=5;sum+=--count;)
printf("%d",sum);
}
a. The pgm goes to an infinite loop b. Prints 4791010974 c. Prints 4791001974
d. Prints 5802112085 e. Not sure

2. What is the output of the following program?


#include <stdio.h>
void main(void)
{
int i;< BR> for(i=2;i<=7;i++)
printf("%5d",fno());
}
fno()
{
staticintf1=1,f2=1,f3;
return(f3=f1+f2,f1=f2,f2=f3);
}
a. produce syntax errors b. 2 3 5 8 13 21 will be displayed c. 2 2 2 2 2 2 will be displayed
d. none of the above e. Not sure

3. What is the output of the following program?


#include <stdio.h>
void main (void)
{
int x = 0x1234;
int y = 0x5678;
x = x & 0x5678;
y = y | 0x1234;
x = x^y;
printf("%x\t",x);
x = x | 0x5678;
y = y & 0x1234;
y = y^x;
printf("%x\t",y);
}
a. bbb3 bbb7 b. bbb7 bbb3 c. 444c 4448
d. 4448 444c e. Not sure

4. What does the following program print?


#include <stdio.h>
void main (void)
{
int x;
x = 0;
if (x=0)
printf ("Value of x is 0");
else
printf ("Value of x is not 0");
}
a. print value of x is 0 b. print value of x is not 0 c. does not print anything on the screen
d. there is a syntax error in the if statement e. Not sure

5. What is the output of the following program?


#include <stdio.h>
#include <string.h>
int foo(char *);
void main (void)
{
char arr[100] = {"Welcome to Mistral"};
foo (arr);
}
foo (char *x)
{
printf ("%d\t",strlen (x));
printf ("%d\t",sizeof(x));
return0;
}
a. 100 100 b. 18 100 c. 18 18 d. 18 2 e. Not sure

6. What is the output of the following program?


#include <stdio.h>
display()
{
printf ("\n Hello World");
return 0;
}
void main (void)
{
int (* func_ptr) ();
func_ptr = display;
printf ("\n %u",func_ptr);
(* func_ptr) ();
}
a. it prints the address of the function display and prints Hello World on the screen
b. it prints Hello World two times on the screen
c. it prints only the address of the fuction display on the screen
d. there is an error in the program e. Not sure

7. What is the output of the following program?


#include <stdio.h>
void main (void)
{
int i = 0;
char ch = 'A';
do
putchar (ch);
while(i++ < 5 || ++ch <= 'F');
}
a. ABCDEF will be displayed b. AAAAAABCDEF will displayed
c. character 'A' will be displayed infinitely d. none e. Not sure

8. What is the output of the following program?


#include <stdio.h>
#define sum (a,b,c) a+b+c
#define avg (a,b,c) sum(a,b,c)/3
#define geq (a,b,c) avg(a,b,c) >= 60
#define lee (a,b,c) avg(a,b,c) <= 60
#define des (a,b,c,d) (d==1?geq(a,b,c):lee(a,b,c))
void main (void)
{
int num = 70;
char ch = '0';
float f = 2.0;
if des(num,ch,f,0) puts ("lee..");
else puts("geq...");
}
a. syntax error b. geq... will be displayed c. lee.. will be displayed
d. none e. Not sure

9. Which of the following statement is correct?


a. sizeof('*') is equal to sizeof(int) b. sizeof('*') is equal to sizeof(char)
c. sizeof('*') is equal to sizeof(double) d. none e. Not sure

10. What does the following program print?


#include <stdio.h>
char *rev(int val);
void main(void)
{
extern char dec[];
printf ("%c", *rev);
}
char *rev (int val)
{
char dec[]="abcde";
return dec;
}
a. prints abcde b. prints the address of the array dec
c. prints garbage, address of the local variable should not returned d. print a e. Not sure

11. What does the following program print?


void main(void)
{
int i;
static int k;
if(k=='0')
printf("one");
else if(k== 48)
printf("two");
else
printf("three");
}
a. prints one b. prints two c. prints three
d. prints one three e. Not sure

12. What does the following program print?


#include<stdio.h>
void main(void)
{
enum sub
{
chemistry, maths, physics
};
struct result
{
char name[30];
enum sub sc;
};
struct result my_res;
strcpy (my_res.name,"Patrick");
my_res.sc=physics;
printf("name: %s\n",my_res.name);
printf("pass in subject: %d\n",my_res.sc);
}
a. name: Patrick b. name: Patrick c. name: Patrick
pass in subject: 2 pass in subject:3 pass in subject:0
d. gives compilation errors e. Not sure

13. What does


printf("%s",_FILE_); and printf("%d",_LINE_); do?
a. the first printf prints the name of the file and the second printf prints the line no: of the second printf in
the file
b. _FILE_ and _LINE_ are not valid parameters to printf function
c. linker errors will be generated d. compiler errors will be generated e. Not sure

14. What is the output of the following program?


#include <stdio.h>
void swap (int x, int y, int t)
{
t = x;
x = y;
y = t;
printf ("x inside swap: %d\t y inside swap : %d\n",x,y);
}
void main(void)
{
int x;
int y;
int t;
x = 99;
y = 100;
swap (x,y,t);
printf ("x inside main:%d\t y inside main: %d",x,y);
}
a. x inside swap : 100 y inside swap : 99 x inside main : 100 y inside main : 99
b. x inside swap : 100 y inside swap : 99 x inside main : 99 y inside main : 100
c. x inside swap : 99 y inside swap : 100 x inside main : 99 y inside main : 100
d. x inside swap : 99 y inside swap : 100 x inside main : 100 y inside main : 99
e. Not sure

15. Consider the following statements:


i) " while loop " is top tested loop ii) " for loop " is bottom tested loop
iii) " do - while loop" is top tested loop iv) " while loop" and "do - while loop " are top tested loops.
Which among the above statements are false?
a. i only b. i & ii c. iii & i d. ii, iii & iv e. Not sure

16. Consider the following piece of code:


char *p = "MISTRAL";
printf ("%c\t", *(++p));
p -=1;
printf ("%c\t", *(p++));
Now, what does the two printf's display?
a. M M b. M I c. I M d. M S e. Not sure

17. What does the following program print?


#include <stdio.h>
struct my_struct
{
int p:1;
int q:1;
int r:6;
int s:2;
};
struct my_struct bigstruct;
struct my_struct1
{
char m:1;
};
struct my_struct1 small struct;
void main (void)
{
printf ("%d %d\n",sizeof (bigstruct),sizeof (smallstruct));
}
a. 10 1 b. 2 2 c. 2 1 d. 1 1 e. Not sure

18. Consider the following piece of code:


FILE *fp;
fp = fopen("myfile.dat","r");
Now fp points to
a. the first character in the file.
b. a structure which contains a char pointer which points to the first character in the file.
c. the name of the file. d. none of the above. e. Not sure.

19. What does the following program print?


#include <stdio.h>
#define SQR (x) (x*x)
void main(void)
{
int a,b=3;
a = SQR (b+2);
}
a. 25 b. 11 c. 17 d. 21 e. Not sure.

20. What does the declaration do?


int (*mist) (void *, void *);
a. declares mist as a function that takes two void * arguments and returns a pointer to an int.
b. declares mist as a pointer to a function that has two void * arguments and returns an int.
c. declares mist as a function that takes two void * arguments and returns an int.
d. there is a syntax error in the declaration. e. Not sure.

21. What does the following program print?


#include <stdio.h>
void main (void)
{
int mat [5][5],i,j;
int *p;
p = & mat [0][0];
for (i=0;i<5;i++)
for (j=0;j<5;j++)
mat[i][j] = i+j;
printf ("%d\t", sizeof(mat)); < BR> i=4;j=5;
printf( "%d", *(p+i+j));
}
a. 25 9 b. 25 5 c. 50 9 d. 50 5 e. Not sure

22. What is the output of the following program?


#include <stdio.h>
void main (void)
{
short x = 0x3333;
short y = 0x4321;
long z = x;
z = z << 16;
z = z | y;
printf("%1x\t",z);
z = y;
z = z >> 16;
z = z | x;
printf("%1x\t",z);
z = x;
y = x && y;
z = y;
printf("%1x\t",z);
}
a. 43213333 3333 1 b. 33334321 4321 4321 c. 33334321 3333 1
d. 43213333 4321 4321 e. Not sure

23. What is the output of the following program?


#include <stdio.h>
void main (void)
{
char *p = "Bangalore";
#if 0
printf ("%s", p);
#endif
}
a. syntax error #if cannot be used inside main function b. prints Bangalore on the screen
c. does not print anything on the screen
d. program gives an error "undefined symbol if" e. Not sure

24. If x is declared as an integer, y is declared as float, consider the following expression:


y = *(float *)&x;
Which one of the following statments is true?
a. the program containing the expression produces compilation errors;
b. the program containing the expression produces runtime errors;
c. the program containing the expression compiles and runs without any errors;
d. none of the above e. Not sure

25. What is the return type of calloc function?


a. int * b. void * c. no return type: return type is void
d. int e. Not sure

%%%%%%%%%%%%%%

Try the following.


1. There are seventy clerks working in a company, of which 30 are females. Also, 30
clerks are married; 24 clerks are above 25 years of age; 19 married clerks are above 25
years, of which 7 are males; 12 males are above 25 years of age; and 15 males are
married. How many bachelor girls are there and how many of these are above 25?

2. A man sailed off from the North Pole. After covering 2,000 miles in one direction he
turned West, sailed 2,000 miles, turned North and sailed ahead another 2,000 miles till he
met his friend. How far was he from the North Pole and in what direction?

3. Here is a series of comments on the ages of three persons J, R, S by themselves.


S : The difference between R’s age and mine is three years.
J : R is the youngest.
R : Either I am 24 years old or J 25 or S 26.
J : All are above 24 years of age.
S : I am the eldest if and only if R is not the youngest.
R : S is elder to me.
J : I am the eldest.
R : S is not 27 years old.
S : The sum of my age and J’s is two more than twice R’s age.
One of the three had been telling a lie throughout whereas others had spoken the truth.
Determine the ages of S,J,R.

4. In a group of five people, what is the probability of finding two persons with the same
month of birth?

5. A father and his son go out for a ‘walk-and-run’ every morning around a track formed
by an equilateral triangle. The father’s walking speed is 2 mph and his running speed is 5
mph. The son’s walking and running speeds are twice that of his father. Both start
together from one apex of the triangle, the son going clockwise and the father anti-
clockwise. Initially the father runs and the son walks for a certain period of time.
Thereafter, as soon as the father starts walking, the son starts running. Both complete the
course in 45 minutes. For how long does the father run? Where do the two cross each
other?

6. The Director of Medical Services was on his annual visit to the ENT Hospital. While
going through the out patients’ records he came across the following data for a particular
day : ” Ear consultations 45; Nose 50; Throat 70; Ear and Nose 30; Nose and Throat 20;
Ear and Throat 30; Ear, Nose and Throat 10; Total patients 100.” Then he came to the
conclusion that the records were bogus. Was he right?

7. Amongst Ram, Sham and Gobind are a doctor, a lawyer and a police officer. They are
married to Radha, Gita and Sita (not in order). Each of the wives have a profession.
Gobind’s wife is an artist. Ram is not married to Gita. The lawyer’s wife is a teacher.
Radha is married to the police officer. Sita is an expert cook. Who’s who?
8. What should come next?
1, 2, 4, 10, 16, 40, 64,

Questions 9-12 are based on the following :


Three adults – Roberto, Sarah and Vicky – will be traveling in a van with five children –
Freddy, Hillary, Jonathan, Lupe, and Marta. The van has a driver’s seat and one
passenger seat in the front, and two benches behind the front seats, one beach behind the
other. Each bench has room for exactly three people. Everyone must sit in a seat or on a
bench, and seating is subject to the following restrictions: An adult must sit on each
bench.
Either Roberto or Sarah must sit in the driver’s seat.
Jonathan must sit immediately beside Marta.

9. Of the following, who can sit in the front passenger seat ?


(a) Jonathan (b) Lupe (c) Roberto (d) Sarah (e) Vicky

10. Which of the following groups of three can sit together on a bench?
(a) Freddy, Jonathan and Marta (b) Freddy, Jonathan and Vicky
(c) Freddy, Sarah and Vicky (d) Hillary, Lupe and Sarah
(e) Lupe, Marta and Roberto

11. If Freddy sits immediately beside Vicky, which of the following cannot be true ?
a. Jonathan sits immediately beside Sarah
b. Lupe sits immediately beside Vicky
c. Hillary sits in the front passenger seat
d. Freddy sits on the same bench as Hillary
e. Hillary sits on the same bench as Roberto

12. If Sarah sits on a bench that is behind where Jonathan is sitting, which of the
following must be true ?
a. Hillary sits in a seat or on a bench that is in front of where Marta is sitting
b. Lupe sits in a seat or on a bench that is in front of where Freddy is sitting
c. Freddy sits on the same bench as Hillary
d. Lupe sits on the same bench as Sarah
e. Marta sits on the same bench as Vicky

13. Make six squares of the same size using twelve match-sticks. (Hint : You will need an
adhesive to arrange the required figure)

14. A farmer has two rectangular fields. The larger field has twice the length and 4 times
the width of the smaller field. If the smaller field has area K, then the are of the larger
field is greater than the area of the smaller field by what amount?
(a) 6K (b) 8K (c) 12K (d) 7K

15. Nine equal circles are enclosed in a square whose area is 36sq units. Find the area of
each circle.
16. There are 9 cards. Arrange them in a 3*3 matrix. Cards are of 4 colors. They are red,
yellow, blue, green. Conditions for arrangement: one red card must be in first row or
second row. 2 green cards should be in 3rd column. Yellow cards must be in the 3
corners only. Two blue cards must be in the 2nd row. At least one green card in each row.

17. Is z less than w? z and w are real numbers.


(I) z2 = 25
(II) w = 9
To answer the question,
a) Either I or II is sufficient
b) Both I and II are sufficient but neither of them is alone sufficient
c) I & II are sufficient
d) Both are not sufficient

18. A speaks truth 70% of the time; B speaks truth 80% of the time. What is the
probability that both are contradicting each other?

19. In a family 7 children don’t eat spinach, 6 don’t eat carrot, 5 don’t eat beans, 4 don’t
eat spinach & carrots, 3 don’t eat carrot & beans, 2 don’t eat beans & spinach. One
doesn’t eat all 3. Find the no. of children.

20. Anna, Bena, Catherina and Diana are at their monthly business meeting. Their
occupations are author, biologist, chemist and doctor, but not necessarily in that order.
Diana just told the neighbour, who is a biologist that Catherina was on her way with
doughnuts. Anna is sitting across from the doctor and next to the chemist. The doctor was
thinking that Bena was a good name for parent’s to choose, but didn’t say anything. What
is each person’s occupation?

1. 1. There are seventy clerks working in a company, of which 30 are females. Also,
30 clerks are married; 24 clerks are above 25 years of age; 19 married clerks are
above 25 years, of which 7 are males; 12 males are above 25 years of age; and 15
males are married. How many bachelor girls are there and how many of these are
above 25?

what is the answer to this question?

Mtnl…………………………………………………………………………………………
………………….
Sample Questions for the MTNL (JTO/JAOS) EXAM

MTNL (JTO/JAOS) EXAM ----HELD ON 18/09/2005.

there were 170 q's ,out of which 100 technical and 70 counts for
aptitude.
time limit was 2 hours. 30 minutes were previusly given for filing the
entry.exam stared around 10 o clock.

*there were no g.k question


note----->>>
*approx 10 question were also in sail 2005 examination(management
trainees)
$-------> repeated
*few q which i remembered,
i have written them according to the nearest topic
*technical was having almost thoeritical question nearly.

********technical section************

1.what is a aquadag.
2.about the quiscent condition
3.cassegrain feedis used with parabolic reflector to
allow the feed convenient position. $
4. configuration of cascade.
ce cc,cbce, none
5.resistors is measured in a) ohms
b) watts. c) both
6.if diameter of radar is >> 4 times $
how much range is increased ans)4
7.n type have which type of impurity
8.semiconductor strain gauge over the normal strain gauge is around.$
9.why slicon is prefeered
10. what is w2/w1=4 relationship is called $
11.which one is best outof(near about)
nyqiust,bode, routhz
12.wein bridge frequecy conditions
13.The 'h' parameter equivalent circuit of a junction transistor is
valid for –
a). High frequency, large signal operation
b.) High frequency, small signal operation
c.) Low frequency, small signal operation
d). Low frequency, large signal operation
14. comparater is used for?
15. astable and bistable uses
16. to increase input z u will prefer
a). Current series feedback
b). Current shunt feedback
c). Voltage series feedback
d). Voltage shunt feedback
17.. Enhancement type P channel MOSFET the gate voltage is
+,-,+ &-
18 which gate gives 0 when i/p is 1
19. decimal have radix ?
20 what is binary for 10
21 one value was given SN72 like that ,u have to tell
which device it means.
22. what does the sync mean in tv tramnsmission. $
23. question on transformer coupling(i didnt remember)
24. where the double tunning is used in radio receivers.
25. sequential circuit dependence on input and output.$
26.question on power receiveed by the receiver in tramsmmission
27.the probability density function of envelope of narrow
band noise is gaussian...............................
28. what isthe output of given IC .
29.if quantization level is incresed from 8--->9 then what is the
effect
30. a figure was given and we have identify thec circuit.
31.in closed loop if u are having m=100 and negative feedback
is .04,what is gain
32.k maps was given u have to give the right pairings.
33.a question on bandwidth
34.fourier series coprises of
sine,cosine,both
35.stalites works in which frequency $
vhf,uhf,both
36.by which u can prepare a binary counter. $
d,rs,jk,latch
37.q based on use of schotky diode
38. q based on the use of varactor diode.
39.q based on allignment in paramagnetic materials.
40.which equipment uses minimum power.
41. it both input of nand gate is high,give the o/p.
42.how many bits are required to reepresent 35 in binary.
43.what is CMRR.
44.if current in zener is increased then what happens.(near about).
45.for,thermistor if temperature is increased then then temperature
coefficent
will?
46.relation between B(beta) and Ic in bjt
47.the resistance of loudspeaker is nearly
ohms,k ohms,m ohms,
48.early state in bjt is due i/p applies,
on time,off time,....

*****aptitude section***********8

aptitiude q

antonymns of

1. debonair
2.bafeful
3.exasperate.
4.dainty
5.epolsive

6.a very simple passage followed by 5n scoring q's


7.5 question to pick the wrong part in sentences
maths part

1.work... time taken by 4 men to do work is 98.if 3 more


person are involved they the will finsh the work of 298 hrs
in how many more days
2. dicount offered by 3 shopownwer
15 and 10
20 and 10
36
which is the most discounted
3.15^3-14^3/15^2+210+14^2 solve it
4. (312)^.5 * (201)^.5 solve it
5.radius of 2 circle and revolution of one was given,find the other
6. 7 know french ,8 know german ,3 know none ,find how many know both.
7. 80 %failed in maths, 70 %in english ,10 % failed in both,total
passed
no is 144.find total strength.? $
8.if watch is always makes error of 4 second (+)/hours,what will be
time on 22 day 8 am when it was last corrested on 21 day 1 pm
9 q based on day of birth ?

analytical

1. cube face q(same of any two side is 7) $


2. relationships based simple q .(8 in no in total)
3. dog:caninne governor: ??? $
4. 0,6,24,36,120,312(approx likethat) what should not be there $
5 123456:234556 345678:???

%%%%%%%%%%%%%%%%%%

ISRO PAPER ON 22nd APRIL AT DELHI

helo friends, i appeared for ISRO written examinatiom on 22april,2007 for the post of
Scientist Engineer.

paper was totally technical.Questions which i remembered are as follows:-

1) output resistance of ideal OP AMP is:-


a) 0 b) 1 c) infinite d) very high ANS:
a) 0

2) waveguide acts as:-


a) LPF b) HPF c) BPF d) BRF ANS:
b) HPF

3) quality factor of series RLC ckt. increases with:-


a) increase in R b) decrease in R c) doesn't depends on R d) none of these ANS:
b) decrease in R.

4) energy stored in capacitor is given by:


a) CV b) 0.5CV c) CV2 d) 0.5CV2 ANS:
d)

5) CMRR of an OP AMP is given as 80db and Ad is 20000.Value of Acm will be:-


a) 4 b) 8 c) 2 d) 1 ANS: c)
2

some basic questions were based upon digital electronics,ckt. analysis,antenna


theory,zener doides.

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
(TIPS) 10 Days Guide to Crack Infy by: Rajiv
I am a fresher who just finsiehd my final year B.Tech Information
Technology.Being fully prepared for the selection test for Infy on
June 19th, and with God's grace I was able to get an appointment
Order form Infosys.I would like to give back to the group the 10 day
schedule that i followed, which may be of use in CRACKING the Infy
test.If 10 days arent there for you, then you coudl leve out the
days that i have used for Ravi Narula and the quantitaive Aptitude.
That would bring down the number of days to 7 or 8. You need to
manage your time very effeciently. Spend your itme in studying, and
prayers. Prayers do help a lot .

Usually when you register with Infosys, you woul get a mail atleast
10 to 12 days before the written test either by email, or by
Post.Let us keep this as 10 days.Before we start off, three rules
must be kep in mind.

FIRST RULE : While job hunting , check your mail on a daily basis,
so that you dont get delayed info regarding test or other such
details . Even the appointment order comes by email.

SECOND RULE : Once you do receive the intimating or hall ticket,


check for the following books.Not all chapters need to be followed
in each book and i have given the need ones in the daily schedule .

(1) Puzzles to Puzzle you - Shakuntala Devi (very Important)


(2) More Puzzles - Shakuntala Devi (very Important)
(3) Puzzles and Teasers - George Sammers (very very Important)
(4) Brain Teasers - Ravi Narula (Optional, but few old sums are here)
(5) Quantitative Aptitude - R.S Agarwal ( Important)
(6) Verbal Reasoning - R.S Agarwal (very very Important)
(7) Previous Papers - Chetana group, Mail me for more (Important) THIRD
RULE : YOU must forget all your previosu failures and start
afresh with firm determination and enthusiasm. Once you do this ,
solving puzzles become easy . I solved 9 out of 10 puzzles.
Concentrate on the bigger puzzles first . This may be the way the
marks are distributed:

8 marks and 6 marks - George Sammers and Verbal Reasoning


(R.S Agarwal)
4 marks and 5 marks and 3 makrs - Shakuntala Devi books and
Ravi Narula and Quantitative Aptitude(R.S Agarwal)
Some questions from Previous Papers

Now lets start of with the schedule :

DAY 1 : Start off with Puzzles to Puzzle you - Shakuntala Devi and
finish as mush as possible.Decide to only finish the book and call
the day off. Note down the sums which you are not able to solve or
need the answers to solve and keep this list safely. After you go
through the whole book, go back to thses questions and just check
out the way they are solced. Sometimes they will not be explained.
In this case you have no choice but to leave them. But some sums
will have some funny explanations.Just rememeber the way or method.

DAY 2 : Now take a break off from Shakuntala Devi and then start
Verbal Reasoning - R.S Agarwal . In this you just have to do the
Puzzle Test Chapter fully , and have a look at the Number, Ranking
and Sequence Test chapter. I contains fully George Sammers type
question on easier scale but you woudl be able to uderstand the
basic logic of solving George Sammers type questions.Finish off the
whole book during the second day.There is just one or two methods to
solve these sort of questions and the explanation is very clear .
Once you get the method , you can solve al the puzzles in this, but
just in case do go through all the puzzles. there have been puzzles
in previous papers from here.Once ou get the method well, there will
not be any revision necessary in this book . But you will have to
concentrate on the method.

DAY 3 : Now back to More Puzzles - Shakuntala Dei and follow the
same procedure you followed for the first book.

DAY 4 and DAY 5: Get your George Sammers book and start off solving
the puzzles. The first half is kind of easy, btu dont be worried if
your not able to solve much. Even one or two is enough . The Rest ,
you just have to use the scheme and the solutions and then
understand the puzzle thoroughly. Many papers have similar sums with
the names changed. Try to finish the first half in a day . And start
off the second half . The second half is relatively tougher, and it
will be very confusing. Just try to solve some. The second half ,
even the solutions will confuse you more. So just solve as many as
you can. The rest you can make use of the soultions . If they are
too complex, Leave them aside. Note down all sums you could not
solve or could solve only using the solutions and list them . When
you are through the whole book, just revise all the sums, giving
preference to the ones that you have listed . It si okay even if you
sit with George Sammers for three days. But you must fully be able
to undertsand all the question in the First part. The second part ,
atleast maybe few sums are optional.

DAY 6 : Take your quantitative Aptitude book by R.S Agarwal and work
out the following chapters fully. Note down tough sums and their
solutions and come back to solve thme and revise them .
The chapters to be done are :
(1) Time and Distance (very important)
(2) Time and Work
(3) Pipes and Cisterns
(4) Trains
(5) Boats

DAY 7 : Revise Shakuntala Devi book-1 and revise it well. Not


necessary to wokr out the porblems. Just check if your method is
correct . The sums you have listed, give them extra importance. By
the end of this day , you must Shakuntala Devi book-1(Puzzles to
Puzzle you ) on your finger tips.

DAY 8 : Revise the book-2 of Shakuntala Devi , just how you revised
the first book.End of this day you shoudl ahve both Shakuntala devi
books at your finger tips.
DAY 9 : Revise George Sammers, such that you can easily solve the
whole first part . The second part , leave ii , if it is tough.

DAY 10 : Check out Ravi Narula. The sums are very tough . It will be
enough if you just c the solutions and understand them . Some sums
are asked in some papers.( There is one questin abt some ANYMAN
reaching ANYWHERE. His tyre gets punctured and he reaches late.If
his tyre got punctured earlier / later then he would have reached
earlier/later. How far did he travel..soemthing like that).that is
form this book . Many papers have this sum repeated. But the names
are changed. Ravi Narula is just optional, but I suggest that you go
through all sums and their solution atleast once.Dont take too much
time on Ravi Narula. Just three or four hours would be sufficient.

INTERVIEW : Interview is Casual.If you have done excellently well in


the test , your interview process is very simple and a walkthrough
if you have good communication skills ( Speak clearly, frankly).
My Interview Panle consisted of one Madame and one Sir. They asked
me abt Team Wokr, Abt my College, Abt my family, My hobbies, My
interests, Certain changes i would like to bring out in the current
socio-economic development (I said to remove unemployment).I was nto
asked any puzzles in my interview. But I do have a list of puzzles
that coudl be possibly asked. I would post them too on this forum .
Interview was very friendly .
You are free to ask the panel your performance and expectation of
your order. Be positive. Thats a very very big Point in your HR
interview.My friend had a stress interview. Be cool, Dont react.

Pls do mail me in case you have any doubts. Also mail me if this
post has helped you become an Infosion. I would be very happy if
this post has helped few fellow Infosions out there .
pls do lemme know if you do get selected. You can also add me in
your messenger. I will be online everyday, and u can send me
offlines to clarify certain doubts .
Every Problem has a Solution.

SYNONYMS
----------------------------
admonish = usurp (reprove) merry = gay
alienate = estrange (isolate) instigate = incite
dispel = dissipate (dismiss) belief = conviction
covet= crave (desire) belated = too late
solicit = beseech (seek) brim = border
subside = wane (drop) renounce= reject
hover = linger (stay close) divulge = reveal
heap = to pile (collect) adhesive = tenacious
veer = diverge (turn) hamper = obstruct
caprice = whim (impulse) to merit= to deserve
stifle = suffocate (smother) inert = passive
latent = potential (inactive) latitude = scope
concur = acquiesce (accept) momentary = transient
tranquil = serene (calm) admonish = cautious
lethargy = stupor (lazy) volume = quantity
furtive= stealthy (secret) meager = scanty
cargo = freight(load) baffle = frustrate
efface = obliterate(wipe out) misery = distress
pretentious = ostentatious(affected) discretion = prudence
compunction = remorse (regret) amiable = friendly
cajole = coax (wheedle ? sweet talk) incentive = provocation
Embrace = hug (hold-cuddle) latent = potential
Confiscate = appropriate (to take charge) emancipate = liberate
lament = mourn confiscate = appropriate
obstinate = stubborn acumen = exactness
metamorphosis = transform scrutiny = close examination
annihilate = to destroy fuse = combine
whet = sharpen behest = request
adage = proverb penitence = to repeat
ovation = applause overt = obvious
Efface = obliterate

TCS main Papers From Campus Recruitment at NIT Bhopal 003


You can refer to Barron's most frequently used words list for a close recap.

Vocabulary Section: (Time : 28 mins)


Synonyms -
1.Moribund ? declining, dilapidated, waning
2.Repudiate ? reject, disclaim, renounce, deny
3.Translucent ? transparent, semi- transparent, lucid, lucent, clear,
see through
4. Mitigate- alleviates, lessen, ease, alley, tune down, dull, Assuage
5. Inundate ? flood, overwhelm, swamp
6. Bilk ? deceive, trick, swindle, con
7.Nettle ? annoy, irritate, vex
8.Impugn ? hold responsible, charge, censure, accuse
9.Mulch
10.Tenacity ? stubbornness, resolve, firmness, persistence,
insistence, determination
11.Sobriety ? temperance, moderation, abstemiousness, soberness
12.Degrade ? shame, disgrace, mortify, humiliate
13.Hidebound - narrow-minded, conservative, prejudiced
14.Waif ? stray, sole, thing
15.Hamper ? basket, hinder
16.Retrograde ? nostalgic, retrospective, traditional and conservative
17.Despondent ? hopeless, low, dejected
18.Debacle ? disaster, tragedy, catastrophe
19.Nebulous ? vague, hazy, unformulated, tenuous
20.Inconsistent ? conflicting, contradictory, unreliable ,
incompatible, inhoherent
21.Paradox ? inconsistency, irony, absurdity

Paper from Campus Recruitment in Jamshedpur 2003

synonym
1. dwindle ? decrease, decline, fall, fall off, drop, drop off
2. efface - wipe out, obliterate, eradicate, destroy
3. inept ? incompetent, inexpert, clumsy
4. infirmity - ill-health, sickness
5. candid- open, frank
6. dangle - hang, swing, sway
Antonym
1. Irksome * pleasant
2. Jaunty * sorrowful, sad
3. Nebulous * precise
4. Misapprehension * comprehension * understanding
5. Obese * thin
6. Whimsical * ordinary

Paper from Campus Recruitment in NIT Durgapur 2003


Synonym and antonym
1.Harbinger ? forerunner, portent, indication
2.Cacophony ? dissonance, disharmony
3.Divulge ? reveal, disclose
4.Clutch ? grasp, grab, clasp, hold
5.Acronym ? short form, contraction, ellipsis
6.Illustrious ? memorable, well?known, famous
7.Prolific ? productive, abundant
8.Divergent ? different, deviating, conflicting
9.Jaded ? world-weary, tired, lackluster, worn-out, exhausted, bored,
fed up
10. Mien ? appearance, demeanor
11. Mitigate ? alleviate, ease, lessen, soften, allay, moderate
12. Ambitious ? determined, grand, striving
13. Aberration ? deviation, abnormality, eccentricity, oddness
14. Foray ? raid, sortie, incursion, attack, venture
15. Denounce ? condemn, accuse, criticize

Campus Recruitment in Calicut REC 1997


VERBAL SECTION: Directions for questions 1-15:
Find the synonyms of the following words.
Synonyms: (Ref: Barron's Synonyms and Antonyms)

Ponderous ? heavy, tedious, cumbersome


Mundane ? ordinary, dull, monotonous, dreary
Icon ? image, idol, emblem, symbol
Brackish ? salty, briny
Mollify ? placate, pacify, calm, appease, soothe
Depreciation ? reduction, decline
Equanimity ? composure, poise, calmness, self-control
Gist ? general idea, substance, essence
Gaudy ? garish, flashy, extravagant, loud, showy, colorful
Awry ? skewed, crooked, wrong
Repartee ? banter, joking, word play
Boisterous ? energetic, animated
Ungainly ? clumsy, awkward, ungraceful, miserly, mean, inelegant, gawky
Whimsical ? fanciful, unusual, quirky, capricious
Asperity ? roughness, severity, brusqueness
Cavil ? quibble, complain, niggle, split hairs, carp
Quixotic ? idealistic, romantic, dreamy, unrealistic, impracticable
Profound ? deep, intense, thoughtful, reflective, philosophical,
weighty, insightful
Incorrigible - habitual, persistent, inveterate, hopeless
Musty ? mildewed, moldy, stale, rank, fusty, stuffy
Waif ? stray, thing, lose, urchin, orphan
Irk ? displease, vex, annoy, trouble, bother, nag, rile
Interdict ? prohibit, veto, injunction, bar, embargo
Cohere - hold together
Rupture - break
Moribund ? dying, declining, waning
D?collet? ? low necked, revealing
Callow ? inexperienced, immature, youthful
Balmy ? mild, clement, pleasant
recalcitrant ? unruly, disobedient, obstinate, stubborn
guile ? cunningness, deviousness, slyness, cleverness, wiliness,
astuteness

Antonyms
1.Compose x disturb
2.Pristine x sullied
3.Turbid x limpid
4.Monetary x non-economical
5.Revere x threaten
6.Hamper x facilitate
7.Transient x permanence
8.Fascinate x mundane
9.Fickle x loyal
10.Contraband x legal goods
11.Repellent x attractive
12.Slur x grace
13.Protean x constant
14.Hidebound x broadminded
15.Precipitate x dilatory/contradictory

Sentence completion
A passage is given with multiple blanks. There was a passage abt
Artists,abt Money mgmt,abt Cleanliness??
SYNONYMS AND ANTONYMS.
Censure ? fault, criticize
Optimum ? best, most favorable
Candid ? frank, open, blunt, upfront, forth-right
Cite ? quote, name, mention, refer to, allude to
Effusive ? demonstrative, fussy, talkative, overenthusiastic,
vociferous, extroverted
Voluble ? articulate, vociferous, talkative
Banal ? commonplace, trivial, predictable, trite, hackneyed
Standing ? rank, permanent, position, duration, status, reputation,
eminence
Nascent ? budding, emerging, blossoming, embryonic
Clutch ? grasp, grab, hold
Generic ? general, basic, common
Empirical ? experimental, pragmatic, practical
Anomaly ? irregularity, glitch, difference
Circuitous ? roundabout, twisty, meandering, indirect, winding, tortuous
Surveillance ? observation, watch, shadowing
Objective ? aim, impartial, real, purpose, goal
Raucous ? rough, wild, hoarse, guttering
Voracious ? insatiable, avid, hungry, big, rapacious, greedy
Pedigree ? rare-breed, full-blooded, lineage
Fidelity ? loyalty, reliability
Augment ? supplement, boost, add to, bump up
Precarious ? unstable, shaky, risky, uncertain
Derogatory ? disparaging, critical, insulting, offensive
Onus ? responsibility, burden, obligation, duty
Analogous - similar, akin, related
Expedient ? measure, convenient, device, maneuver
Compliance ? fulfillment, obedience
Diffident ? shy, insecure, timid
Plaintive ? mournful, sad, melancholic, nostalgic, lamenting
Insinuate ? imply, suggest, make-out, ingratiate yourself
Misdemeanor ? wrong, sin, crime, offense
Exonerate ? clear, forgive, absolve
Gregarious ? outgoing, extroverted, sociable, expressive, unreserved
Benign ? kind, benevolent, compassionate
Attenuate ? satisfy, calm, soothe, ease
Sonorous ? loud, deep, resonant, echoing
Bolster ? boost, strengthen, reinforce, encourage
Heterodox ? unorthodox, dissenting, contrary to accepted belief,
heretical, deviating
Restiveness ? impatience, restlessness, nervousness
Effigy ? image, statue, model
Retrograde ? retrospective, traditional, conservative,
nostalgic,forward-looking(antonym)
Sacrosanct ? sacred, holy, revered
Dangle ? hang down, sway, droop, swing, suspend
Cryptic ? mysterious, enigmatic, puzzling, hidden
Debilitate ? incapacitate, weaken, hamper, encumber, hinder
Divulge ? reveal, disclose
Spendthrift ? wastrel, squanderer, compulsive shopper
Indigenous ?native, original, local
Erroneous ? mistaken, flawed, incorrect
Minion ? follower, subordinate, underling, gofer
Veracity ? reality, truth, sincerity

VERBAL REASONING

SYNONYMS:
1. CIRCUMSPECT
(i) CONDITION (ii) INSPECT (iii) CAUTIOUS (IV) RECKLESS

2. ABYSMAL - terrible
(i) SLIGHT (ii) DEEP (iii) ILLUSTRIOUS (iv) PROLIFIC

3. DILIGENT ? hardworking, industrious, meticulous, careful


(i) INTELLIGENT (ii)?..(iii)??(iv)??

4.VEHEMENT
(i) PASSIONATE (ii) CONFESY (iii) NOISY (iv) MOQULIS

5) IMPETUS
(i) CONNECT (ii) CRUCIAL (iii) STIMULUS (iv)
IMMEDIATE

6) ACRONYM
(i) ABBREVIATION (ii) SIMILAR

7) DISSEMINATE
(i) FORECAST (ii) SPREAD (iii) BRANSP

8) HARBINGER
(i) NAVAL (ii) UNCOMMON (iii) FORE RUNNER (iv) GLORY

ANTONYMS:

1) TRACTABLE
(i) OBJECTIONABLE (ii) ENJOYABLE (iii) ADAPTABLE (iv)
OBSTINATE

2) COVERT
(i) MANIFEST (ii) INVISIBLE (iii) SCARED (iv) ALTER

3) PENSIVE
(i) REPENTENT (ii) SAD (iii) THOUGHTLESS (iv)
CARELESS

4) MITIGATE
(i) AGGRAVATE (ii) RELIEVE (iii) ELEMINATE (iv)
EXHUMAN

5) DIVERGENT
(i) CONTRARY (ii) COMING TOGETHER
(iii) CONVERSANT (iv) CONTROVERSY

6) DOGMATIC
(i) SCEPTICAL (ii) RESILIENT (iii) STUBBORN (iv)
SUSPICIOUS

7) CLUTCH
(i) HOLD (ii) GRAB (iii) RELEASE (iv) SPREAD

8) MOTLEY
(i) BULKY (ii) SPECKLED (iii) HOMOGENEOUS (iv)
DIFFERENT

9) RELINQUISH
(i) PURSUE (ii) VANQUISH (iii) DESTROY
(iv) DEVASTATE
10) TRANSIENT
(i) PERMANENT (ii) REMOVED

CRITICAL REASONING SECTION


CRITICAL REASONING : THERE WILL BE 13 PASSAGES WITH 50 QUESTIONS TIME
30 MIN.
HERE I AM SENDING ONLY SOME OF THE PASSAGES (these will give only rough idea)
(ANSWERS WILL BE AS YES/NO/CAN'T SAY we are giving our answers, please
check.)

1. My father has no brothers. he has three sisters who has two Childs
each.

1> my grandfather has two sons (f)


2> three of my aunts have two sons (can't say)
3> my father is only child to his father (f)
4> I have six cousins from my mother side (f)
5> I have one uncle (f)

2. Ether injected into gallbladder to dissolve gallstones. This type


one-day treatment is
enough for gallstones not for calcium stones. This method is
alternative to surgery for millions of people who are suffering from
this disease.

1> calcium stones can be cured in one day (f)


2> hundreds of people contains calcium stones(can't say)
3> surgery is the only treatment to calcium stones(t)
4> either will be injected into the gallbladder to cure the
cholesterol
based gall stones(t).

3. Hacking is illegal entry into other computer. This is done mostly


because of lack of knowledge of computer networking with networks one
machine can access to another machine. Hacking go about without
knowing that each network is accredited to use network facility.
1> Hacking people never break the code of the company which they
work for (can't say).
2> Hacking is the only vulnerability of the computers for the usage
of the data.(f)
3> Hacking is done mostly due to the lack of computer knowledge (f).
(there will be some more questions in this one )

4. Alpine tunnels are closed tunnels. In the past 30 yrs not even a
single accident has been recorded for there is one accident in the
railroad system. Even in case of a fire accident it is possible to
shift the passengers into adjacent wagons and even the living fire can
be detected and extinguished with in the duration of 30 min.

1> no accident can occur in the closed tunnels (True)


2> fire is allowed to live for 30 min. (False)
3> All the care that travel in the tunnels will be carried by rail
shutters.(t)
4>
5. In the past helicopters are forced to ground or crash because of
the formation of the ice on the rotors and engines. A new electronic
device has been developed which can detect the water content in the
atmosphere and warns the pilot if the temperature is below freezing
temp about the formation of the ice on the rotors and wings.

1> the electronic device can avoid formation of the ice on the wings
(False).
2> There will be the malfunction of rotor & engine because of
formation of ice (t)
3> The helicopters are to be crashed or down (t)
4> There is only one device that warn about the formation of ice (t).

6.In the survey conducted in mumbai out of 63 newly married house


wives not a single house wife felt that the husbands should take equal
part in the household work as they felt they loose their power over
their husbands. In spite of their careers they opt to do the kitchen
work themselves after coming back to home. The wives get half as much
leisure time as the husbands get at the weekends.

1> housewives want the husbands to take part equally in the household (f)
2> wives have half as much leisure time as the husbands have (f)
3> 39% of the men will work equally in the house in cleaning and washing

7. Copernicus is the intelligent. In the days of Copernicus the


transport and technology development was less & it took place weeks to
communicate a message at that time. Where in we can send it through
satellite with in no time ----------. Even with these fast
developments it has become difficult to understand each other.

1> people were not intelligent during Copernicus days (f).


2> Transport facilities are very much improved in now a days (can't say)
3> Even with the fast developments of the technology we can't live
happily.(can't say)
4> We can understand the people very much with the development of
communication (f).

Q8) senior managers warned the workers that because of the


introductory of Japanese industry in the car market. There is the
threat to the workers. They also said that there will be the reduction
in the purchase of the sales of car in public. The interest rates of
the car will be increased with the loss in demand.

1> Japanese workers are taking over the jobs of Indian industry
(false)
2> managers said car interests will go down after seeing the raise
in interest rates (true)
3> Japanese investments are ceasing to end in the car industry (false)
4> people are very much interested to buy the cars (false)

Q9) In the totalitarian days, the words have very much devalued.
In the present day, they are becoming domestic that is the words will
be much more devalued. In those days, the words will be very much
affected in political area. But at present, the words came very cheap
.we can say they come free at cost.

1> totalitarian society words are devalued.(false)


2> totalitarian will have to come much about words (t)
3> The art totalitarian society the words are used for the
political speeches.
4>

Q10) There should be copyright for all arts. The reele has came
that all the arts has come under one copy right society,they were use
the money that come from the arts for the developments . There may be
a lot of money will come from the Tagore works. We have to ask the
benifiters from Tagore work to help for the development of his works.

1> Tagore works are came under this copy right rule.(f)
2> People are free to go to the because of the copy right
rule.(can't say)
3> People gives to theater and collect the money for
development.(can't say)
4> We have ask the Tagore resedents to help for the developments
of art.(can't say)

Go for a mock exercise before the real talk at the job table ...............

Campus So what if you are not a mountaineer. Or a keen hiker. You still cannot treat your
interview like a careless morning trot along a jogger's path. Your jaw-jaw at the interview table is
nothing less than a cautious climb up a mountain trail--which begins around your early childhood
and meanders through the years at the academia before reaching a new summit in your career.

And as you retrace your steps down memory lane make sure that you post flags at important
landmarks of your life and career, so that you can pop them before the interview panel scoops
them out of you. You don't want to be at the receiving end, do you?

Face the panel, but don't fall of the chair in a headlong rush-and-skid attempt to tell your story.
Take one step at a time. If you place your foot on slippery ground, you could be ejecting out on a
free fall.

So prepare, fortify your thoughts, re-jig your memory, and script and design your story (without
frills and falsity). Without the right preparation and storyboard, you could be a loser at the
interview. Here are a few preparation tips that books on interviews sometimes overlook.

Before the interview

1. Chronological Outline of Career and Education Divide your life into "segments" defining
your university, first job, second job. For each stage, jot down :

The reason for opting certain course or profession; Your job responsibilities in your
previous/current job; Reason of leaving your earlier/current job. You should be clear in your mind
where you want to be in the short and long term and ask yourself the reason why you would be
appropriate for the job you are being interviewed for and how it will give shape to your future
course.

2. Strengths and Weaknesses

You should keep a regular check on your strengths and weaknesses. Write down three (3)
technical and three (3) non-technical personal strengths. Most importantly, show examples of
your skills. This proves more effective than simply talking about them. So if you're asked about a
general skill, provide a specific example to help you fulfil the interviewer's expectations. It isn't
enough to say you've got "excellent leadership skills". Instead, try saying:

"I think I have excellent leaderships skills which I have acquired through a combination of
effective communication, delegation and personal interaction. This has helped my team achieve
its goals."

As compared to strengths, the area of weaknesses is difficult to handle. Put across your
weakness in such a way that it at leaset seems to be a positive virtue to the interviewer. Describe
a weakness or area for development that you have worked on and have now overcome.

3. Questions you should be prepared for

Tell us about yourself.


What do you know about our company?
Why do you want to join our company?
What are your strengths and weaknesses?
Where do you see yourself in the next five years?
How have you improved the nature of your job in the past years of your working? Why should we
hire you?
What contributions to profits have you made in your present or former company? Why are you
looking for a change?

Answers to some difficult questions :

Tell me about yourself ?


Start from your education and give a brief coverage of previous experiences. Emphasise more on
your recent experience explaining your job profile.

What do you think of your boss?


Put across a positive image, but don't exaggerate.

Why should we hire you? Or why are you interested in this job?
Sum up your work experiences with your abilities and emphasise your strongest qualities and
achievements. Let your interviewer know that you will prove to be an asset to the company.

How much money do you want?


Indicate your present salary and emphasise that the opportunity is the most important
consideration.

Do you prefer to work in a group?


Be honest and give examples how you've worked by yourself and also with others. Prove your
flexibility.

4. Questions to Ask

At the end of the interview, most interviewers generally ask if you have any questions. Therefore,
you should be prepared beforehand with 2-3 technical and 2-3 non-technical questions and
commit them to your memory before the interview.
Do not ask queries related to your salary, vacation, bonuses, or other benefits. This information
should be discussed at the time of getting your joining letter. Here we are giving few sample
questions that you can ask at the time of your interview.

Sample Questions

Could you tell me the growth plans and goals for the company?
What skills are important to be successful in this position?
Why did you join this company? (optional)
What's the criteria your company uses for performance appraisal?
With whom will I be interacting most frequently and what are their responsibilities and the nature
of our interaction?
What is the time frame for making a decision at this position?
What made the previous persons in this position successful/unsuccessful?

5. Do your homework

Before going for an interview, find out as much information on the company (go to JobsAhead
Company Q and A) as possible. The best sources are the public library, the Internet (you can
check out the company's site), and can even call the company and get the required information.
The information gives you a one-up in the interview besides proving your content company or
position.

Clearing the interview isn't necessarily a solitary attempt. Seek assistance from individuals who
are in the profession and whose counsel you value most. Be confident in your approach and
attitude; let the panel feel it through your demeanour, body language and dressing.

Getting prepared for your interview is the best way to dig deep and know yourself. You will be
surprised that it would breed a new familiarity become more familiar with your own qualifications
that will be make you present yourself better. All the best and get ready to give a treat.

Potrebbero piacerti anche