Monday, November 30, 2009

Aricent Recent 6 Question Papers with Answers(Hughes Software System)

PAPER1:
All the following questions are memory based and have been submitted by candidates who appeared for the tests/interviews in the past.
HUGHES Software System
Systems
Q1) There’s a circuit given using three nand gates with two inputs and one output .you have to find the output.a) orb) andc) xorans- a) or
Q2) Suggest a sorting algo which is efficient( in worst case) to 10 valuesa) binary treeb) selectionc) bubbled) any of the above
Q3) What is the number of comparisons in the worst case to merge two sorted lists containing n elements each.a) 2nb) 2n-1c) 2n+1d) 2n-2
Q4) Integrated check value (ICV) are used as ?
ans- the client computes the ICV and then compares it with that send
Q5) A question on client server system using asyn. request from the client
Q6) If a binary tree is constructed using nodes with two pointers each ,how many null pointers does a tree with N nodes havea) n-1b) nc) n+1d) depends on the number of edges
Q7) Which of statement about heap is wronga) n element heap has height log n(base of log is 2)b) smallest element of heap is always a leafc) a array in reverse sorted order is a heapd) a heap can't contain any element more than once
Q8) When applets are downloaded from web sites , a byte verifier performs status check, which of following is not true
(options not available)
Q9) void insert (key,r)typekey key,data array r;{extern int n;if(n>=max) /*error table if full */else r[n++].k=key;}enables aa) basic sequential searchb) binary searchc) interpolation searchd) none Ans- c
Q10) void f(char *p){p=(char *) malloc(6);strcpy(p,"hello");}void main( ){char *P="bye";f(p);printf("%s',p);}
Q11) time taken to access cache is 100ns and to access memory is 1000ns. hit ratio given; you have to find the average access time
Q12) path testing isa) black box testing strategyb) white box testing strategyc) an installation .........d)...... environment
Q13) X: 'verification" asks are we building the right product Y: validation' asks are we building the product right
Q14)which one of the following can't be used to find an internet address given the domain namea) /etc/hostb) NIS yellow pagesc) DNSd) ARP
Q15) Flow control is necessary for the t.p layer due to the following reasonsa) ureliable linkb) congestion at receiverc) packets out of sequenced) none of these
Q16) in public key encryption , if A wants to send a message to B so that no one else can read the message then A encrypts the message usinga) A's public keyb) A's private keyc) B's public keyd) B's private key
Q17) Which of the following is not condition having a deadlock resource previous granted can be forcibly taken away from a processa) resources need to be used in mutually exclusion fashionb) process can request new resources, as they continue to hold on to old onesc) here is a cycle in the resource allocation graph
Q16) a IP/IPX packet received by a computer using... having IP/IPX both how the packet is handled.ans-read the ,field in the packet header with to send IP or IPX protocol.
Q17) the range of the 32 bit number in two's complement form isans- -31 312 to 2 -1
Q18) cyclomatic complexity{if((x=0) or (y=0))p=0;else {p=x;i=1;while(i!=y) {p=p+x;i=i+1; }}}
Q19) activation record will contain the a) storage for simple namesb) information about attributes for local namesc) return addressd) all of the above
Q20) global static variable within a file is intended toa) localize swapb) retain value persistentlyc) define constantd) fixed address in memory
Q21) why thread switch is faster than a process switch
Q22) what is the binary equivalent of 41.6875
Q23) checkpoint value will be calculated in
Q24) DHCP is used fora) IP address allocation
b) dynamic host configuration protocol
Q25) int x(char *a){a=(char *) malloc(10*sizeof(char));*a="hello";}main()]{char *a="new";x(a);printf("%s",a);}
a) hellob) newc) hello newd) run time error ==========================================================================================
PAPER2:
All the following questions are memory based and have been submitted by candidates who appeared for the tests/interviews in the past.
HUGHES

section A 30m (Compulsory) section B or C 20 m (changed )Attempt either B or C sec B contains CSTC E&C
Better to attempt Electronics paper (Those who are having electronics background)
----------------------------------------------------------------------------
SECTION A
1. Which of the folowing is not correcta. (x+y)'=x'.y' b. (x'+y')'=x.yc. (x'.y')'=x+y d. (x'+y')'=x'.y' [d]
2. Question on logic ckt. U have to find the output ans. AB'+CD'+EF'
3. Output of MUX________
c-----
c'---- -------Y
c'---- ans. A xor B xor C
c-----
---------
A B (select lines)
4.If X and Y are two sets. X and Y are corresponding coordinates and exact no.of functions from X to Y is 97 then a. X=97 Y=1 b. X=1 Y=97c. X=97 Y=97 d. .....
5. If two dies are thrown simultaneously what is the prob. of one of the dice getting face 6 ? a. 11/36 b. 1/3 c. 12/35 d. 1/36 [a]
6. The relation ,<,on reals is a. a partial order because of symmetric and reflexiveb. ... antisymmetric and ....c. not ...... .. asymmetric and non reflexived. ... .... not anti-symm and non reflexive 7. In C language the parameters are passed by a. values b. name c.referrence d.... 8. Advantage of SRAM over DRAM ans. faster 9. Diasy chaining related question (refer Z80)a. uniform interrupt priorityb.non .... ....c.interfacing slower peripheralsd..... 10. RAM chips arranged in 4X6 array and of 8kX4bit capacity each. How many address lines reqd. to access each bytea. 12 b. 16 c.15 d. 17 11.Question related to AVL trees regarding how many no.of nodes to be changed to become balanced after addition of a leaf node to a particular node.ans . 3 12. When following sequence is inserted in the binary search tree no.of nodes in left and right subtrees 52 86 64 20 3 25 14 9 85 13.Method used for Disk searching.. a.linked list b.AVL c.B-tree d. binary tree 14. Which of the following is correct statement.a. 1's complement can have two zero representationsb.2's ... ... represent an extra neg. numberc.2's & 1's have no difference in representing 16-bit no.d....... 15. AX=B where A is mXn ,b&X are column matrices of order ma. if m O(log n) .. likewise ==========================================================================================
PAPER3:

ProfileHughes Software Systems (HSS), the #1 Communications Software company in India, offers the full spectrum of communications related software services, products and solutions. With over 40 customers spread over the Americas, Europe and Asia, HSS focuses on providing solutions to Telecom/ Datacom Equipment Manufacturers, System Integrators and Communication Services Providers.
Setup in the year 1992, it is headquartered in a state-of-the-art campus in Electronic City, a New Delhi suburb. HSS has a dedicated Internet and ECommerce development center in Bangalore, the Silicon Valley of India.
Continued significant investments in R&D have positioned HSS at the forefront of emerging communication technologies. The focus areas are Communication Protocols, Wireless Networks, Telecom/ Data Networks, Next Generation Networks, Intelligent Networks, Network Management, Internet and E-commerce.
Based on its strong expertise in all communication technologies and applications, HSS is involved in the design and development of Switching Systems, Mobile Satellite Communication Systems, Cellular Infrastructure, Access Networks, Enterprise Networking Solutions, Network Management Solutions, VoIP Solutions and E-Commerce and Internet based systems.
For more information about this company visit their homesite at http://www.hssworld.com/----------
1. Find the probability of getting a number with 7 between 100 and 999 (both inclusive).
2. There are 10 items in a box, out of which 3 are defective.2 balls are taken one after the other. What is the probability that both of them are defective?
3. Context free grammar is accepted by
a) finite automatab) push down automatac) two way bounded automatad) both b and c
4. Which is not a memory management scheme?
a) buddy systemb) swappingc) monitorsd) paging
Ans : c
5. Simplify the Karnaugh map given below and derive its expression in SOP form
- 1 1 - 1 - - 1 1 - - 1 - 1 1 -
6. Question on NAND gates implementation.
7. Definition of Context Sensitive Grammar
8. An identifier can start with a letter followed by any number of letter or digits .
9. With the following configuration: 8MB total memory, 256kb cache , 4kb is block size.Using direct mapping, how many different physical memory blocks can be mapped on to the cache.
(a) 64 (b) 256 (c) 128
10. CSMA/CD is used in
a) token ringb) FDDIc) ethernet
11. In TCP/IP header, checksum contains
a) sum of all the wordsb) ones complement of the datac) ones complement of the sum of all the wordsd) ones complement of the sum in ones complement
12. What is the maximum number of acknowledgements for a 4 bit sequence number in a sliding window protocol.
13. Which is a good way of representing varaibles in recursion
a) local variablesb) static varaiblesc) global variables
14. Given the following c program
func() {static int i = 10;printf("%d",i);i++;}
What is the value of i if the function is called twice ?
15. Given the following c program
func(int *i, int*j){*i=*i * *i;*j=*j* *j;}
main(){ int i = 5, j = 2;func(&i,&j);printf("%d %d", i, j);}
What is the output?
16. Given page table, page size and offset find the corresponding physical address ?
17. In a memory chip 4k size and 16bit words are to be stored.No of address and data lines required is:
18. Identify in which pass of the 2 pass compiler are the following compiled
1) literals2) address resolution3) listing
19. Object code does not require
a) relocation bitsb) external names and place where they are locatedc) absolute adressd) all the object codes
20. ARP is in reference to
a) MAC to IPb) IP to MAC
21. Question on Balanced tree - A balanced tree is given and a node is addded at the leaf.Find the no of unbalanced nodes?
22. What is the order of Hashing time:
a) 0(1)b) 0(n2)
23. Given that:s -> s + s ; s -> s * s ; s -> aFind the no of parse trees for a+a*a+a
a) 4b) 5c) 6d) 7
24. Order of deleting a node from a linked list.(pointer is to an arbitrary node)
a)0(1)b)0(n)
25. A choclate of size nXn is given and is to be made into pices of size 1x1.At a time both horizontal and a vertical cut is done.Find the order of complexity
a) O(n2)b) O(nlogn)c) O(logn)
26. A directed graph is represented by adjacency list.To find the complexity of indegree of the node. e - edge n- vertices
27) No of leaf nodes given. find the no of nodes with degree 2.
28) AX = B.A is mXn and B is mX1
a) there is a unique solution if rank of A is same as rank of augumented matrix [A b]b) there are multiple solutions
29. LXI sp,2099hLXI b, 2012hPUSH b
30. A and B are sets. A's cardinality is m and B's is n where m <> runningb) blocked: ready -> running
36. For converting infix expression to postfix what do we require
a) operand stackb) operator stack
37. 0 is reprented as both and negative and positive in
a) ones complementb) twos complementc) two's complement has extra negative number
38. What is the difference between c and c++?
a)In c++ we can define variables in the middleb)dynamic scoping
39. Which of the following is correct
a) Synchronous tranmission needs more badwidth than Asychronous.b) Inasychronous transmission , the time is associated with data itself....
=========================================================================================
PAPER4:

There were 50 questions in total.
1) special character of c++ regarding oop; a) funs overloading, b) polymerisation c) virtual funs d) data encapsulation
2){ int i=4000; int j=9000; main() { printf(,i,j); f(&i,&j); printf((i,j); f1(&i,&j); printf(i,j);
f( int *a, int *b) { int *temp; temp=a; a=b; b=temp; } f1(int *a,int *b) { *b=*a; *a=500; }
ans: 4000 90004000 9000500 4000
3) using delaration ---- namespace funda;
4) few questions on inheritance including protected --- pointer to base derived class.
5) port address is unique at a)globally, b)network layer c)... ans: network layer
6) ((5+4)*8)*((16+9)*5) convert to prefix ans: **+5 4 8*+16 9 5
7) there are 2 dices. probability to get 7 ans:1/6.
8) 4 Red balls, 5 Green , 6 Yellow, 5O balls. no. of balls are kept linearly . no of permutations that similar color balls will be together. 20!, 6!5!, 4!5!, none ans :none of the above
9) a man has color blindness then what will be permutations. 24,2,10, none ans: 24
10) if the man has closed his eye and arranges then what is the probability 20,12,24, none ans:none of the above

11) 3 boys: 3 girls a,b,c: x,y,z; a,c unmarried, a& b have a dog. a thinks the dog will be with his wife. B's wife thinks that her dog is with her husband. They are seated in a line. c can sit near x but not near y,z. now they have to sit like the distance between dogs is near. no. of seats between dogs Clue from my side...( one dog is at first other is at 5th) Ans: 3
12) tell the sequence :azcxyb
13) X.42 is in which layer
14) TCMP or somewhat like this protocol ans: (Internet control and message protocol)
15) ---------------!-----------------! ! ! ! Resistance Z(diode)! ---------------------------------------
ans) clipper , damper, rectifier, trigger ckt ANS:Rectifier___!___^
16 flush as in toilet can be considered electrically as a) capaciter b) inductor c) trigger ckt ans : capacitor
17) haruard code is a) orthogonal b) 1
18) which is better 1)semaphore,2) monitor c)..... ans :monitor
19 single bit parity checker can detect 1) 1 bit error 2) 2 bit error etc ans: 1)
20 motion estimation is used in 1) satellite 2) communication 3) video
21)4K x 1 ROM is to be used to maske of size 1MB, then what is the number of chips requiredAns: none
22)Choice where given.. Which of the following consume the lowest power..Ans:Totem Pole
23)Port Numbers is used in which layer..Ans:TCP Layer.. Study TCP layer Port Assignments of Application programs
24)3x10^4 is how much greater than 4x10^3Ans:650%
25)there are m balls and n boxes.. It is desired to divided all the balls in n boxes equally. How many boxes will have 1 balls extra.. Ans: Remember that m/n balls will be there in all boxes except in m%n boxes which will have one ball extra..
26)equation of the circle is given x^2+y^2=r^2 and a point is given (a,b) then how will you check that this point will be inside the circle.Ans:a^2+b^2<=r^2 27)One question on sampling theorem.. Nyquist Formula(Sampling Theorem)..Ans: The sampling frequency is twice the frequency of the wave to be sampled.Consider the wave having maximum frequency and double it... 28)A question related to shell programming.. 29)main(){char ch;for(ch=0;ch<300;ch++)printf("hello");}how roorkee ="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="="" color="#3333ff">PAPER5:

Hughes paper
1) find the probability of getting a number with 7 between 100 and999 (both inclusive).ans:
2) There are 10 items in a box, out of which 3 are defective.2 balls are taken one after the other. what is the probabilitythat both of them are defective?Ans: 1/15 or 6/90
3) Context free grammar is accepted bya) finite automatab)push down automatac) two way bounded automatad) both b and c
4) which is not a memory management scheme?a) buddy systemb) swappingc) monitorsd) paging Ans : c
5) qn. on karnaugh map for simplifying boolean expressions
- 1 1 -1 - - 11 - - 1- 1 1 -karnaugh map
6) qn. on nand gates .
7) context sensitive grammar
8) An identifier can start with a letter followed by any number of letteror digits .ans: L.(LUD)*
9) 8MB total memory, 256 k cache , 4k is block size. direct mappinghow many different physical memory blocks can be mapped on to the cache.a) 64 b) 256 c) 128
10) CSMA/CD is used ina) token ringb) FDDId) ethernetAns : d
11) In TCP/IP header , checksum containsa) sum of all the wordsb) ones complement of the datac) ones complement of the sum of all the wordsd) ones complement of the sum in ones complementAns : d
12) Max no of Acknowledgements for a 4 bit sequence number in asliding window protocol.
13) which is a good way of representing varaibles in recursiona) local variablesb) static varaiblesc) global variablesd)
14) c programsfunc() {static int i = 10;printf("%d",i);i++;}
what is the value of i if the function is called twice ?
Ans : 11
15) Qn. on pointers .
16) given page table,page size and offset find the correspondingphysical address ?ans : a (3*1024+576) (pageno*pagesize+offset)
17) In a memory chip 4k size and 16bit words to be stored. No ofaddress and data lines reqd.Ans) 16 data and 12 address
18) idetify in which pass of the 2 pass compiler1) literals2) address resolution3) listing4)
19) object code not requiresa) relocation bitsb) external names and place where they are locatedc) absolute adressd) all the object codes
20) ARPa) MAC to IPb) IP to MACc)Ans : b
21) Qn on Balanced tree ? A balanced tree is given and a node is adddedat the leaf and asked to find the no of unbalanced nodes?
22) order of Hashing timea) 0(1)b) 0(n2)
4) parse trees -> s + s ; s -> s * s ; s -> afind the no of parse trees for a+a*a+aa) 4b) 5c) 6ans: 5
25) order of deleting an node from a linked list. (pointer is to anarbitrary node)a)0(1)b)0(n)
26) A choclate of size nXn is given and is to be made into pices of size1x1. At a time both horizontal and a vertical cut is done. Find theorder of complexitya) 0(n2)b) o(nlogn)c) o(logn)Ans : a
27) A directed graph is represented by adjacency list. To find thecomplexity of indegree of the node. e - edge n- verticesa) o(e+n)
28) No of leaf nodes given. find the no of nodes with degree 2.
29) AX = B . A is mXn and B is mX1 and several options given likea) there is a unique solution if rank of A is same as rank ofaugumented matrix [A b]b) there are multiple solutions
30) LXI sp,2099hLXI b, 2012hpush b31) Which of the following are false (on complexities)
32) A,B are sets. A's cardinality is m and B's is n where m <> runningb) blocked : ready -> runningc)d)
37) for converting infix expression to postfix whatdo we requirea) operand stackb) operator stackc)
38) 0 is reprented as both and negative and positivea) ones complementb) twos complementc) two's complement has extra negative number
39) Difference between c and c++?a)In c++ we can define variables in the middleb)dynamic scoping
40) Which of the following is correct
a) Synchronous tranmission needs more badwidth than Asychronous.b) Inasychronous transmission , the time is associated with data itself..... =========================================================================================
PAPER6:

1-18 General (i) Data sufficiency(ii) Analytical(iii) Mathematics19-45 C & UNIX
1. x-a=a-x Ans: (c) x<=a
2. There is six letter word VGANDA . How many ways you can arrange the letters in the word in such a way that both the A's are together.Ans : 120 (5x4!)
3. If two cards are taken one after another without replacing from a pack of 52 cards, what is the probability for the two cards bequeen. Ans : (4/52)*(3/51) (1/17)*(1/13)
4. 51 x 53 x ... x 59 ; symbols ! - factorial ^ - power of 2(a) 99!/49! (b) (c) (d) (99! x 25!)/(2^24 x 49! x 51!)
5. The ratio of Boys to Girls is 6:4. 60% of the boys and 40% of girls take lunch in the canteen. What % of class takes lunch in canteen.Ans : 52% (60/100)*60 + (40/100)*40
Data Sufficiency : a) only statement A is sufficient , B is not b) only statement B c) both are necessary d) both are not sufficient.
6. X is an integer. Is X divisible by 5?A) 2X is divisible by 5.B) 10X is divisible by 5.Ans : A)
7. (A) Anna is the tallest girl(B) Anna is taller than all boys.(Q) . Is Anna the tallest in the classAns : c
8. Maths question
9, 10 Analytical
Zulus always speak truth and Hutus always speak lies. There are three persons A, B & C. A met B and says " I am a Zulu or I am Hutu". (We don't know what exactly he said). Then B meets C and says to C that " A is a Zulu ". Then C replied " No, A is a Hutu ".9. How many Zulus are there ? Ans 2( check)10) Who must be a Zulu ? Ans B (check)
11,12.13,14.-----------
A father F has 5 sons, p,q,r,s,t. Not necessarly in this order.Two are of same age. The eldest and youngest cannot be twins. T is elderto r and younger to q and s has three older brothers. q) who are the twins? s,tq) who is the oldest and youngest? q, (s&t)
15,16,17,18----------There are 7 people who take a test among which M is the worst, R is disqualified, P and S obtain same marks, T scores less than S and Q scores less than P, N scores higher than every one. Ans : N P S T Q R M (may be, just check) or N S P T Q R M
C & UNIX--------19. What does chmod 654 stand for.Ans : _rw_r_xr__
20. Which of following is used for back-up files?(a) compress (b) Tar (c) make (d) all the above Ans : b
21 What does find command do ? Ans : search a file
22. What does " calloc" do?Ans : A memory allocation and initialising to zero.
23 What does exit() do?Ans : Come out of executing programme.
24. What is the value of 'i'?i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")Ans : 1
25. i=2printf("%old %old %old %old ",i, i++,i--,i++);Ans : check the answer.
26. Using pointer, changing A to B and B to A is Swapping the function using two address and one temporary variable. a,b are address, t is temporary variable. How function look like?Ans : swap(int *, int *, int )
27. In 'o' how are the arguments passed?ans : by value.
28. Find the prototype of sine function.Ans : extern double sin(double)
29. Scope of a global variable which is declared as static?ans : File
30. ASCII problemi=..ans : 6
31 .32. what is the o/pprintf(" Hello \o is the world ");Ans : Hello is the world.
33. Clarifying the concept addresses used over array ; ie changing the address of a base element produces what error?
34. child process -- forkchild shell -- sh
35. Answer are lex 7 yacc & man read these things in UNIX
36. What isint *p(char (*s)[])Ans : p is a function which is returning a pointer to integerwhich takes arguments as pointer to array of characters.
************************************************************

General IMPORTANT 'C' Questions

Section 1. Declarations and Initializations

1.1: How do you decide which integer type to use?

A: If you might need large values (tens of thousands), use long.
Otherwise, if space is very important, use short. Otherwise,
use int.

1.4: What should the 64-bit type on new, 64-bit machines be?

A: There are arguments in favor of long int and long long int,
among other options.

1.7: What's the best way to declare and define global variables?

A: The best arrangement is to place each definition in some
relevant .c file, with an external declaration in a header file.

1.11: What does extern mean in a function declaration?

A: Nothing, really.

1.12: What's the auto keyword good for?

A: Nothing.

1.14: I can't seem to define a linked list node which contains a
pointer to itself.

A: Structures in C can certainly contain pointers to themselves;
the discussion and example in section 6.5 of K&R make this
clear. Problems arise if an attempt is made to define (and use)
a typedef in the midst of such a declaration; avoid this.

1.21: How do I declare an array of N pointers to functions returning
pointers to functions returning pointers to characters?

A: char *(*(*a[N])())();
Using a chain of typedefs, or the cdecl program, makes these
declarations easier.

1.22: How can I declare a function that returns a pointer to a
function of its own type?

A: You can't quite do it directly. Use a cast, or wrap a struct
around the pointer and return that.

1.25: My compiler is complaining about an invalid redeclaration of a
function, but I only define it once.

A: Calling an undeclared function declares it implicitly as
returning int.

1.30: What can I safely assume about the initial values of variables
which are not explicitly initialized?

A: Uninitialized variables with "static" duration start out as 0,
as if the programmer had initialized them. Variables with
"automatic" duration, and dynamically-allocated memory, start
out containing garbage (with the exception of calloc).

1.31: Why can't I initialize a local array with a string?

A: Perhaps you have a pre-ANSI compiler.

1.31a: What's wrong with "char *p = malloc(10);" ?

A: Function calls are not allowed in initializers for global or
static variables.

1.32: What is the difference between char a[] = "string"; and
char *p = "string"; ?

A: The first declares an initialized and modifiable array; the
second declares a pointer initialized to a not-necessarily-
modifiable constant string.

1.34: How do I initialize a pointer to a function?

A: Use something like "extern int func(); int (*fp)() = func;" .

Section 2. Structures, Unions, and Enumerations

2.1: What's the difference between struct x1 { ... }; and
typedef struct { ... } x2; ?

A: The first structure is named by a tag, the second by a typedef
name.

2.2: Why doesn't "struct x { ... }; x thestruct;" work?

A: C is not C++.

2.3: Can a structure contain a pointer to itself?

A: See question 1.14.

2.4: What's the best way of implementing opaque (abstract) data types
in C?

A: One good way is to use structure pointers which point to
structure types which are not publicly defined.

2.6: I came across some code that declared a structure with the last
member an array of one element, and then did some tricky
allocation to make it act like the array had several elements.
Is this legal or portable?

A: An official interpretation has deemed that it is not strictly
conforming with the C Standard.

2.7: I heard that structures could be assigned to variables and
passed to and from functions, but K&R1 says not.

A: These operations are supported by all modern compilers.

2.8: Why can't you compare structures?

A: There is no single, good way for a compiler to implement
structure comparison which is consistent with C's low-level
flavor.

2.9: How are structure passing and returning implemented?

A: If you really need to know, see the unabridged list.

2.10: Can I pass constant values to functions which accept structure
arguments?

A: No. C has no way of generating anonymous structure values.

2.11: How can I read/write structures from/to data files?

A: It is relatively straightforward to use fread and fwrite.

2.12: How can I turn off structure padding?

A: There is no standard method.

2.13: Why does sizeof report a larger size than I expect for a
structure type?

A: The alignment of arrays of structures must be preserved.

2.14: How can I determine the byte offset of a field within a
structure?

A: ANSI C defines the offsetof() macro, which should be used if
available.

2.15: How can I access structure fields by name at run time?

A: Build a table of names and offsets, using the offsetof() macro.

2.18: I have a program which works correctly, but dumps core after it
finishes. Why?

A: Check to see if a structure type declaration just before main()
is missing its trailing semicolon, causing main() to be declared
as returning a structure. See also questions 10.9 and 16.4.

2.20: Can I initialize unions?

A: ANSI Standard C allows an initializer for the first-named
member.

2.22: What is the difference between an enumeration and a set of
preprocessor #defines?

A: At the present time, there is little difference. The C Standard
states that enumerations are compatible with integral types.

2.24: Is there an easy way to print enumeration values symbolically?

A: No.

Section 3. Expressions

3.1: Why doesn't the code "a[i] = i++;" work?

A: The variable i is both referenced and modified in the same
expression.

3.2: Under my compiler, the code "int i = 7;
printf("%d\n", i++ * i++);" prints 49. Regardless of the order
of evaluation, shouldn't it print 56?

A: The operations implied by the postincrement and postdecrement
operators ++ and -- are performed at some time after the
operand's former values are yielded and before the end of the
expression, but not necessarily immediately after, or before
other parts of the expression are evaluated.

3.3: How could the code "int i = 3; i = i++;" ever give 7?

A: Undefined behavior means *anything* can happen.

3.4: Don't precedence and parentheses dictate order of evaluation?

A: Operator precedence and explicit parentheses impose only a
partial ordering on the evaluation of an expression, which does
not generally include the order of side effects.

3.5: But what about the && and operators?

A: There is a special exception for those operators: left-to-right
evaluation is guaranteed.

3.8: What's a "sequence point"?

A: The point (at the end of a full expression, or at the , &&,
?:, or comma operators, or just before a function call) at which
all side effects are guaranteed to be complete.

3.9: So given a[i] = i++; we don't know which cell of a[] gets
written to, but i does get incremented by one, right?

A: *No.* Once an expression or program becomes undefined, *all*
aspects of it become undefined.

3.12: If I'm not using the value of the expression, should I use i++
or ++i to increment a variable?

A: Since the two forms differ only in the value yielded, they are
entirely equivalent when only their side effect is needed.

3.14: Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work?

A: You must manually cast one of the operands to (long).

3.16: Can I use ?: on the left-hand side of an assignment expression?

A: No.

Section 4. Pointers

4.2: What's wrong with "char *p; *p = malloc(10);"?

A: The pointer you declared is p, not *p.

4.3: Does *p++ increment p, or what it points to?

A: *p++ increments p. To increment the value pointed to by p, use
(*p)++ .

THIS QUESTION 4.5 is wrong.

4.5: I want to use a char * pointer to step over some ints. Why
doesn't "((int *)p)++;" work?

A: In C, a cast operator is a conversion operator, and by
definition it yields an rvalue, which cannot be assigned to, or
incremented with ++.

4.8: I have a function which accepts, and is supposed to initialize,
a pointer, but the pointer in the caller remains unchanged.

A: The called function probably altered only the passed copy of the
pointer.

4.9: Can I use a void ** pointer to pass a generic pointer to a
function by reference?

A: Not portably.

4.10: I have a function which accepts a pointer to an int. How can I
pass a constant like 5 to it?

A: You will have to declare a temporary variable.

4.11: Does C even have "pass by reference"?

A: Not really, though it can be simulated.

4.12: I've seen different methods used for calling functions via
pointers.

A: The extra parentheses and explicit * are now officially
optional, although some older implementations require them.

Section 5. Null Pointers

5.1: What is this infamous null pointer, anyway?

A: For each pointer type, there is a special value -- the "null
pointer" -- which is distinguishable from all other pointer
values and which is not the address of any object or function.

5.2: How do I get a null pointer in my programs?

A: A constant 0 in a pointer context is converted into a null
pointer at compile time. A "pointer context" is an
initialization, assignment, or comparison with one side a
variable or expression of pointer type, and (in ANSI standard C)
a function argument which has a prototype in scope declaring a
certain parameter as being of pointer type. In other contexts
(function arguments without prototypes, or in the variable part
of variadic function calls) a constant 0 with an appropriate
explicit cast is required.

5.3: Is the abbreviated pointer comparison "if(p)" to test for non-
null pointers valid?

A: Yes. The construction "if(p)" works, regardless of the internal
representation of null pointers, because the compiler
essentially rewrites it as "if(p != 0)" and goes on to convert 0
into the correct null pointer.

5.4: What is NULL and how is it #defined?

A: NULL is simply a preprocessor macro, #defined as 0 (or
((void *)0)), which is used (as a stylistic convention, in
preference to unadorned 0's) to generate null pointers.

5.5: How should NULL be defined on a machine which uses a nonzero bit
pattern as the internal representation of a null pointer?

A: The same as on any other machine: as 0 (or ((void *)0)). (The
compiler makes the translation, upon seeing a 0, not the
preprocessor.)

5.6: If NULL were defined as "((char *)0)," wouldn't that make
function calls which pass an uncast NULL work?

A: Not in general. The problem is that there are machines which
use different internal representations for pointers to different
types of data. A cast is still required to tell the compiler
which kind of null pointer is required, since it may be
different from (char *)0.

5.9: If NULL and 0 are equivalent as null pointer constants, which
should I use?

A: Either; the distinction is entirely stylistic.

5.10: But wouldn't it be better to use NULL, in case the value of NULL
changes?

A: No. NULL is a constant zero, so a constant zero is equally
sufficient.

5.12: I use the preprocessor macro "#define Nullptr(type) (type *)0"
to help me build null pointers of the correct type.

A: This trick, though valid, does not buy much.

5.13: This is strange. NULL is guaranteed to be 0, but the null
pointer is not?

A: A "null pointer" is a language concept whose particular internal
value does not matter. A null pointer is requested in source
code with the character "0". "NULL" is a preprocessor macro,
which is always #defined as 0 (or ((void *)0)).

5.14: Why is there so much confusion surrounding null pointers?

A: The fact that null pointers are represented both in source code,
and internally to most machines, as zero invites unwarranted
assumptions. The use of a preprocessor macro (NULL) may seem to
suggest that the value could change some day, or on some weird
machine.

5.15: I'm confused. I just can't understand all this null pointer
stuff.

A: A simple rule is, "Always use `0' or `NULL' for null pointers,
and always cast them when they are used as arguments in function
calls."

5.16: Given all the confusion surrounding null pointers, wouldn't it
be easier simply to require them to be represented internally by
zeroes?

A: Such a requirement would accomplish little.

5.17: Seriously, have any actual machines really used nonzero null
pointers?

A: Machines manufactured by Prime, Honeywell-Bull, and CDC, as well
as Symbolics Lisp Machines, have done so.

5.20: What does a run-time "null pointer assignment" error mean?

A: It means that you've written, via a null pointer, to an invalid
location. (See also question 16.8.)

Section 6. Arrays and Pointers

6.1: I had the definition char a[6] in one source file, and in
another I declared extern char *a. Why didn't it work?

A: The declaration extern char *a simply does not match the actual
definition. Use extern char a[].

6.2: But I heard that char a[] was identical to char *a.

A: Not at all. Arrays are not pointers. A reference like x[3]
generates different code depending on whether x is an array or a
pointer.

6.3: So what is meant by the "equivalence of pointers and arrays" in
C?

A: An lvalue of type array-of-T which appears in an expression
decays into a pointer to its first element; the type of the
resultant pointer is pointer-to-T. So for an array a and
pointer p, you can say "p = a;" and then p[3] and a[3] will
access the same element.

6.4: Why are array and pointer declarations interchangeable as
function formal parameters?

A: It's supposed to be a convenience.

6.7: How can an array be an lvalue, if you can't assign to it?

A: An array is not a "modifiable lvalue."

6.8: What is the real difference between arrays and pointers?

A: Arrays automatically allocate space which is fixed in size and
location; pointers are dynamic.

6.9: Someone explained to me that arrays were really just constant
pointers.

A: An array name is "constant" in that it cannot be assigned to,
but an array is *not* a pointer.

6.11: I came across some "joke" code containing the "expression"
5["abcdef"] . How can this be legal C?

A: Yes, array subscripting is commutative in C. The array
subscripting operation a[e] is defined as being identical to
*((a)+(e)).

6.12: What's the difference between array and &array?

A: The type.

6.13: How do I declare a pointer to an array?

A: Usually, you don't want to. Consider using a pointer to one of
the array's elements instead.

6.14: How can I set an array's size at run time?

A: It's straightforward to use malloc() and a pointer.

6.15: How can I declare local arrays of a size matching a passed-in
array?

A: You can't; array dimensions must be compile-time constants.

6.16: How can I dynamically allocate a multidimensional array?

A: It is usually best to allocate an array of pointers, and then
initialize each pointer to a dynamically-allocated "row." See
the full list for code samples.

6.17: Can I simulate a non-0-based array with a pointer?

A: Not if the pointer points outside of the block of memory it is
intended to access.

6.18: My compiler complained when I passed a two-dimensional array to
a function expecting a pointer to a pointer.

A: The rule by which arrays decay into pointers is not applied
recursively. An array of arrays (i.e. a two-dimensional array
in C) decays into a pointer to an array, not a pointer to a
pointer.

6.19: How do I write functions which accept two-dimensional arrays
when the "width" is not known at compile time?

A: It's not particularly easy.

6 .20: How can I use statically- and dynamically-allocated
multidimensional arrays interchangeably when passing them to
functions?

A: There is no single perfect method, but see the full list for
some ideas.

6.21: Why doesn't sizeof properly report the size of an array which is
a parameter to a function?

A: The sizeof operator reports the size of the pointer parameter
which the function actually receives.

Section 7. Memory Allocation

7.1: Why doesn't the code "char *answer; gets(answer);" work?

A: The pointer variable answer() has not been set to point to any
valid storage. The simplest way to correct this fragment is to
use a local array, instead of a pointer.

7.2: I can't get strcat() to work. I tried "char *s3 =
strcat(s1, s2);" but I got strange results.

A: Again, the main problem here is that space for the concatenated
result is not properly allocated.

7.3: But the man page for strcat() says that it takes two char *'s as
arguments. How am I supposed to know to allocate things?

A: In general, when using pointers you *always* have to consider
memory allocation, if only to make sure that the compiler is
doing it for you.

7.5: I have a function that is supposed to return a string, but when
it returns to its caller, the returned string is garbage.

A: Make sure that the pointed-to memory is properly (i.e. not
locally) allocated.

7.6: Why am I getting "warning: assignment of pointer from integer
lacks a cast" for calls to malloc()?

A: Have you #included ?

7.7: Why does some code carefully cast the values returned by malloc
to the pointer type being allocated?

A: Before ANSI/ISO C, these casts were required to silence certain
warnings.

7.8: Why does so much code leave out the multiplication by
sizeof(char) when allocating strings?

A: Because sizeof(char) is, by definition, exactly 1.

7.14: I've heard that some operating systems don't actually allocate
malloc'ed memory until the program tries to use it. Is this
legal?

A: It's hard to say.

7.16: I'm allocating a large array for some numeric work, but malloc()
is acting strangely.

A: Make sure the number you're trying to pass to malloc() isn't
bigger than a size_t can hold.

7.17: I've got 8 meg of memory in my PC. Why can I only seem to
malloc() 640K or so?

A: Under the segmented architecture of PC compatibles, it can be
difficult to use more than 640K with any degree of transparency.
See also question 19.23.

7.19: My program is crashing, n never
permanently change the values of their arguments.

7.22: When I call malloc() to allocate memory for a local pointer, do
I have to explicitly free() it?

A: Yes.

7.23: When I free a dynamically-allocated structure containing
pointers, do I also have to free each subsidiary pointer?

A: Yes.

7.24: Must I free allocated memory before the program exits?

A: You shouldn't have to.

7.25: Why doesn't my program's memory usage go down when I free
memory?

A: Most implementations of malloc/free do not return freed memory
to the operating system.

7.26: How does free() know how many bytes to free?

A: The malloc/free implementation remembers the size of each block
allocated and returned.

7.27: So can I query the malloc package to find out how big an
allocated block is?

A: Not portably.

7.30: Is it legal to pass a null pointer as the first argument to
realloc()?

A: ANSI C sanctions this usage, although several earlier
implementations do not support it.

7.31: What's the difference between calloc() and malloc()?

A: calloc() takes two arguments, and initializes the allocated
memory to all-bits-0.

7.32: What is alloca() and why is its use discouraged?

A: alloca() allocates memory which is automatically freed when the
function which called alloca() returns. alloca() cannot be
written portably, is difficult to implement on machines without
a stack, and fails under certain conditions if implemented
simply.

Section 8. Characters and Strings

8.1: Why doesn't "strcat(string, '!');" work?

A: strcat() concatenates *strings*, not characters.

8.2: Why won't the test if(string == "value") correctly compare
string against the value?

A: It's comparing pointers. To compare two strings, use strcmp().

8.3: Why can't I assign strings to character arrays?

A: Strings are arrays, and you can't assign arrays directly. Use
strcpy() instead.

8.6: How can I get the numeric (character set) value corresponding to
a character?

A: In C, if you have the character, you have its value.

8.9: Why is sizeof('a') not 1?

A: Character constants in C are of type int.

Section 9. Boolean Expressions and Variables

9.1: What is the right type to use for Boolean values in C?

A: There's no one right answer; see the full list for some
discussion.

9.2: What if a built-in logical or relational operator "returns"
something other than 1?

A: When a Boolean value is generated by a built-in operator, it is
guaranteed to be 1 or 0. (This is *not* true for some library
routines such as isalpha.)

9.3: Is if(p), where p is a pointer, valid?

A: Yes. See question 5.3.

Section 10. C Preprocessor

10.2: I've got some cute preprocessor macros that let me write C code
that looks more like Pascal. What do y'all think?

A: Bleah.

10.3: How can I write a generic macro to swap two values?

A: There is no good answer to this question. The best all-around
solution is probably to forget about using a macro.

10.4: What's the best way to write a multi-statement macro?

A: #define Func() do {stmt1; stmt2; ... } while(0) /* (no trailing ;) */

10.6: What are .h files and what should I put in them?

A: Header files (also called ".h files") should generally contain
common declarations and macro, structure, and typedef
definitions, but not variable or function definitions.

10.7: Is it acceptable for one header file to #include another?

A: It's a question of style, and thus receives considerable debate.

10.8: Where are header ("#include") files searched for?

A: The exact behavior is implementation-defined; see the full list
for some discussion.

10.9: I'm getting strange syntax errors on the very first declaration
in a file, but it looks fine.

A: Perhaps there's a missing semicolon at the end of the last
declaration in the last header file you're #including.

10.11: Where can I get a copy of a missing header file?

A: Contact your vendor, or see question 18.16 or the full list.

10.12: How can I construct preprocessor #if expressions which compare
strings?

A: You can't do it directly; try #defining several manifest
constants and implementing conditionals on those.

10.13: Does the sizeof operator work in preprocessor #if directives?

A: No.

10.14: Can I use an #ifdef in a #define line, to define something two
different ways?

A: No.

10.15: Is there anything like an #ifdef for typedefs?

A: Unfortunately, no.

10.16: How can I use a preprocessor #if expression to detect
endianness?

A: You probably can't.

10.18: How can I preprocess some code to remove selected conditional
compilations, without preprocessing everything?

A: Look for a program called unifdef, rmifdef, or scpp.

10.19: How can I list all of the pre#defined identifiers?

A: If the compiler documentation is unhelpful, try extracting
printable strings from the compiler or preprocessor executable.

10.20: I have some old code that tries to construct identifiers with a
macro like "#define Paste(a, b) a/**/b", but it doesn't work any
more.

A: Try the ANSI token-pasting operator ##.

10.22: What does the message "warning: macro replacement within a
string literal" mean?

A: See question 11.18.

10.23-4: I'm having trouble using macro arguments inside string
literals, using the `#' operator.

A: See questions 11.17 and 11.18.

10.25: I've got this tricky preprocessing I want to do and I can't
figure out a way to do it.

A: Consider writing your own little special-purpose preprocessing
tool, instead.

10.26: How can I write a macro which takes a variable number of
arguments?

A: Here is one popular trick. Note that the parentheses around
printf's argument list are in the macro call, not the
definition.

#define DEBUG(args) (printf("DEBUG: "), printf args)

if(n != 0) DEBUG(("n is %d\n", n));

Aricent Questions-4(HUGES SOFTWARE)

HUGES SOFTWARE

(A)Aptitude :25 Qns, 20 Minutes

1. 2 x 4 analytical GRE type qns
2. 2-3 Reasoning qns (GRE type)
3. Probability of getting a sum of 7 when two dices are thrown together
4. Rest quantitative questions

(B) Technical: 50 Qns, 45 Minutes

1. 3 qns on operating systems. I qn on dijkestra algorithm

2. Using which pin it's possible to address 16 bit addresses even though there
are only 8 address bits in 8085? Ans: ALE
3. Voltage gain for an amplifier is 100 while it is operating at 10 volts.
What is the O/P voltage wen i/p is 1 volt
4. Quality factor indicates a0 Quality of inductor b) quality of capacitor
c) both
5. Qns related to bridges, routers and generators, which OSI layer they
corresspond to. (Refer to stevens 4th chapter)
6.OPAmp's I/P ciurrent, O/p current and CMRR is given, what is the voltage
gain
7. 2-3 qns on scope of static variables in C. Qn to view o/p odf a C static
var
8. Qn to print a value of a pointer

9.resistance increases with temperature in a) Metal b) semiconductor

10. A qn to find the physical address from a given virtual address, virtual
to physical address table was provided

11. 16 bit mantissa and 8 bit exponent can present what maximum value?

12. 4 bit window size in sliding window protocol, how many acknowledements can be held?

13. Security functionality is provided by which layer of OSI

14. Frequency spectrums for AM, FM and PM (figure given, u'veto tell which
Kind of modulation it belongs to)

15. Among AM and FM which is better and why?

16.LASt stage of TTL NAND gate is called: Ans: Totem Pole Amplifier

17. SR to JK flip flop conversion. Ans: S=JQ', R=KQ

18. LSB of a shift register is connected to its MSB, what is formed: Ans:
RING Counter

19. 2-3 Qns based on Demorgan's laws (identiies: (A+b)' = A'b', etc)

20. 2 qns on Logic gates (O/p of logic gates)

21. Diff in IRET and RET statements of 8086

22. How many address bytes are required to address an array of memory chips
(4 * 6), each chip having 4 memory bits and 8k registers.

23. Diff. in memory mapped and I/P O/P mapped Input/Output
(Refer a book on Microprocessor)

24. Qn on pipeline architecture

25. QN on LAPB protocol

Aricent Questions-3( HUGES SOFTWARE)

HUGES SOFTWARE

1. CSMA/Cd protocol used in
Ans : Ethernet
2. Checksum in IP packet is
Ans : Sum of the bits and 9's complement of sum
3. Inselective repeat Max Seq is given find windowsize
i.e. Ans : (15+1)/2 = 8
4. Main memory cache direct mapping
Ans : 64
5. Address lines and data lines for 4K x 16
Ans : Addr 12, Data 16
6. Infix to postsize commession uses
Ans : operator stack
7. Printing ofstatic variable
Ans : 11
8. Ans : 1,2,3,4 ( Program is given
array[0] = 1;
array[1] = 2;
array[2] = 3
array[3] = 4
ptr = array[0]
*(arr+3) = *(++array ) + *(array-1)++)
)
There may me some mistique in writing
the program. Check it out.
Answer is correct
9. One Question on Scheduling
Preemptive
10. Which of the following is not memory model
(1) buddy system (2) monitor (3) virtual ... etc.
11. Hight balancing AVC time
Ans : 3
12. Virtual to physical address mapping
page table given
13. regular expression of identifier
L(LUD)*
14. Simplification in boolean Algebra
Ans : xz
15. Logical gate is given we have to find what is that
Ans : NOR
16. Solution for Diriving philofphing
Ans : d
17. The feature C++ have and c donot have
Ans : Variables can be declared inside also.
18. Number of nodes with degree two in a binary tree of n leaves
Ans : n-1
19. Difference between syachronous and asynchronous transmission

20. The question on RS232
(Use of sfart bit in Rs 232 protocal)
21. Floating point representation
Ans : 2's complement
1 more negitive number
Two simple probability questions are also there

Section A : 30
Section B : 20
Total 50 questions in 1 hours

Interview Tips

Interview Section

After clearing the written test, companies usually interview the candidates to gauge his/her capabilities and personality. Basically there are two kinds of interviews, the techincal one, where stress is laid on checking your fundamentals in your core subjects and the HR one , where your communication skills and personality is put to the test.
Check out the following sections for more details
Technical Section
Human Resources (HR) Section
General Tips for the Interview
Group Discussion (GD)

Technical Section

As we are from computers and electronics branches, so for the moment we have information regarding core subjects of these fields only. As most of the companies coming to the campuses are from the IT industry hence you may expect them to probe your computer skills regardless of your stream. Knowledge of C is always an added advantage.
For Computer Students
For a computer student knowledge of C is essential. Other important topics include
Data Structures Operating Systems Some students have also been grilled on Object Oriented Programming, C++ ,Microprocessor Architecture, Networking, Database Management, Automata, Compiler Design and Computer Graphics depending upon subjects covered till the most recent semester.

Some Commonly Asked Questions

Usage of pointers and their fundamentals in C? What is the difference between structures and unions in C? Basic concepts about data structures like trees, linked lists, circular lists, queues, arrays Sorting Methodology ( you may be asked to make an algorithm/program to implement a sort method). What is an finite algorithm? Basic concepts of Operating Systems such as multitasking, multithreading, real time systems, CPU scheduling algorithms, deadlocks, memory management etc. Difference between one pass and multipass compilers, compilers and interpreters, parsing etc.

For Electronics and Communication Stream
For electronic students the important subjects are
Digital Circuits and Logic Design Microprocessor Architecture of 8085 Electronic Design and Circuits Communication and Networking Some Commonly Asked Questions
Difference between a latch and a flip flop What is sampling theorem and why is it needed Internal architecture of 8085 Comparison between OpAmps and transistors Modulation techniques (AM ,FM , PAM etc.) Transistor biasing methods ( fixed bias , emitter bias etc. )

HR Section

In your HR interview ie human resources interview the main effort on the part of the interviewer will be to bring forth your true personality.They may ask you some routine questions , few of which have been mentioned below, but be expecting questions of varied type regarding sexuality ,music , authors etc. ; anything to get to know what you really are.

Some Commonly Asked Questions
Describe yourself Why are you better than the next person Your strengths and weakness and what you are doing to rectify your weaknesses Information regarding what kind of work your parents do The magazines and newspapers you read , their cost and at times their editors ; and that days headlines You prefer a team sport to an individual sport Why you want to join this particular company and not some other one. What are your career objectives ( long term and short term ) Why you plan to switch over to software field ( for those who are from streams besides computers ) At the end of the interview they ask whether you have any questions to ask them. It is better to stick to one or two questions regarding the company and not dwelve into how you performed or the pay package or any personal questions to the interviewer.


General Tips for the Interview
The Essentials
a) Fundamental principles pertaining to his academics ( most important )b) Essentials of past life and clear cut career objectivesc) General awareness of world around himd) In depth knowledge of your extra curricular activities
Apart from these in general keep the following in mind
Always remember its a sort of formal occassion and never get too informal , like accepting interviewers offer for a smoke or drink Smart and clean turnout. Neat clothes and polished shoes with tidy hair. Be cool and don't get nervous.Try to be pleasant , alert and mantain eye contact. If u cant hold your own in technical questions try to remain composed ;your confidence may do the trick. Try to maintain a good rapport with the interviewer and get him to ask questions regarding the subjects you are strong in. Maintain eye contact from the begining and dont act in a manner so that the interviewer is distracted which for example can be caused by flashy dresses ,exaggerated arm movements or you shifting in your chair. Give them the impression that you are going to stay with the company for atleast 3 to 5 years. Never mention anything concerning GRE or CAT . Never try to bluff your way through an interview. The interviewers would be able catch on to it fast.

Aricent Questions-2(Hughes Software System)

Hughes Software System Test#2

1. There was a circuit given using three nand gates with two inputs and one output.
Find the output.
a) OR
b) AND
c) XOR
d) NOT
Ans. (a)

2. Suggest a sorting algorithm which is efficient (in worst case) to 10 values
a) Binary tree
b) Selection
c) Bubble
d) Any of the above

3. What is the number of comparisons in the worst case to merge two sorted lists containing n elements each.
a) 2n
b) 2n-1
c) 2n+1
d) 2n-2

4.Iintegrated check value(ICV) are used as:
Ans. The client computes the ICV and then compares it with the senders value.

5. Question on client-server system using asychronous request from the client
6. If a binary tree is constructed using nodes with two pointers each,
how many null pointers does a tree with N nodes have
a) n-1
b) n
c) n+1
d) Depends on the number of edges

7. Which of following statements about heap is wrong
a) An n element heap has height log n(base of log is 2)
b) Smallest element of heap is always a leaf
c) A array in reverse sorted order is a heap
d) A heap can't contain any element more than once

8. When applets are downloaded from web sites , a byte verifier performs _________?
Ans. Status check.

9. For the following C program
void insert(key,r)
typekey key,data array r;
{extern int n;
if(n>=max) /*error table if full */
else r[n++].k=key;
}
This on executing, enables a
a) Basic sequential search
b) Binary search
c) Interpolation search
d) None

10. Find the outpur of the following C program
void f(char *p)
{p=(char *) malloc(6);
strcpy(p,"hello");
}
void main( )
{char *P="bye";
f(p);
printf("%s',p);
}

11. Time taken to access cache is 100ns and to access memory is 1000ns.
Hit ratio given. Find the average access time

12. Path testing is
a) Black box testing strategy
b) White box testing strategy
c) An installation .........
d) An enviornment

13. X:verification' asks are we building the right product
Y:validation' asks are we building the product right

14. Which one of the following can't be used to find an internet address given the domain name
a) /etc/host
b) NIS yellow pages
c) DNS
d) ARP
15. Flow control is necessary for the transport protocol layer due to the following reasons
a) Unreliable link
b) Congestion at receiver
c) Packets out of sequence
d) None of these

16. In public key encryption, if A wants to send a message to B so that no one else can read the message
then A encrypts the message using
a) A's public key
b) A's private key
c) B's public key
d) B's private key

17. Which of the following is not condition having a deadlock resource previous granted
can be forcebly taken away from a process
a) Resources need to be used in mutually exclusion fashion
b) Process can request new resources, as they continue to hold on to old ones
c) Here is a cycle in the resource allocation graph

16. An IP/IPX packet received by a computer using... having IP/IPX both how the packet is handled.
Ans. Read the, field in the packet header with to send IP or IPX protocol.

17. The range of the 32 bit number in two's complement form is _______

18. Cyclomatic complexity
{if((x=0) or (y=0))
p=0;
else
{p=x;i=1;
while(i!=y)
{p=p+x;
i=i+1; }
}
}

19. Activation record will contain the
a) Storage for simple names
b) Information about attributes for local names
c) Return address
d) All of the above

20. Global static variable within a file is intended to
a) Localize swap
b) Retain value persistently
c) Define constant
d) Fixed address in memory

21. Why is thread switch faster than a process switch

22. What is the binary equivalent of 41.6875

23. Checkpoint value will be calculated in

24. DHCP is used for
a) IP address allocation
b)dynamic host configuration protocol

25. For the following C program
int x(char *a)
{a=(char *) malloc(10*sizeof(char));
*a="hello";
}
main()
{char *a="new";
x(a);
printf("%s",a);
}
The output is
a) Hello
b) New
c) Hello new
d) Run time error

Aricent Questions(Hughes Software System)

Hughes Software System

1. Find the probability of getting a number with 7 between 100 and 999 (both inclusive).

2. There are 10 items in a box, out of which 3 are defective.
2 balls are taken one after the other.
What is the probability that both of them are defective?

3. Context free grammar is accepted by
a) finite automata
b) push down automata
c) two way bounded automata
d) both b and c

4. Which is not a memory management scheme?
a) buddy system
b) swapping
c) monitors
d) paging
Ans : c

5. Simplify the Karnaugh map given below and derive its expression in SOP form
- 1 1 -
1 - - 1
1 - - 1
- 1 1 -

6. Question on NAND gates implementation.

7. Definition of Context Sensitive Grammar

8. An identifier can start with a letter followed by any number of letter or digits .

9. With the following configuration:
8MB total memory, 256kb cache , 4kb is block size.
Using direct mapping, how many different physical memory blocks can be mapped on to the cache.
(a) 64 (b) 256 (c) 128

10. CSMA/CD is used in
a) token ring
b) FDDI
c) ethernet

11. In TCP/IP header, checksum contains
a) sum of all the words
b) ones complement of the data
c) ones complement of the sum of all the words
d) ones complement of the sum in ones complement

12. What is the maximum number of acknowledgements for a 4 bit sequence number in a sliding window protocol.

13. Which is a good way of representing varaibles in recursion
a) local variables
b) static varaibles
c) global variables

14. Given the following c program
func()
{
static int i = 10;
printf("%d",i);
i++;
}
What is the value of i if the function is called twice ?

15. Given the following c program
func(int *i, int*j)
{*i=*i * *i;
*j=*j* *j;
}
main()
{ int i = 5, j = 2;
func(&i,&j);
printf("%d %d", i, j);}
What is the output?

16. Given page table, page size and offset find the corresponding physical address ?

17. In a memory chip 4k size and 16bit words are to be stored.
No of address and data lines required is:

18. Identify in which pass of the 2 pass compiler are the following compiled
1) literals
2) address resolution
3) listing

19. Object code does not require
a) relocation bits
b) external names and place where they are located
c) absolute adress
d) all the object codes

20. ARP is in reference to
a) MAC to IP
b) IP to MAC

21. Question on Balanced tree -
A balanced tree is given and a node is addded at the leaf.
Find the no of unbalanced nodes?

22. What is the order of Hashing time:
a) 0(1)
b) 0(n2)

23. Given that:
s -> s + s ; s -> s * s ; s -> a
Find the no of parse trees for a+a*a+a
a) 4
b) 5
c) 6
d) 7

24. Order of deleting a node from a linked list.
(pointer is to an arbitrary node)
a)0(1)
b)0(n)

25. A choclate of size nXn is given and is to be made into pices of size 1x1.
At a time both horizontal and a vertical cut is done.
Find the order of complexity
a) O(n2)
b) O(nlogn)
c) O(logn)

26. A directed graph is represented by adjacency list.
To find the complexity of indegree of the node. e - edge n- vertices

27) No of leaf nodes given. find the no of nodes with degree 2.

28) AX = B.
A is mXn and B is mX1
a) there is a unique solution if rank of A is same as rank of augumented matrix [A b]
b) there are multiple solutions

29. LXI sp,2099h
LXI b, 2012h
PUSH b

30. A and B are sets.
A's cardinality is m and B's is n where m < n
How many one to one mappings can be obtained.
a) n ^ m
b) npm
c) mpn
d) mcn

31. In scheduling algorithnms which are logically executed but suspended
a) preemptive
b) SJF
c)non preemptive
d) all the above

32. I/O redirection is
a) copying programs files through a pipe
b) input files are created
c) input file taken from existing ones
d) none

33. Symmetric multiprocessing can be done in
a) snoopy protocols
b) cache coherence

34. In the dining philosophers problems to avoid dead lock
a) 1 person will take left one and all other will take right one
b) adjacent persons should not eat concurrently

35. In the process state cycle, which is the correct order
a) timeout: ready -> running
b) blocked: ready -> running

36. For converting infix expression to postfix what do we require
a) operand stack
b) operator stack

37. 0 is reprented as both and negative and positive in
a) ones complement
b) twos complement
c) two's complement has extra negative number
38. What is the difference between c and c++?
a)In c++ we can define variables in the middle
b)dynamic scoping

39. Which of the following is correct
a) Synchronous tranmission needs more badwidth than Asychronous.
b) Inasychronous transmission , the time is associated with data itself.....
Back to top

C frequently asked questions

---------- cquest --------
Some of the C frequently asked questions (Collected from Express Computer mag.)
*******************************************************************************
1. what is the error in the following sequence of program.

int i1;
switch(i1)
{
printf("The value of I1 is :");
case 1: printf("%d",i1);
break;
case 2: printf("%d",i1);
break;
default : printf("Invalid entry");
}

2. what is an error in the following sequence of a program.

int i1;
switch(i1)
{
case 1: goto lure;
break;
case 2: printf("This is second choice");
break;
default: printf("This is default choice");
}
void fun(void)
{
lure: printf("This is unconditional jump");
}

3. What is an error in the following sequence of a program.

int i;
switch(i)
{
case 1: printf("This is first choice");
break;
case j: printf("This is second choice");
break;
case 1+2+4: printf("This is the third and last choice");
break;
}

4. what is an error in the following sequence of a program.

int i;
switch(i)
{
default: printf("This is default value");
break;
case 1: printf("This is first choice");
break;
case 2: printf("This is the second choice");
}



1. Will the following be used as an identifier?
a. sum_of_credits b. initial tree c. final_#
d. while e. SECTION_6 f. bingo-square
g. 2_4_87

2. Are the identifiers name and NAME are same?

3. Is it right to type # of #define other than in first column?

4. Does C require expressions to be enclosed in parenthesis for while loop?

5. Will the preprocessor terminates with semicolon ?

6. What is the return value of scanf statement?

7. What will happen, if there are two statements (without grouping) in if
condition and an else is there for that if.

8. What will be the output of this program.

int no_fish;
no_fish=1;
if (no_fish==1)
printf("The water was to warm\n");
else ;
printf("The wates were all fished out\n");

9. Is parenthesis required for conditional expression in if condition?

Interview Practice

Interview Practice


Practicing for the interview means practicing several behaviors
- not just answering questions. You must dress well, watch
your body language and posture, practice your manners and eye
contact as well as practice answering questions correctly,
smoothly, and with confidence. The practice questions below, in
one form or another, account for a large percentage of
interview questions. With each question, you are given a
series of choices as to how you might answer the question.
When you select an answer, you will learn whether your answer is
correct-and why. Answering these questions will help you polish
your interviewing techniques. The questions and answers in
this excercise are generic and, in many cases, must be
tailored to your individual situation. Still, the logic behind
the answer remains essentially the same.

Why are you the best person for the job? I 've held a lot of
positions like this one, and that experience will help me
here." "Because I am good at what I do."

"Our discussion here leads me to believe this is a good place to
work."

"You need someone who can produce results, and my background and
experience are proof of my ability. For example..."

If asked a point blank question such as: Are you creative? Are
you analytical? Can you work under pressure? etc. What is
the best way to answer?

Answer yes or no.

Answer yes and give a specific example.

Answer yes and give an explanation.

3 Tell me about yourself.

1.Outline personal data, hobbies, and interests.

2.Give an overview of your personality and work habits.

3.Give three specific examples of your personality traits and
accomplishments.

4. What was your CGPA? Why is it low?

1.My CGPA is -----. basically because I had a lot of fun in college.

2.My GPA is ----- because I held a full time job while in
college, working my way through school. It is not relfective
of my ability to do the job.

3.My GPA is ------ which I don't think is too low, at least
compared to my friends.

5. What are you looking for in a position?

1."I'm looking for an opportunity to apply my skills and
contribute to the growth of the company while helping create
some advancement opportunities for myself."

2."I'm looking for an organization that will appreciate my
contributions and reward my efforts."

3."I'm looking for a position that will allow me to make
enough money to support my lifestyle. I am a hard worker and
will give a concerted effort to earn the money I need."

6. What do you know about our organization?

1."I've done a little homework and here is what I know about
your organization...(cite examples)"

2."Everything I've seen and heard makes me want to be a part of
this organization. I understand your industry is ________ and
your primary customer is __________. A particularly exciting
part of your business appears to be _________ ."

3."I know enough to know this is an exciting place to work. It
appears to be fit for my career goals."

7. What is a weakness?

1. I get really frustrated with my co-workers when they whine
about everything.

2. I don't "toot my own horn". I like to go in and get the job
done and I don't dwell on who gets credit.

3. I don't think I have a weakness.

8. How would you characterize your work style?

1. I am a very driven person. I make a list of what needs to be
done and then tackle the items until I've completed the job.

2. I show up whenever I'm scheduled to work.

3.I haven't held a job yet so I don't know what my work style will be.

9. What are your strengths?

1."I am good at giving constructive criticism to my coworkers.
This honesty is something I'm very proud of and have found
essential to having open working relationships."

2."I consider myself to be very consistent. I have proven myself
to be someone who can be counted upon to do what is
expected."

3."I would have to chose between two skills. I am very proud of
my determination and ability to get things done. At the same
time, I am very proud of my analytical abilities and problem
solving skills. These skills combine to give me a unique
ability to solve problems and then implement the solutions."

10. How would co-workers describe you?

1."They perceive me as a leader. The people who have worked with
me learned great deal and accomplished in many cases more than
they thought possible."

2."My employees would tell you they got direction when they
needed and the room to work when it was appropriate. I believe
a measure of a good manager is how much he is able to get done
through others."

3."They perceive me as someone who cared about them personally
and had high expectations. I get a great deal of satisfaction
from helping others do their best. My former employees would
highlight three of my priorities which are to build loyalty
and a team environment, obtain results and develop people."

11. What did you like and dislike about college?

1. I didn't like the tremendous ammount of homework some
professors assigned us. I liked those professors who
realized, I had a life outside of class.

2.I liked the opportunity to be involved on campus. It was a
small campus that allowed students to take responsibility,
organize events and be a part of the planning team. I can't
really think of anything I disliked, college was a wonderful
experience.

3.I liked having Wednesdays off. I think the thing I disliked
most was living in the dorms.

12. Are you willing to relocate?

1.No.

2.I'm open to opportunities within the company so if that
involves relocation I would consider it.

3.I'd move, but I know your headquarters is in Alaska and that's
too cold for me.

13. What are your short term goals?

1."Short term, I just want a job."

2."Bills are beginning to pile up. In the short run I need to
find work so I can keep up with my obligations."

3."Short-term, I'd like to find a position that is a good fit
and where I can contribute to a company's bottom line. The
position we are here to discuss today would appear to be such an
opportunity. Could you tell me more about it?"

14. Where do you want to be in 5 years?

1.I haven't really thought that far ahead but I think I'd want your job.

2."If selected I would hope to meet my goals and take advantage
of opportunitites to learn so I will be considered for other
positions within the company. I hope to build my career with a
company such as this one."

3."Long term, I hope to start my own business."

15. Describe a situation you've encountered with a difficult
customer.

1.In my last job I dealt with customers at a retail store. One
customer wanted to return an item she had obviously bought
several years ago, which was against store policy. I talked to
her calmly and explained our policies and encouraged her to shop
and I would exchange the item however I could not give a refund.

2. I rarely encounter a difficult customer because of my
excellent customer service.

3. I had a customer once who claimed her steak was not cooked
correctly....I picked up a knife and cut it open and explained
that's the way it's supposed to be.

16. Before we go any further, what kind of money do you need to
make?

1.I feel I am worth at least $30,000."

2."My salary requirements are negotiable. Your firm has a
reputation of compensating employees fairly and I trust you
would do the same in my case. I am very interested in finding
the right opportunity and will be open to any fair offer when I
do so."

3."Money is not very important to me. I need to be able to pay
the bills but the work environment is far more important to
me."

Face to Face Interview Preparation

So you have a job interview, NOW WHAT?

You have sent out hundreds of resumes and finally a Human
Resource person calls to schedule a time for you to come in for
a face to face interview. This is a great company, and you
think you are perfect for the job. Now, you must demonstrate
that to the hiring authority you are perfect for the position.

Here are some pointers to keep in mind when going in for the
interview.

Prepare - Do not go in attempting to "wing" it. Keep in mind
there are lots of competitors for the job, and you will only
have this opportunity to impress the hiring authority.Research
and know the company, their history, products, services and
reputation.

Prepare answers to questions that will likely come up, like
"What is your biggest weakness?" "What is your greatest
failure?" "Describe your best and worse boss?" "Tell me
something about yourself?" "Why did you leave your last job?"
"How can you contribute to this company in this job?"

There will likely be a longer list of questions, each a
potential landmine that can eliminate you from the competition.
Keep your answers short and to the point. Do not ramble.
Always be honest and avoid negative statements. Wear your best
suit - The first impressions of a candidate are lasting. It is
better to be over-dressed than under-dressed. Your appearance
will demonstrate that you are taking the initiative. Go out of
your way to make a good impression. Even if you never wear a
suit to work, even if it is a production job, the interviewer
will be pleased by your effort to impress.

Be on time - It is better for you to be early and wait for your
appointment time than to keep the interviewer waiting and
wondering. If you miss your appointment time you may not get
another. If a problem or emergency arises, and they do, call
immediately and explain and offer to come in at another time,
whenever is convenient for the interviewer.

Body language - Sit up, look attentive, do not cross your arms
or legs make eye contact. Interviewers rely on body language to
determine your level of interest.

Present a positive attitude - Companies seek pleasant and
positive people.

Bring extra copies of your resume - You may interview with a
team of people, do not make them share one resume.

Avoid smoking and drinking alcohol before and during an
interview. If going to lunch with an interviewer, decline
alcholic beverages even if the interviewer orders a cocktail
with their meal. If you are a smoker, abstain before and during
the interview. Smoking can offend many people, even smoking
before an interview can leave an odor which may be offensive to
the interviewer.

Do not lead with money or benefit questions in the initial
interview - If your main motivation is money it will probably
turn off most hiring authorities. Convince them you can do the
job and want the job before discussing money and benefits.
Money, benefits and vacation will come up and can be discussed
should the company wish to make you an offer.

Sell yourself - If you don't no one else will. Use facts and
figures to quantify your experience and ability. Tell them the
things that will benefit the company if they hire you.

Show interest in the job - If you act cool they may not realize
that you want the job. Companies want someone who is interested
and enthusiastic about the job and the company. Don't make the
hiring authority guess if you want the job.

Do not close any doors - No matter what you see or hear during
the interview don't overreact. Obstacles may come up regarding
money, relocation or other issues that can be resolved later if
you leave the issue open.

Getting an offer - If an offer is made to you during an
interview never, reject it outright. Ask for time to think it
over to consider money and the specific details of the offer.
Always respond positively. If you let them know you want the
job it will be a lot easier to negotiate items like salary
later.

When the Interview is over - Ask if there are any reservations
about your ability to do the job. Deal with these now. Ask
what is the next step in the interview process. If you like
the job and want an offer now is the time to tell them. Do not
assume they will know if you want the job or not.

Follow-up - Be sure to send a note letting them know you
appreciate the opportunity to interview and reiterating your
interest in the position. Keep the note brief, and to the
point.



1.In my last job I dealt with customers at a retail store. One
customer wanted to return an item she had obviously bought
several years ago,

2."If selected I would hope to meet my goals and take advantage
of opportunitites to learn so I will be considered for other
positions within the company. I hope to build my career with a
company such as this one."

3."Long term, I hope to start my own business."

15. Describe a situation you've encountered with a difficult
customer.



Interview -tips
-------------------------------


1)You should do some rough work immediately
adjacent to the problem(Aptitede)
2)You should write the explanationary notes
adjacent to the C program.

INTERVIEW AIM:
1)Project should be on FEM.
2)You have to explain project clearly
3)Don't tell "Iam expert in FEM or in C"
Other wise they will ask more typical Ques.
4)You tell "I know C++ & C . I am learning C++
simultaneously with C."
Q1)TELL ABOUT YOUR WORK (means project work)
Q2)TELL ABOUT YOUR FAMILY
Ans: Sir,I came from a family which gives higher
priority to education.We are two.Because of
my parents active guidance we are pursuing
higher studies.I sister studied Msc and she
got married.
I studied B.tech in N.U
10 in- - - -
INTER in - - - -
Q3)WHY YOU ARE COMING TO SOFT WARE?
ANS:Well sir,
What I have learned all these days definitely
increased my technical skills.But a the same time also
increased my ANALYTICAL,PROUBLE SHOOTING& PROBLEM SOLVING
skills.
What ever may be the technical backgrount ,above
skills are necessary for S-W.
Rapid grouth,frequent updating&Attractive compensation pay
packages.
Q4)WHAT IS YOUR AMBITION?
ANS)Sir , I would like to become a person who is someone in
SOFT WARE.
Q5)WHERE DO YOU LIKE TO SEE AFTER 5 YEARS?
ANS:Sir
One year from now I would like to become a good soft ware
expert.
Two years from now I would like to become a person who
handles team work(i.e project leader)
Five years from now I have to handle morethan one project
at a time.
Q6)WHY THIS COLLEGE?
Sir, from the very first begining I have had special
carving(interest) to pursue(get) my higher studies
from any reputed institution.I hope I have succeeded.
Q7)YOUR +POINTS
ANS:I am a team person (you sould mension as captain of cricket)
I can handle problems as they came
Q8)YOUR -POINTS
Sir I am a bit over confident(or emotional)and I believes
people in first insident.
Q9)IF YOU CAN'T SELECTED TO THIS JOB ,WHAT CAN YOU DO?
ANS:
Sir I am confident that I should definitely get job in your
organization.I that worst case will happened I will try
to rectify my errors and once again I will try for your
organization.
Even then if I failed , I will search for another
organization which is suitable for my potential.
Q10)WHY THIS COMPANY?
ANS:
Sir Iam looking in the company for the following
things.
1)Which is a gaint in S-W.
2)Which is well reputed organization.
3)Which is having noninert enveronment
I hope I will find all the above things in your organization.
OOOOOOOOOOK!
THESE ARE MOST FREQUENT INTERVIEW QUESTIONS.
YOU SHOULD PREPARE WELL AND LEAVE THE RESULT TO GOD.


SSSSSSSSSSEU!
yours,
5StarArun.

book List

Books:

- Quantitative aps (R.S.Agarwal)

- Verbal & Non Verbal Reasoning (R.S.Agarwal)

- Puzzles to Puzzle u (Shakuntala devi)

-More Puzzles to Puzzle u (Shakuntala devi)

-Brain teasers (George j Summers)

Reasoning Questions

Q1.For a motorist there are three ways going from City A to City C. By way of bridge the distance is 20 miles and toll is $0.75. A tunnel between the two cities is a distance of 10 miles and toll is $1.00 for the vehicle and driver and $0.10 for each passenger. A two-lane highway without toll goes east for 30 miles to city B and then 20 miles in a northwest direction to City C.


1. Which is the shortest route from B to C

(a) Directly on toll free highway to City C
(b) The bridge
(c) The Tunnel
(d) The bridge or the tunnel
(e) The bridge only if traffic is heavy on the toll free highway

Ans. (a)


2. The most economical way of going from City A to City B, in terms of toll and distance is to use the

(a) tunnel
(b) bridge
(c) bridge or tunnel
(d) toll free highway
(e) bridge and highway

Ans. (a)


3. Jim usually drives alone from City C to City A every working day. His firm deducts a percentage of employee pay for lateness. Which factor would most influence his choice of the bridge or the tunnel ?

(a) Whether his wife goes with him
(b) scenic beauty on the route
(c) Traffic conditions on the road, bridge and tunnel
(d) saving $0.25 in tolls
(e) price of gasoline consumed in covering additional 10 miles on the bridge

Ans. (a)


4. In choosing between the use of the bridge and the tunnel the chief factor(s) would be:
I. Traffic and road conditions
II. Number of passengers in the car
III. Location of one's homes in the center or outskirts of one of the cities
IV. Desire to save $0.25

(a) I only
(b) II only
(c) II and III only
(d) III and IV only
(e) I and II only

Ans. (a)


Q2.
The letters A, B, C, D, E, F and G, not necessarily in that order, stand for seven consecutive integers from 1 to 10
D is 3 less than A
B is the middle term
F is as much less than B as C is greater than D
G is greater than F

1. The fifth integer is
(a) A
(b) C
(c) D
(d) E
(e) F

Ans. (a)


2. A is as much greater than F as which integer is less than G
(a) A
(b) B
(c) C
(d) D
(e) E

Ans. (a)


3. If A = 7, the sum of E and G is
(a) 8
(b) 10
(c) 12
(d) 14
(e) 16

Ans. (a)

4. A - F = ?
(a) 1
(b) 2
(c) 3
(d) 4
(e) Cannot be determined

Ans. (a)


5. An integer T is as much greater than C as C is greater than E. T can be written as A + E. What is D?
(a) 2
(b) 3
(c) 4
(d) 5
(e) Cannot be determined

Ans. (a)


6. The greatest possible value of C is how much greater than the smallest possible value of D?
(a) 2
(b) 3
(c) 4
(d) 5
(e) 6

Ans. (a)



Q3.
1. All G's are H's
2. All G's are J's or K's
3. All J's and K's are G's
4. All L's are K's
5. All N's are M's
6. No M's are G's


1. If no P's are K's, which of the following must be true?

(a) All P's are J's
(b) No P is a G
(c) No P is an H
(d) If any P is an H it is a G
(e) If any P is a G it is a J

Ans. (a)


2. Which of the following can be logically deduced from the conditions stated?

(a) No M's are H's
(b) No M's that are not N's are H's
(c) No H's are M's
(d) Some M's are H's
(e) All M's are H's

Ans. (a)


3. Which of the following is inconsistent with one or more of the conditions?

(a) All H's are G's
(b) All H's that are not G's are M's
(c) Some H's are both M's and G's
(d) No M's are H's
(e) All M's are H's

Ans. (a)


4. The statement "No L's are J's" is
I. Logically deducible from the conditions stated
II. Consistent with but not deducible from the conditions stated
III. Deducible from the stated conditions together with the additional statement "No J's are K's"

(a) I only
(b) II only
(c) III only
(d) II and III only
(e) Neither I, II nor III

Ans. (a)



Q5.
In country X, democratic, conservative and justice parties have fought three civil wars in twenty years. TO restore stability an agreement is reached to rotate the top offices President, Prime Minister and Army Chief among the parties so that each party controls one and only one office at all times. The three top office holders must each have two deputies, one from each of the other parties. Each deputy must choose a staff composed of equally members of his or her chiefs party and member of the third party.

1. When Justice party holds one of the top offices, which of the following cannot be true

(a) Some of the staff members within that office are justice party members
(b) Some of the staff members within that office are democratic party members
(c) Two of the deputies within the other offices are justice party members
(d) Two of the deputies within the other offices are conservative party members
(e) Some of the staff members within the other offices are justice party members.

Ans. (a)


2. When the democratic party holds presidency, the staff of the prime minister's deputies are composed
I. One-fourth of democratic party members
II. One-half of justice party members and one-fourth of conservative party members
III. One-half of conservative party members and one-fourth of justice party members.

(a) I only
(b) I and II only
(c) II or III but not both
(d) I and II or I and III
(e) None of these

Ans. (a)


3. Which of the following is allowable under the rules as stated:

(a) More than half of the staff within a given office belonging to a single party
(b) Half of the staff within a given office belonging to a single party
(c) Any person having a member of the same party as his or her immediate superior
(d) Half the total number of staff members in all three offices belonging to a single party
(e) Half the staff members in a given office belonging to parties different from the party of the top office holder in that office.

Ans. (a)


4. The office of the Army Chief passes from Conservative to Justice party. Which of the following must be fired.

(a) The democratic deputy and all staff members belonging to Justice party
(b) Justice party deputy and all his or hers staff members
(c) Justice party deputy and half of his Conservative staff members in the chief of staff office
(d) The Conservative deputy and all of his or her staff members belonging to Conservative party
(e) No deputies and all staff members belonging to conservative parties.

Ans. (a)



Q6.
In recommendations to the board of trustees a tuition increase of $500 per year, the president of the university said "There were no student demonstrations over the previous increases of $300 last year and $200 the year before". If the president's statement is accurate then which of the following can be validly inferred from the information given:
I. Most students in previous years felt that the increases were justified because of increased operating costs.
II. Student apathy was responsible for the failure of students to protest the previous tuition increases.
III. Students are not likely to demonstrate over new tuition increases.

(a) I only
(b) II only
(c) I or II but not both
(d) I, II and III
(e) None

Ans. (a)


1. If LOAD = MPBE and DRIVE = ESJWF
Then LADDLER = ?

Ans. MBEEMFS


2. START = WALKA and BUDPI = XZFMR
Then STUPID = ?

Ans. WAZMRF


Q3 - Q7

If A=Z, B=Y, C=X, .......... Z=A
Then

3. LIMIT = ?

Ans. ORNRG


4. SOUR = ?

Ans. HLFI


5. POCKET = ?

Ans. KLXPUG


6. GROUP = ?

Ans. TILFK


7. ZERD = ?

Ans. AVIL



Q8 - Q9
Here each letter is coded as
A = D, B=E, C=F


8. SHOOT = ?

Ans. VKRRW


9. VWDUW = ?

Ans. YZGXZ


10. If DBMDVUUB = CALCUTTA
Then BOMBAY = ?

Ans. ANLAZX




ANALYTICAL
>> ----------
**>>1)L:says all of my other 4 friends have money
>>M:says that P said that exact one has money
>>N:says that L said that precisely two have money
>>O:says that M said that 3 of others have money.
>>P:Land N said that they have money.
>> all are liers.Who has money&who doesn't have?
>>
>>2)A hotel has two,the east wing and the west wing.some east wing rooms
>>but not all have an ocean view(OV).All WW have a harbour view(HV).The
>>charge for all rooms is identical, except as follows
>>* Extra charge for all HV rooms on or above the 3rd floor
>>* Extra charge for all OV rooms except those without balcony
>>* Extra charge for some HV rooms on the first two floor&some EW rooms
>>without OV but having kitchen facilities. (GRE model Test 3-question
>> 1J-22)
>>3)Post man has a data of name surname door no.pet name of 4 families.
>>But only one is correct for each family.There are a set of statements
>>&questions.
>>4)4 couples have a party.Depending on the set of statements,find who
>>insulted whom and who is the host of the party.
>>5)5 women given some of their heights(tall,medium,short)Hair( long,
>>plainted),stards(Black or Brown), sari,2 medium,2-short.Tall->no
>>sari.Plainted->medium.Answer the combinations.
>>
>>
>>**1) A person has to go both Northwards&Southwards in search of a job.
>>He decides to go by the first train he encounters.There are trains for
>>every 15 min both southwards and northwards.First train towards south
>>is at 6:00 A.M. and that towards North is at 6:10 .If the person
>arrives
>>at any random time,what is the probability that he gets into a train
>>towards North.
>>2) A person has his own coach&whenever he goes to railway station he
>>takes his coach.One day he was supposed to reach the railway station
>>at 5 O'clock.But he finished his work early and reached at 3 O'clock.
>>Then he rung up his residence and asked to send the coach immediately.
>>He came to know that the coach has left just now to tje railway
>station.
>>He thought that the coach has left just now to the railway station.He
>>thought that he should not waste his time and started moving towards
>>his residence at the speed of 3mi/hr.On the way,he gets the coach and
>>reaches home at 6 o'clock.How far is his residence from railway
>>station.
>>
>>3)Radha,Geeta&Revathi went for a picnic.After a few days they forgot
>the
>>date,day and month on which they went to picnic.Radha said that it was
>>onThursday,May 8 and Geeta said that it was Thursday May 10.Revathi
>>said Friday Jun 8.Now one of them told all things wrongly,others one
>>thing wrong and the last two things wrongly.If April 1st is tuesday
>>what is the right day,date and month


Q12 - Q16

A causes B or C, but not both
F occurs only if B occurs
D occurs if B or C occurs
E occurs only if C occurs
J occurs only if E or F occurs
D causes G, H or both
H occurs if E occurs
G occurs if F occurs



Q12. If A occurs which of the following must occurs
I. F & G
II. E and H
III. D

(a) I only
(b) II only
(c) III only
(d) I, II, III
(e) I, II (or) II, III but not both

Ans. (e)



Q13. If B occurs which must occur

(a) D
(b) D and G
(c) G and H
(d) F and G
(e) J

Ans. (a)



Q14. If J occurs which must have occurred

(a) E
(b) either B or C
(c) both E F
(d) B
(e) both B and C

Ans. (b)



Q15.Which may occurs as a result of cause not mentioned

(1) D
(2) A
(3) F

(a) 1 only
(b) 2 only
(c) 1 and 2
(d) 2 and 3
(e) 1,2,3

Ans. (c)



Q16. E occurs which one cannot occurs

(a) A
(b) F
(c) D
(d) C
(e) J

Ans. (b)


CRITICAL REASONING SECTION

The critical reasoning section consists of some passages followed by 4 to 7 questions per passage. The questions are such that they require ability to read fast and comprehend. The questions asked in this section have three choices TRUE, FALSE, CAN'T SAY. Some examples of questions are given below. Please note that these passages are not the exact passages asked. The passages used a good deal of difficult words which have been removed in this reproduction. Also the passages appearing in the actual paper are much lengthier.

Directions: Answer the questions given below the passage or statement as true, false or can't say.

PASSAGE A: My father has no brothers. He has three sisters who has two childs each.

Answer 1-5 based on the passage A

1.My grandfather has two sons .

Ans. False


2. Three of my aunts have two sons

Ans. Can't say


3. My father is only child to his father

Ans. False


4. I have six cousins from my mother side

Ans. Can't say


5. I have one uncle

Ans. Can't say(uncle can be from the mother's side as well)



PASSAGE B: Ether injected into gallablader to dissolve colestrol based 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.

Answer questions 6-9 based on passage B

6.Calcium stones can be cured in oneday

Ans. False


7. Hundreds of people contains calcium stones

Ans. Can't say


8. Surgery is the only treatment to calcium stones

Ans. True


9. Ether will be injected into the gallbleder to cure the cholestrol based gall stones

Ans. True



PASSAGE C: Hacking is illegal entry into another computer. This happens 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.

Answer questions 10-12 based on passage B

10. Hackers never break the code of the company which they work for

Ans. Can't say


11. Hacking is the only vulnerability of the computers for the usage of the data

Ans. False


12.Hacking is done mostly due to the lack of computer knowledge

Ans. False



PASSAGE C: Alphine tunnels are closed tunnels.In the past 30 yrs not even a single accident has been recorded for there is one accident in the rail road system. Even in case of a fire accident it is possible to shift the passengers into adjacent wagons and even the live fire can be detected and extinguished with in the duration of 30 min.

Answer questions 13-16 based on passage C

13. No accident can occur in the closed tunnels

Ans. True


14. Fire is allowed to live for 30 min

Ans. False


16. All the care that travel in the tunnels will be carried by rail shutters.

Ans.True



PASSAGE D: In the past helicopters were 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 watercontent in the atmosphere and warns the pilot if the temperature is below freezing temperature about the formation of the ice on the rotors and wings.

Answer questions 17-20 based on passage D

17.The electronic device can avoid formation of the ice on the wings

Ans.False


18. There will be the malfunction of rotor & engine because of formation of ice

Ans.True


19. The helicopters were to be crashed or grounded

Ans.True


20. There is only one device that warn about the formation of ice

Ans.True



PASSAGE E: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. Inspite 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 week ends.

Answer questions 21-23 based on passage E

21.Housewives want the husbands to take part equally in the household

Ans.False


22. Wives have half as much leisure time as the husbands have

Ans. False


23. 39% of the men will work equally in the house in cleaning and washing

Ans. False



PASSAGE F:Copernicus is the intelligent. In the days of copernicus the transport and technology development was less & it took place weeks to comunicate a message at that time,wherein we can send it through satellite with in no time.Even with this fast developments it has become difficult to understand each other.

Answer questions 24-27 based on passage F

24. People were not intelligent during Copernicus days

Ans.False


25. Transport facilities are very much improved in noe a days

Ans.Can't say


26. Even with the fast developments of the techonology we can't live happily.

Ans. Can't say


27. We can understand the people very much with the development of communication

Ans. False.



PASSAGE G:Senior managers warned the workers that because of the intfoductors 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.

Answer questions 28-31 based on passage G

28. Japanese workers are taking over the jobs of indian industry.

Ans.False


29.Managers said car interests will go down after seeing the raise in interest rates.

Ans.True


30. Japanese investments are ceasing to end in the car industry.

Ans. False


31. People are very interested to buy the cars.

Ans.False



PASSAGE H:In the totalitariturican 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 that days, the words will be very much effected in political area.but at present,the words came very cheap .We can say they come free at cost.

Answer questions 32-34 based on passage H

32.Totalitarian society words are devalued.

Ans.False


33. Totalitarians will have to come much about words

Ans.True


34. The art totalitatian society the words are used for the political speeches.

Ans. False



PASSAGE I: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.

Answer questions 35-39 based on passage I

35. Tagore works are came under this copy right rule.

Ans. False


36. People are free to go to the public because of the copy right rule.

Ans.Can't say


38. People gives to theater and collect the money for development.

Ans.Can't say


39. We have ask the Tagore resedents to help for the developments of art.

Ans.Can't say



PYSCHOMETERIC TEST

You don't need to fret much about this test. This test consists of 150 questions and is just a pyshcology test which should be answered confidently and doesn't require any preparation.One must try being consistent while answering as the same questions are repeatedly asked in different forms.Also one must answer all questions.Questions are of yes,no or can't say kind.

1. Will you be interested in social activities.

2. While going upstairs do you move two steps at a time.

3. Can you make friends with people of the same sex or with opposite sex also

4. Your friends consider you as a leader in your group

5. People think that your'e serious minded.

6. There are times you feel dull without any reason.

7. You host several parties

8. When relatives come to your house do you entertain them.

9. You can work for long hours without tireness.

10. In your company you want to lead the organisation.

ANALYTICAL REASONING:
********************

1) In a group of five persons A,B,C,D,and E
a)A and C are intelligent in English and Reasoning.
b)B and C are intelligent in English and General Awareness.
c)E and D are intelligent in Arithmatic and Inteview.
d)E is intelligent in Interview,reasoning and Arithe matic.
c)E and D are intelligent in Arithmatic and Inteview.
d)E is intelligent in Interview,reasoning and Arithe matic.
e)B and D are intelligent in Arithematic and General Awareness.

1) Who is intelligent in English,arithematic,and general
awareness (ANSWER:B)

2)Who is intelligent in english and reasoning but not in
general awareness (ans:A)

3)Who is intelligent in Arithematic,General Awareness and
Interview (ans:D)
4)Who is intelligent in English General Awareness and Reasoning
(ans:C)
5)Who is intelligent in Arithematic,Reasoning and Interview(ans:E)

2) Five persons A,B,C,D and E were travelling in a car.They were
two ladies in the group. Of them who knew the car driving one
was a lady.A is brother of D.B wifeof D,drve at the begining.

? Help M Main Menu P PrevMsg two ladies in the group. Of them who knew the car driving one
was a lady.A is brother of D.B wifeof D,drve at the begining.
E drive at the end.

1)Which of the following is a pair of brothers.(ans:A,D)
2)Who was the other lady in the group.(ans:C)
3)In the case of which the following pairs,no relationship
can be established with one else in the group (ans:C,E)
4)How was E related to A.(ans:DATA INADEQUATE)

3) A man said to woman " your only brother's son is my wife's
brother". How is the woman related to the man's wife...(ans:AUNT)

IN THIS SECTION ALSO THERE ARE SOME MORE QUESTIONS.THESE ARE
NOT AVILEBLE.

This is also like tcs paper.for every section there will be a
limited time.you should complete only at that specified time.
They won't allow to go back in the middlE.
limited time.you should complete only at that specified time.
They won't allow to go back in the middlE.

So please remember,time factor is the important thing.